Interview practice

Full Stack Developer (MERN)

2–5 years · Mid — Node.js · Express · MongoDB · React · REST APIs · Authentication

0–2 years 2–5 years 5–8 years 8+ years
technical Debugging Production Issues 1 of 6
You receive reports that a feature in your application fails intermittently in production. How do you approach diagnosing the issue?
What a strong answer covers

Enables detailed logging around the feature to capture error details; checks for race conditions or state inconsistencies; utilises monitoring tools to track performance metrics; reproduces the issue in a controlled environment to isolate variables; reviews recent code changes that may have introduced bugs.

The follow-up you would get

What if the issue only occurs under specific load conditions?

Could you have answered that?
technical REST APIs 2 of 6
You are tasked with designing a REST API for a product inventory system. How would you structure the endpoints for products and manage versioning?
What a strong answer covers

Defines clear resource-oriented endpoints like /products, /products/{id}, using HTTP methods appropriately; includes pagination and filtering for /products; implements versioning in the URL (e.g., /v1/products) to avoid breaking changes; emphasises proper status codes for different response scenarios.

The follow-up you would get

How would you handle changes to the data structure without breaking existing clients?

Could you have answered that?
ownership A feature you owned 3 of 6
Describe a feature you developed from start to finish and what you learned from the experience.
What a strong answer covers

Specifies the feature's purpose and context; details the technologies used and design choices made; explains challenges faced and how they were overcome; reflects on what could be improved in future implementations; mentions team collaboration and feedback received.

The follow-up you would get

What would you change if you were to start that feature again?

Could you have answered that?
scenario Authentication and sessions 4 of 6
Your application is experiencing session timeouts for users after a short duration, leading to complaints. How do you approach this issue?
What a strong answer covers

Checks session expiry settings in the backend; reviews client-side session handling for proper token storage; evaluates user activity tracking to extend sessions; considers implementing silent refresh for tokens; suggests improvements to UX for handling session expiry.

The follow-up you would get

After adjustments, users still report issues with session persistence. What diagnostic steps will you take?

Could you have answered that?
technical Schema Design 5 of 6
You are designing a MongoDB schema for a blog application that includes posts, comments, and users. How do you decide between embedding and referencing data, especially for comments?
What a strong answer covers

Considers the access patterns, ensuring frequent queries can be optimised; mentions embedding comments if they are always accessed with the post; discusses referencing if comments are large or needed independently; evaluates trade-offs in data duplication and consistency; considers future scalability.

The follow-up you would get

What would change if comments needed to be updated frequently?

Could you have answered that?
technical Event Loop 6 of 6
You have a Node.js application where a request to an API endpoint takes longer than expected and blocks subsequent requests. How do you diagnose and resolve this issue?
What a strong answer covers

Uses the Node.js event loop and process.nextTick to identify blocking code; checks for synchronous operations causing delays; examines external calls like database queries for latency; suggests refactoring CPU-intensive tasks using worker threads or offloading to a queue; mentions logging to capture the timing of operations.

The follow-up you would get

What if the blocking code is in an external library?

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.