Full Stack track

Full Stack developer interview questions

Panel-ready MERN Full Stack questions for freshers and experienced developers. Practice at Coding Cadre in Faridabad, or Online from Delhi NCR.

22 Moderate MongoDB Full Stack

What are indexes in MongoDB and why do they matter?

Short take Full answer on next page

Simple meaning

An index is a data structure that lets MongoDB find documents without scanning the whole collection.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
23 Moderate MongoDB Full Stack

What is the MongoDB aggregation pipeline used for?

Short take Full answer on next page

Simple meaning

Aggregation is a sequence of stages such as match, group, lookup, and project that transform documents on the server.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
24 Moderate MongoDB Full Stack

What does Mongoose populate do?

Short take Full answer on next page

Simple meaning

populate replaces stored ObjectId references with the related documents in a follow-up query.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
26 Moderate MongoDB Full Stack

What does lean() do on a Mongoose query?

Short take Full answer on next page

Simple meaning

lean() returns plain JavaScript objects instead of full Mongoose documents.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
27 Moderate MongoDB Full Stack

How do you paginate MongoDB results in an API?

Short take Full answer on next page

Simple meaning

Offset pagination uses skip and limit, which is simple but slow on large skips.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
28 Moderate React Full Stack

What are the Rules of Hooks?

Short take Full answer on next page

Simple meaning

Only call hooks at the top level of a React function, never inside loops or conditions.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
32 Moderate React Full Stack

What does React.memo do?

Short take Full answer on next page

Simple meaning

React.memo skips re-rendering a component when its props are shallowly equal.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
33 Moderate React Full Stack

How should a React page fetch data from Express?

Short take Full answer on next page

Simple meaning

Trigger the request in useEffect or a data library such as React Query, handle loading and error states, and cancel or ignore stale responses.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
35 Moderate React Full Stack

What is a custom hook and why write one?

Short take Full answer on next page

Simple meaning

A custom hook is a function starting with use that calls other hooks.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
37 Moderate Auth Full Stack

How do SameSite cookies relate to CSRF in a MERN app?

Short take Full answer on next page

Simple meaning

SameSite=Lax or Strict stops the browser from sending cookies on most cross-site requests, which blocks classic CSRF.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
38 Moderate Auth Full Stack

How does bcrypt salting protect stored passwords?

Short take Full answer on next page

Simple meaning

A salt is random data mixed into the hash so two users with the same password get different hashes.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
40 Moderate Auth Full Stack

What is OAuth 2.0 at a high level for a MERN login?

Short take Full answer on next page

Simple meaning

OAuth lets the user sign in with a provider such as Google without sharing their password with you.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
Prev Page 2 of 5 Next
Chat with us