Design-UX-CSS and Question on MongoDB

Patient Tools

Read, save, and share this guide

Use these quick tools to make this medical article easier to read, print, save, or share with a family member.

Article Summary

Round 1 (Technical F2F): The interviewer started by asking about my current project and asked me to explain the architecture. I answered by explaining her the complete architecture on the white board. Then she asked how much would I rate myself in DS & Algo on a scale of 1-10. Then she asked the following questions: Reverse a linked list. Cloning a linked list having...

Key Takeaways

  • This article explains Questions on Java: in simple medical language.
  • This article explains Questions on Java: in simple medical language.
  • This article explains Amazon Behavioral questions | Leadership Principles | LP in simple medical language.
Educational health guideWritten for patient understanding and clinical awareness.
Reviewed content workflowUse writer and reviewer profiles for stronger trust.
Emergency safety firstUrgent warning signs are highlighted below.

Seek urgent medical care if you notice

These warning signs are general safety guidance. Local emergency numbers and clinical judgment should always come first.

  • Severe symptoms, breathing difficulty, fainting, confusion, or rapidly worsening illness.
  • New weakness, severe pain, high fever, or symptoms after a serious injury.
  • Any symptom that feels urgent, unusual, or unsafe for the patient.
1

Emergency now

Use emergency care for severe, sudden, rapidly worsening, or life-threatening symptoms.

2

See a doctor

Book a professional medical evaluation if symptoms persist, worsen, recur often, affect daily activities, or occur in a high-risk patient.

3

Learn safely

Use this article to understand possible causes, tests, treatment options, prevention, and questions to ask your clinician.

Round 1 (Technical F2F):

The interviewer started by asking about my current project and asked me to explain the architecture. I answered by explaining her the complete architecture on the white board. Then she asked how much would I rate myself in DS & Algo on a scale of 1-10. Then she asked the following questions:

  1. Reverse a linked list.
  2. Cloning a linked list having next and random pointer. 3)Mirror of a Binary tree.

Questions on Java:

1)Difference between static synchronized block and non static Synchronized block. 2)Why wait() , notify() and notifyAll() methods are in Object class. 3)Why string is Immutable? Is it possible to have a synchronized block that locks on to a String object?

Question on MongoDB:

1)How to achieve Horizontal scaling in MongoDB.What all servers are required to do the same.

2)There’s a student collection which has multiple documents for different subjects.How to aggregate all records of all students and have a single array field having all marks of a given student.

Round 2 (Technical F2F): This round was the toughest, not because the questions were tough but it lasted forever(more than 3 hours)

1) Problem statement:

There’s a file that contains URL and description of some websites delimited by comma.I need to read that file and write it back to another file in a sorted manner. The input file may have different description for same website.Ex: www.google.com/blogs/career , www.google.com/ home/etc will have different descriptions. The output file should have only one entry for a particular website but can have many descriptions. I gave him a solution which he felt was good. He then altered the problem statement . Now, instead of 1 file there is a directory of files and all needs to be read and written back in a new file in sorted manner.He hinted that he’s looking for a multi threaded solution . I gave a solution using Thread pool executor and after a long discussion he was happy with the solution.

  1. What is Hash code? Difference between HashMap and HashTable ? How HashMap is implemented internally? How linear probing leads to clustering? Can we have null key in a HashMap?

  2. He asked me to explain Observer pattern (because I had told him that I used it in one of the projects ) . He asked me to move over to the white board and explain with proper class diagrams. Why composition is preferred over inheritance was one of the many questions that he asked while I was explaining implementation of observer pattern.

4)What are deadlocks ? When do they occur? How to avoid them? How to avoid them in Java?Write a code that leads to a deadlock.

5)There’s a website that shows online content when there’s internet connection and offline content like downloads when offline.There’s a switch that tells if the website is online or offline.There’s a display() method that displays the appropriate content.How to implement that display method?He was not really looking for any code but the approach . I told him that we’ll have a Screen interface that has a display() method and there would be two concrete implementations : online screen and offline screen of the screen interface where I’ll override the display() method. He was content with solution.

  1. Implement a BST which supports insertion , deletion and search.

  2. Rotate an array by K times.

  3. Given an array find the maximum value of Σarr[i]*i, where i = 0, 1, 2,…., n – 1.( https://www.geeksforgeeks.org/maximize-sum-arrii/)

  4. Why to prefer Synchronized block over Synchronized method?

  5. Explain Quick sort .

Round 3 (Technical F2F):

  1. When should we go for in memory caching? (because my resume says that I’ve worked on MemcacheD)
  2. Explain micro services architecture.(I explained him with an overview of how docker containers work and how we can have container orchestration using Kuberenetes)
  3. How Agile way of development is different from the traditional waterfall model?
  4. How PAAS is different from IAAS.(Cloud computing)
  5. Implement a queue using stack.

Round 4(Managerial + Technical F2F)

1)How to kick start a springboot application? 2)What are the different scope of Spring beans? 3) Difference between PUT and PATCH requests in REST api. 4)Why do you want to join SAP labs?

Round 5 (Technical -Telephonic): This was a cross LOB round where a person from a different team interviewed. 1)How to achieve Many2Many mappings in Hibernate. 2)Use of @Qulifier annotation in Spring? 3) How dispatcher servlet works? 4)How a class in loaded into JVM?

Round 6( HR) The basic HR questions : Where do you see yourself in 5 years? Why do you want to quit your cureent job? Salary negotiation .(Which I regret not doing.)

Finally got the offer !!

  • Talk about the pros and cons of flat and skeuomorphic design trends in regards to accessibility.
  • Explain the importance of color contrast in designing for inclusion.
  • Besides :hover, name other states an actionable element (links, buttons, form controls, etc.) could have styles for, and why providing them is important?
  • When might it be appropriate to remove the visual outline from a focused element?
  • If a form or form field were to return an error message, where might you want those error messages to be located?
  • How can utilizing animation in an interface affect the user experience?
  • Explain how you could make an infographic accessible for screen reader users.
  • Why is color alone insufficient to draw attention to actionable elements, or to convey state?
  • What are some of the inclusive UX problems that need to be solved when content (static or actionable) is revealed on :hover, and how would you propose solving for them?

Network-questions

  • Traditionally, why has it been better to serve site assets from multiple domains?
  • Do your best to describe the process from the time you type in a website’s URL to it finishing loading on your screen.
  • What are the differences between Long-Polling, Websockets and Server-Sent Events?
  • Explain the following request and response headers:
    • Diff. between Expires, Date, Age and If-Modified-…
    • Do Not Track
    • Cache-Control
    • Transfer-Encoding
    • ETag
    • X-Frame-Options
  • What are HTTP methods? List all HTTP methods that you know, and explain them.
  • What is domain pre-fetching and how does it help with performance?
  • What is a CDN and what is the benefit of using one?
  • What tools would you use to find a performance bug in your code?
  • What are some ways you may improve your website’s scrolling performance?
  • Explain the difference between layout, painting and compositing.
  • When building a new web site or maintaining one, can you explain some techniques you have used to increase performance?
  • Can you describe some SEO best practices or techniques you have used lately?
  • Can you explain any common techniques or recent issues solved in regards to front-end security?
  • How many resources will a browser download from a given domain at a time?
  • What does CORS stand for and what issue does it address?

 

The interviewer started by asking about my current project and asked me to explain the architecture. I answered by explaining her the complete architecture on the white board. Then she asked how much would I rate myself in DS & Algo on a scale of 1-10. Then she asked the following questions:

  1. Reverse a linked list.
  2. Cloning a linked list having next and random pointer. 3)Mirror of a Binary tree.

Questions on Java:

1)Difference between static synchronized block and non static Synchronized block. 2)Why wait() , notify() and notifyAll() methods are in Object class. 3)Why string is Immutable? Is it possible to have a synchronized block that locks on to a String object?

Question on MongoDB:

1)How to achieve Horizontal scaling in MongoDB.What all servers are required to do the same.

2)There’s a student collection which has multiple documents for different subjects.How to aggregate all records of all students and have a single array field having all marks of a given student.

Round 2 (Technical F2F): This round was the toughest, not because the questions were tough but it lasted forever(more than 3 hours)

1) Problem statement:

There’s a file that contains URL and description of some websites delimited by comma.I need to read that file and write it back to another file in a sorted manner. The input file may have different description for same website.Ex: www.google.com/blogs/career , www.google.com/ home/etc will have different descriptions. The output file should have only one entry for a particular website but can have many descriptions. I gave him a solution which he felt was good. He then altered the problem statement . Now, instead of 1 file there is a directory of files and all needs to be read and written back in a new file in sorted manner.He hinted that he’s looking for a multi threaded solution . I gave a solution using Thread pool executor and after a long discussion he was happy with the solution.

  1. What is Hash code? Difference between HashMap and HashTable ? How HashMap is implemented internally? How linear probing leads to clustering? Can we have null key in a HashMap?

  2. He asked me to explain Observer pattern (because I had told him that I used it in one of the projects ) . He asked me to move over to the white board and explain with proper class diagrams. Why composition is preferred over inheritance was one of the many questions that he asked while I was explaining implementation of observer pattern.

4)What are deadlocks ? When do they occur? How to avoid them? How to avoid them in Java?Write a code that leads to a deadlock.

5)There’s a website that shows online content when there’s internet connection and offline content like downloads when offline.There’s a switch that tells if the website is online or offline.There’s a display() method that displays the appropriate content.How to implement that display method?He was not really looking for any code but the approach . I told him that we’ll have a Screen interface that has a display() method and there would be two concrete implementations : online screen and offline screen of the screen interface where I’ll override the display() method. He was content with solution.

  1. Implement a BST which supports insertion , deletion and search.

  2. Rotate an array by K times.

  3. Given an array find the maximum value of Σarr[i]*i, where i = 0, 1, 2,…., n – 1.( https://www.geeksforgeeks.org/maximize-sum-arrii/)

  4. Why to prefer Synchronized block over Synchronized method?

  5. Explain Quick sort .

Round 3 (Technical F2F):

  1. When should we go for in memory caching? (because my resume says that I’ve worked on MemcacheD)
  2. Explain micro services architecture.(I explained him with an overview of how docker containers work and how we can have container orchestration using Kuberenetes)
  3. How Agile way of development is different from the traditional waterfall model?
  4. How PAAS is different from IAAS.(Cloud computing)
  5. Implement a queue using stack.

Round 4(Managerial + Technical F2F)

1)How to kick start a springboot application? 2)What are the different scope of Spring beans? 3) Difference between PUT and PATCH requests in REST api. 4)Why do you want to join SAP labs?

Round 5 (Technical -Telephonic): This was a cross LOB round where a person from a different team interviewed. 1)How to achieve Many2Many mappings in Hibernate. 2)Use of @Qulifier annotation in Spring? 3) How dispatcher servlet works? 4)How a class in loaded into JVM?

Round 6( HR) The basic HR questions : Where do you see yourself in 5 years? Why do you want to quit your cureent job? Salary negotiation .(Which I regret not doing.)

Organizational Systems and Team Process Questions for Mid-to-Senior Lavel

  • What is your workflow currently, with regards to developers pushing changes.
    • Do you do pull requests, or does everyone just merge to a central repo?
    • What branching method do you use? (Git-Flow, Github-Flow, Environment Merging, something custom)
  • Are you using a ticket system or is it more play it by ear?
    • Do you use the same system for both bugs and new features?
    • How is priority determined?
    • What comes first, bugs or features?
    • Are detailed requirements for tasks determined and documented ahead of time?
    • How are tasks added to the backlog?
  • Who determines the features that would go into the product? How are these chosen?

    • How are developers involved in that decision?
    • How are testers involved in that process?
  • How do you track development time?

  • Do you have a code review process?

    • Does your code review process prevent deploying code?
    • Does your code review process promote empathy?
  • Does your team encourage the use of SOLID and DRY design principles to avoid cyclomatic complexity?

  • Do you have established code style rules?
    • Did you create your own style guide, or are you using a third party’s (PEP8, PSRs, Standard JS, etc)
    • Is there an automated linting process to validate your styles?
    • Tabs or spaces? (If relevant)
    • Allman or BSD braces? (If relevant)
    • Semicolons? (If relevant)
  • How is QA/testing done?

    • Are developers expected to do testing as well? To what extent?
    • If there is a separate testing team, how is the co-ordination done between testing and development?
    • How is the decision made that a release is ready?
  • Who designs the User Interface?

    • Are developers expected to do it?
    • Are there graphics designers in the company?
    • Are there UX designers in the company?
  • Are there compliance requirements in the company like CMM or SOC?

  • Do you have an SLA (Service Level Agreement)?

    • Do you guarantee any of the following? If so, how long?
      • Turn Around Time (TAT)?
      • Average Speed to Answer (ASA)
      • Time Service Factor (TSF)
    • What is the escalation plan? What are the consequences if the plan is not followed?
  • Do you have an automated test suite?

    • What libraries and tools do you use?
    • What sorts of tests do you use? (unit, integration, system, load, …)
    • What is your testing methodology? (BDD, TDD, Spike & Stabilize, …)
    • What is your current level of test coverage? Are you happy with it?
  • Do you regularly correct technical debt?

  • On a scale of 1 to 10, how much spaghetti code do you have?

  • How well-documented is your codebase?

    • Do you use automated documentation systems like PHPDoc or JSDoc?
    • Do you maintain a wiki?

Interview questions on React-Redux that I am yet to make a good note / ans of

1> How to optimize React component to render it less often? (using shouldComponentUpdate to determine if any relevant data changed)

2> What are best practices? (for example why not to use getInitialState, try to find others and know how to explain them)

3> React is rarely used by itself, so expect some questions about data layer, most commonly an implementation of flux:

4> What is flux? How it’s different from the more traditional MVC pattern?

5> How does Redux data flow work? (view, action creator, reducer, view — you should know and explain responsibilities of each; also how state is represented — state tree)

6> Comparison with Angular Js and VUE js?

7> Understanding on state, props, event handling, data sharing, ajax in react, polling, routing

8> Unit testing for React code

9> explain what is higher order component, control uncontrolled component in react.

10> Reducer return a new object or old one?

11> Explain diff between store and flux.

12> What is the difference between Virtual DOM and DOM?

13> Describe synthetic events in React. How it is different from Javascript Events.

14> Explain this.props.children

15> Differentiate controlled and uncontrolled components in React Js?

16> How to optimize React component to render it less often? (using shouldComponentUpdate to determine if any relevant data changed)

Amazon Behavioral questions | Leadership Principles | LP

1.https://interviewgenie.com/blog-1/category/Amazon+interviews

2.https://www.youtube.com/channel/UCw0uQHve23oMWgQcTTpgQsQ/playlists

3.https://medium.com/@scarletinked/are-you-the-leader-were-looking-for-interviewing-at-amazon-8301d787815d

  • Tell me about a situation where you had a conflict with someone on your team. What was it about? What did you do? How did they react? What was the outcome?

  • Give an example of when you saw a peer struggling and decided to step in and help. What was the situation and what actions did you take? What was the outcome?

  • Tell me about a time you committed a mistake?

  • Tell me about a time when your earned your teammate’s trust?

  • Tell me about a time when you couldn’t meet your deadline?

  • Tell me about a time when your teammate didn’t agree with you? What did you do?

  • Tell me about a time when you invented something?

  • Tell me about a time when you took important decision without any data?

  • Tell me about a time when you helped one of your teammates?

  • Have you ever been in a situation where you had to make a choice among a few options, but did not have a lot of time to explore each option

  • Have you ever failed at something? What did you learn from it?

  • name time when you went out of your way to help someone?

  • Time when you came up with novel solution.

  • Received negative feedback from manager and how you responded.

  • Time when you went above and beyond your job responsibilities.

  • Time when you did not have enough data and had to use judgement to make decision.

  • Time when you helped someone in their work.

  • Time when you helped someone grow in career and it benefited them.

  • Time when you helped someone grow but did not benefit them.

  • Time when you were 75% through a project and realized you had the wrong goal.

  • Time when your team members were not supporting something but you pushed and went for a more optimal solution.

  • Time when you pushed back a decision from your management for better long term benefits.

  • Time when you failed to meet your commitment

  • Tell me about yourself. Tell me about a project you’re working on.

  • Time when you were working on a project on a time constraint

  • Time when you didn’t meet a deadline

  • Time when you needed help from somebody

  • Tell me about yourself.

  • Tell me about a time you had to help a team member struggling with a task.

  • Tell me about a time you faced an obstacle and how you overcame it.

  • Tell me about one of your projects?

  • Tell me about one of your projects so the same as the first guy.

  • Tell me a time you took some on some risk

  • Have you ever gone out of your way to help a peer? (ownership)

  • Have you ever had to make a tough decision without consulting anybody? (bias for action)

  • asked me about my past projects that I’ve worked on and gave me detailed explaination about the Internship.

  • Tell me about a time when you learned new technologies

  • Tell me about a time when you took a decision on your own without the manager’s prior approval

  • Tell me about a time you had multiple solutions and you had to select an optimal one

  • Tell me about a time when you innovated and exceeded the expectation

  • Tell me about a time where you had to make a decision based on limited information and how it impacted the outcome.

  • Tell me about a time where you had limited time and how it impacted

  • Tell me about a time where you did not know something and how you tackled it(Something related to it)

  • first one was about handling a tight deadline, second is setbacks on projects?

  • Handling a tight deadline

  • How would you help a new employee who is facing technical difficulties?

  • disagree and commit and ownership LPs.

  • Tell me about your yourself (the general icebreaker).

  • Tell me about tim when you faced a difficult challenge.

  • Tell me about a time when you needed help from someone during a project.

  • Tell me about a time when you thought of an unpopular idea.

  • Tell me about a time when you had to decide upon something without consulting your superior.

  • Tell me about a time when you had to face tight time constraints during a project.

  • Tell me about yourself.

  • Tell me about a time when you did not meet your deadlines for a project.

  • Tell me about a time when you had conflicting ideas with your teammates and how did you resolve them?

  • a project you’re proud of

  • a time when you faced a setback initially but still achieved the goal.

  • a time when you had to cut corners to meet a deadline

  • “Tell me about a time when you felt under pressure that you wouldn’t be able to get something done or had to take a pivot at the last minute”

 

Patient safety assistant

Check your symptom safely

Hi, I am RX Symptom Navigator. I can help you understand what to read next and what warning signs need care.
Warning: Do not use this in emergencies, pregnancy, severe illness, or as a substitute for a doctor. For children or teens, use with a parent/guardian and clinician.
A rural-friendly guide: warning signs, when to see a doctor, related articles, tests to discuss, and OTC safety education.
1 Symptom 2 Severity 3 Safe guidance
First safety question

Is there chest pain, breathing trouble, fainting, confusion, severe bleeding, stroke-like weakness, severe injury, or pregnancy danger sign?

Choose quickly

Browse by body area
Start here: Write or select a symptom. The guide will show warning signs, doctor guidance, diagnostic tests to discuss, OTC safety education, and related RX articles.

Important: This tool is educational only. It cannot diagnose, treat, or replace a doctor. OTC information is not a prescription. In an emergency, contact local emergency services or go to the nearest hospital.

Doctor visit helper

Prepare before seeing a doctor

A simple rural-patient checklist to help you explain symptoms clearly, ask better questions, and avoid unsafe self-treatment.

Safety note: This is not a prescription or diagnosis. For severe symptoms, pregnancy danger signs, children with serious illness, chest pain, breathing difficulty, stroke-like weakness, or major injury, seek urgent care.

Which doctor may help?

Start with a registered doctor or the nearest qualified health center.

What to tell the doctor

  • Write when the problem started and how it changed.
  • Bring old prescriptions, investigation reports, and current medicines.
  • Write allergies, pregnancy status, diabetes, kidney/liver disease, and major past illnesses.
  • Bring one family member if the patient is weak, elderly, confused, or a child.

Questions to ask

  • What is the most likely cause of my symptoms?
  • Which danger signs mean I should go to hospital quickly?
  • Which tests are necessary now, and which can wait?
  • How should I take medicines safely and what side effects should I watch for?
  • When should I come for follow-up?

Tests to discuss

  • Vital signs: temperature, pulse, blood pressure, oxygen saturation
  • Basic physical examination by a clinician
  • CBC, urine test, blood sugar, or imaging only when clinically needed

Avoid these mistakes

  • Do not use antibiotics, steroid tablets/injections, or strong painkillers without proper medical advice.
  • Do not hide pregnancy, kidney disease, ulcer, allergy, or blood thinner use.
  • Do not delay emergency care when danger signs are present.

Medicine safety and first-aid guide

This section is for patient education only. It does not replace a doctor, pharmacist, or emergency care.

Safe first steps

  • Avoid heavy lifting, sudden bending, and prolonged bed rest.
  • Use comfortable posture and gentle movement as tolerated.
  • Discuss physiotherapy, X-ray, or MRI only when clinically needed.

OTC medicine safety

  • For mild back pain, pain-relief medicine may be discussed with a doctor or pharmacist.
  • Avoid repeated painkiller use if you have kidney disease, stomach ulcer, uncontrolled blood pressure, or are taking blood thinners.

Avoid these mistakes

  • Do not start antibiotics without a proper medical decision.
  • Do not use steroid tablets or injections casually for quick relief.
  • Do not delay emergency care because of home remedies.

Get urgent help if

  • Back pain with leg weakness, numbness around private area, loss of urine/stool control, fever, cancer history, or major injury needs urgent care.
Medicine names, dose, and timing must be decided by a qualified clinician or pharmacist after checking age, pregnancy, allergy, other diseases, and current medicines.

For rural patients and family caregivers

Patient health record and symptom diary

Write your symptoms, medicines already taken, test results, and questions before visiting a doctor. This note stays on your device unless you print or copy it.

Doctor to discuss: Doctor / qualified healthcare provider
Tests to discuss with doctor
  • Basic vital signs: temperature, pulse, blood pressure, oxygen level if needed
  • Relevant blood, urine, imaging, or specialist tests only after clinical assessment
Questions to ask
  • What is the most likely cause of my symptoms?
  • Which warning signs mean I should go to emergency care?
  • Which tests are really needed now?
  • Which medicines are safe for my age, pregnancy status, allergy, kidney/liver/stomach condition, and current medicines?

Emergency warning signs such as chest pain, severe breathing difficulty, sudden weakness, confusion, severe dehydration, major injury, or loss of bladder/bowel control need urgent medical care. Do not wait for online information.

Safe pathway to proper treatment

Back pain care roadmap

Use this simple roadmap to understand the next safe steps. It is educational and does not replace examination by a doctor.

Go to emergency care if you notice:
  • New leg weakness, numbness around private area, or loss of bladder/bowel control
  • Back pain after major injury, fever, unexplained weight loss, cancer history, or severe night pain
Doctor / service to discuss: Orthopedic/spine specialist, physical medicine doctor, physiotherapist under guidance, or qualified clinician.
  1. Step 1

    Check danger signs first

    If danger signs are present, seek emergency care and do not wait for online information.

  2. Step 2

    Record the symptom story

    Write when symptoms started, severity, medicines already taken, allergies, pregnancy status, and test results.

  3. Step 3

    Visit a qualified clinician

    A doctor, nurse, or qualified healthcare provider can examine you and decide which tests or treatment are needed.

  4. Step 4

    Do only useful tests

    Discuss neurological examination first. X-ray or MRI may be needed only when red flags, injury, nerve weakness, or persistent severe symptoms are present.

  5. Step 5

    Follow up and return early if worse

    If symptoms worsen, new warning signs appear, or treatment is not helping, return for review quickly.

Rural patient practical tips
  • Take a written symptom diary and all previous prescriptions/test reports.
  • Do not hide medicines already taken, even herbal or over-the-counter medicines.
  • Ask which warning signs mean urgent referral to hospital.
  • Avoid forceful massage or bone-setting when there is weakness, injury, fever, or nerve symptoms.

This roadmap is for education. A real diagnosis and treatment plan requires history, examination, and clinical judgment.

RX Patient Help

Ask a health question safely

Write your symptom story. A health professional or site editor can review it before any answer is prepared. This box is not for emergency care.

Emergency first: Severe chest pain, breathing trouble, unconsciousness, stroke signs, severe injury, heavy bleeding, or rapidly worsening symptoms need urgent local medical care now.

Frequently Asked Questions

Is this article a replacement for a doctor?

No. It is educational content only. Patients should consult a qualified clinician for diagnosis and treatment.

When should I seek urgent care?

Seek urgent care for severe symptoms, rapidly worsening condition, breathing difficulty, severe pain, neurological changes, or any emergency warning sign.

References

Add references, clinical guidelines, textbooks, journal articles, or trusted medical sources here. You can edit this area from the RX Article Professional Blocks panel.