MERN Stack Rapid-Fire Questions & Answers
50 questions for the rapid-fire stage — 30 easy, 19 medium, 1 hard.
About the rapid-fire round
Rapid-fire questions are quick definitions and one-line answers that interviewers fire at the start or end of a round to check your MERN Stack basics. Aim to answer each in under 20 seconds.
Tips for the rapid-fire round
- Answer in one or two sentences, then stop.
- If you don't know, say so quickly and move on; don't guess at length.
- Revise these the morning of the interview.
- Practise with a friend who reads them in random order.
How do environment variables work in a Vite React app compared to a Node.js backend?
Show answer
How does async/await improve on Promise chains, and how do you handle errors with it?
Show answer
What does lifting state up mean in React?
Show answer
What is a Promise and what are its states?
Show answer
What is a Buffer in Node.js?
Show answer
What are the common ways to render content conditionally in React?
Show answer
Explain indexes in MongoDB, compound indexes and the ESR rule.
Show answer
What are BSON and ObjectId in MongoDB?
Show answer
What is the difference between process.nextTick, setImmediate and setTimeout(fn, 0)?
Show answer
What is Express.js and what is middleware?
Show answer
How does error-handling middleware work in Express, and what changed in Express 5?
Show answer
What does React.memo do and when is it useful?
Show answer
What is the difference between useMemo and useCallback?
Show answer
How does the useEffect dependency array work and why is cleanup important?
Show answer
What is JSX and how is it converted into JavaScript?
Show answer
What is the difference between unit, integration and end-to-end tests in a MERN app?
Show answer
What are streams in Node.js and what types exist?
Show answer
How does Supertest help test Express APIs?
Show answer
Should you store a JWT in localStorage or in an httpOnly cookie?
Show answer
How is Docker used in a MERN project?
Show answer
How does React protect against XSS and where can XSS still happen?
Show answer
What is the difference between req.params, req.query and req.body?
Show answer
What is the difference between CommonJS and ES modules in Node.js?
Show answer
Explain hoisting in JavaScript with an example.
Show answer
What does a CI/CD pipeline for a MERN application usually include?
Show answer
Compare Promise.all, Promise.allSettled, Promise.race and Promise.any.
Show answer
What is the difference between controlled and uncontrolled components?
Show answer
How is Nginx used in front of a MERN application?
Show answer
What is Node.js and how does it handle many requests on a single thread?
Show answer
Why does React need keys in lists, and why is using the array index risky?
Show answer
What is MongoDB and how is it different from a relational database?
Show answer
What is the difference between props and state in React?
Show answer
What is the aggregation pipeline and what are its common stages?
Show answer
What is a closure and where is it useful?
Show answer
What are Jest and Vitest, and what is the philosophy of React Testing Library?
Show answer
What does lean() do in Mongoose and when should you use it?
Show answer
What are the core principles of a RESTful API, and which HTTP methods are idempotent?
Show answer
How does the JavaScript event loop work with microtasks and macrotasks?
Show answer
What does the helmet middleware do in Express?
Show answer
Why are functional components preferred over class components today?
Show answer
What is the difference between a shallow copy and a deep copy?
Show answer
What is the difference between authentication and authorization?
Show answer
Explain destructuring, the spread operator and rest parameters.
Show answer
How do arrow functions differ from regular functions?
Show answer
What is React and how does the virtual DOM help performance?
Show answer
What is a JWT and what are its three parts?
Show answer
Why does the order of middleware matter in Express?
Show answer
How should passwords be stored, and why use bcrypt?
Show answer
What is the difference between package.json and package-lock.json, and what do ^ and ~ mean?
Show answer
Frequently asked questions
What happens in the MERN Stack rapid-fire round?
Rapid-fire questions are quick definitions and one-line answers that interviewers fire at the start or end of a round to check your MERN Stack basics. Aim to answer each in under 20 seconds.
How do I clear the rapid-fire round?
Answer in one or two sentences, then stop. If you don't know, say so quickly and move on; don't guess at length. Revise these the morning of the interview.
Which round comes next?
A typical order is online assessment, telephonic screening, one or two technical rounds, a managerial round and HR. Use the other round pages to practise each stage.