MERN Stack Interview Questions in Ahmedabad
36 practice questions with answers for MERN Stack interviews in Ahmedabad.
MERN Stack jobs in Ahmedabad
Ahmedabad and GIFT City have a growing market for IT services, fintech and product start-ups. Companies here value hands-on skills and the ability to work across tools, especially in smaller teams.
Below are 36 questions that match the mix of service, product and domain employers hiring mern stack developers in Ahmedabad.
Your API has 40 routes and each returns errors in a different format. How would you standardise this?
Show answer
How do class component lifecycle methods map to hooks?
Show answer
When a user logs out or changes password, how do you make sure their existing JWTs stop working?
Show answer
What does lean() do in Mongoose and when should you use it?
Show answer
What is MongoDB and how is it different from a relational database?
Show answer
A component calls setState inside useEffect and the app goes into an infinite render loop. Why?
Show answer
Why does the order of middleware matter in Express?
Show answer
A developer accidentally pushed the .env file with the MongoDB password and JWT secret to a public repository. What do you do?
Show answer
How do you implement graceful shutdown for a Node.js API during deployments?
Show answer
A MongoDB query on an orders collection takes 3 seconds. How do you diagnose and fix it?
Show answer
Write a reusable useFetch custom hook.
Show answer
Write an aggregation that counts orders and sums revenue per status.
Show answer
Compare Promise.all, Promise.allSettled, Promise.race and Promise.any.
Show answer
Write a Redux Toolkit slice that fetches products with createAsyncThunk.
Show answer
How do you protect certain routes in React so that only logged-in users can access them?
Show answer
How do environment variables work in a Vite React app compared to a Node.js backend?
Show answer
How do you implement code splitting in a React app?
Show answer
How does async/await improve on Promise chains, and how do you handle errors with it?
Show answer
You need to call an external API 500 times but it allows only 5 concurrent requests. How would you implement this?
Show answer
How is Nginx used in front of a MERN application?
Show answer
What are streams in Node.js and what types exist?
Show answer
What is the difference between app.use, app.get and express.Router?
Show answer
Set a refresh token in a secure httpOnly cookie after login.
Show answer
How do you add a timeout to a fetch call in Node.js?
Show answer
Write a docker-compose file to run a MERN app locally.
Show answer
What is the output order of console.log('A'), setTimeout(() => console.log('B'), 0), Promise.resolve().then(() => console.log('C')) and console.log('D')?
Show answer
What is the Context API and when should you avoid it?
Show answer
Write a deep clone function that handles nested objects, arrays and dates.
Show answer
What is CORS and how do you configure it in an Express API?
Show answer
How does the JavaScript event loop work with microtasks and macrotasks?
Show answer
What is a custom hook and what rules must hooks follow?
Show answer
When should you use useReducer instead of useState?
Show answer
What are Mongoose middleware hooks and give a common use case.
Show answer
How would you explain a technical decision, such as choosing REST over GraphQL, to a non-technical manager?
Show answer
Create a basic HTTP server in Node.js without Express that returns JSON.
Show answer
Frequently asked questions
Which companies hire MERN Stack professionals in Ahmedabad?
Companies with large offices in Ahmedabad include many IT services and product firms. Use their company pages below to practise employer-specific sets.
Are MERN Stack interviews in Ahmedabad different from other cities?
The questions depend more on the company than the city. Ahmedabad's mix of employers decides the style: Companies here value hands-on skills and the ability to work across tools, especially in smaller teams
How do I find MERN Stack jobs in Ahmedabad?
Shortlist companies with Ahmedabad offices, keep your CV focused on MERN Stack projects, apply on company career pages and job portals with the Ahmedabad filter, and practise the questions on this page before each interview.