Senior Full Stack Engineer Interview Questions & Answers
40 questions for Senior Full Stack Engineer interviews — 20 medium, 20 hard.
About the Senior Full Stack Engineer role
A Senior Full Stack Engineer leads the technical direction of a product area. You design scalable architectures, choose libraries and patterns, plan migrations, set coding and security standards, and mentor the team. You work with product managers on estimates and trade-offs, handle critical incidents and make sure the system stays reliable as traffic grows. Deep knowledge of Node.js, MongoDB performance and React architecture is expected.
Write a reusable useFetch custom hook.
Show answer
What practical steps do you take to sanitise and validate input in an Express and MongoDB API?
Show answer
What are streams in Node.js and what types exist?
Show answer
Write an Axios interceptor in React that refreshes the access token on a 401 response.
Show answer
What is the difference between useMemo and useCallback?
Show answer
What are the important changes in Express 5 compared to Express 4?
Show answer
Explain the phases of the Node.js event loop.
Show answer
Users can upload profile pictures and documents. What security measures do you put in place?
Show answer
A setInterval inside useEffect always logs the initial count value instead of the updated one. Why, and how do you fix it?
Show answer
Attackers are trying thousands of passwords on your login endpoint. How do you defend it?
Show answer
How do you implement graceful shutdown for a Node.js API during deployments?
Show answer
Write a Redux Toolkit slice that fetches products with createAsyncThunk.
Show answer
Tell me about a time you disagreed with a teammate about an API design decision.
Show answer
Your chat feature uses Socket.IO and must now run on multiple Node instances. What changes are needed?
Show answer
Explain CSR, SSR, hydration and React Server Components.
Show answer
Write a GitHub Actions workflow that tests and builds a MERN project on every pull request.
Show answer
Your MERN product is expected to grow from 1,000 to 1 lakh daily users. How would you prepare the architecture?
Show answer
An error in one dashboard widget crashes the entire React page. How do you contain it?
Show answer
How would you use Redis caching in a MERN backend and what are the pitfalls?
Show answer
Your Node.js API runs on an 8-core server but CPU monitoring shows only one core busy. What do you do?
Show answer
What does a CI/CD pipeline for a MERN application usually include?
Show answer
What does React.memo do and when is it useful?
Show answer
What is the difference between server state and client state, and why use a library like TanStack Query?
Show answer
How do you handle pressure to ship quickly when you think a feature is not secure yet?
Show answer
Compare worker_threads, cluster and child_process in Node.js.
Show answer
Write a production Dockerfile for a Node.js Express API.
Show answer
When a user logs out or changes password, how do you make sure their existing JWTs stop working?
Show answer
What is a custom hook and what rules must hooks follow?
Show answer
Typing in a filter box over a list of 10,000 rows feels laggy. How do you fix it?
Show answer
Tell me about a deployment that went wrong and what you learned.
Show answer
How should errors be handled in a Node.js application?
Show answer
How would you achieve zero-downtime deployments for an Express API?
Show answer
How does React protect against XSS and where can XSS still happen?
Show answer
Compress a large file with gzip using streams in Node.js.
Show answer
What are the key new features in React 19?
Show answer
What is CSRF and how do SameSite cookies help prevent it?
Show answer
How is Nginx used in front of a MERN application?
Show answer
Describe a production issue you handled in a Node.js service.
Show answer
Memory usage of a production Node.js service keeps rising until it restarts. How do you investigate?
Show answer
Frequently asked questions
What does a Senior Full Stack Engineer do?
A Senior Full Stack Engineer leads the technical direction of a product area. You design scalable architectures, choose libraries and patterns, plan migrations, set coding and security standards, and mentor the team. You work with product managers on estimates and trade-offs, handle critical incidents and make sure the system stays reliable as traffic grows. Deep knowledge of Node.js, MongoDB performance and React architecture is expected.
Which skills are tested in a Senior Full Stack Engineer interview?
Expect questions on System design, Scalability, Code reviews, Mentoring, Incident handling. Most rounds also ask you to explain a project and solve one practical problem live.
How do I prepare for a Senior Full Stack Engineer interview?
Revise Node.js Core, React Hooks, State and Performance, Authentication and Security, Testing, Deployment and DevOps first using the topic sheets, practise the questions on this page aloud, then do one full mock interview to practise timing.