Interview practice

Full Stack Developer (MERN)

5–8 years · Senior — Node.js · Express · MongoDB · React · REST APIs · Authentication

0–2 years 2–5 years 5–8 years 8+ years
technical Performance Optimization 1 of 6
A Node.js API endpoint that previously handled 100 requests per second is now dropping requests under load. What steps do you take to diagnose and resolve the issue?
What a strong answer covers

Monitors CPU and memory usage to identify bottlenecks; checks for synchronous code that could be blocking the event loop; reviews database queries for performance issues; implements caching strategies to reduce load; considers scaling the service horizontally if required.

The follow-up you would get

You suspect database latency is the issue. What strategies do you employ to investigate further?

Could you have answered that?
technical Authentication 2 of 6
You implement JWT authentication, but after a week of use, users are experiencing unexpected logouts. What steps do you take to diagnose the issue?
What a strong answer covers

Checks token expiration times and refresh token implementation; reviews server logs for errors during verification; examines client-side storage and token retrieval logic; considers issues with browser storage or cross-origin requests; verifies that tokens are being sent with every request.

The follow-up you would get

The tokens are valid but still causing logouts. What else might affect session continuity?

Could you have answered that?
technical State Management 3 of 6
You have a React application where the state update in one component is not reflected in another component. How do you identify the issue and ensure proper state synchronisation?
What a strong answer covers

Checks the data flow and ensures state is lifted appropriately to the common ancestor; verifies that props are being passed down correctly; uses React DevTools to inspect current state and props; considers the use of context API or state management libraries like Redux; identifies if re-renders are occurring as expected.

The follow-up you would get

The state is passed correctly but is still out of sync. What could be causing this?

Could you have answered that?
ownership A migration you led 4 of 6
Describe a data migration you led that encountered significant challenges, and how you addressed them.
What a strong answer covers

Details the context of the migration, including systems involved; specifies the challenges faced during the migration, such as downtime or data integrity issues; outlines the steps taken to mitigate risks, including rollback plans; highlights the impact on users and how communication was handled.

The follow-up you would get

What lessons did you learn that would change your approach in future migrations?

Could you have answered that?
scenario Performance Optimization 5 of 6
You notice that an important API endpoint is taking longer to respond than expected during peak hours. What steps do you take to investigate and resolve this issue?
What a strong answer covers

Profile the endpoint to identify bottlenecks; examine database queries for efficiency; evaluate network latency and response sizes; consider rate limiting for abusive traffic; cache frequent responses or implement pagination.

The follow-up you would get

You find that a particular query is causing the slowdown. How do you decide whether to optimise the query or redesign the data model?

Could you have answered that?
technical API Design 6 of 6
You need to design a REST API for a new feature that will handle thousands of concurrent users. What considerations do you take into account to ensure scalability?
What a strong answer covers

Designs endpoints to be stateless and adheres to RESTful principles; uses pagination for large datasets to reduce payload; implements rate limiting to protect against abuse; considers caching strategies for frequently accessed data; evaluates the database structure for optimal performance.

The follow-up you would get

What specific techniques would you use to handle rate limiting in your API?

Could you have answered that?
That is this set.

Load six more — you will get questions you have not seen first.

Give me six more →

Say your answer out loud before revealing. Reading the answer first feels like learning and is not.