0–2 years · Junior — Node.js · Express · MongoDB · React · REST APIs · Authentication
Starts by profiling the endpoint with a tool like Postman or Insomnia; checks database query performance; looks for missing indexes on the user collection; considers response payload size; suggests pagination or filtering to limit results.
If the query itself is slow, what are some methods to improve database performance?
Identifies a specific instance of mismanaging state; explains how the issue manifested in the application; describes debugging steps taken to identify the state mismanagement; mentions any tools or methods used to resolve it; reflects on what could have been done differently.
What early indicators could have helped you catch it?
Reproduces the error to understand the context; checks the stack trace for the exact line; verifies variable initialisation and scope; inspects function parameters and their values; uses console.log or debugger statements to trace data flow.
If the error seems intermittent, what additional debugging techniques could apply?
Uses bcrypt for password hashing; implements JWT for stateless authentication; ensures secure storage of tokens in HttpOnly cookies; configures CORS to protect the API; mentions token expiration and refresh strategies.
If a user reports issues with session expiration, what could be causing this?
Validates that the state is correctly updated; checks component subscriptions to context; evaluates whether components are memoised or optimised; identifies unnecessary re-renders with React DevTools; inspects the structure of the state for any mutations.
You find that a component is not re-rendering due to a memoisation issue. How do you resolve this?
Assesses impact of changes on existing data; creates migration scripts to update data; uses versioning for new schemas; communicates with the team about downtime; tests changes in a staging environment before deployment.
If users are still using the old version of the app, how do you manage the transition without breaking functionality?
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.