Home › Blog › Full stack developer interview questions, frontend to database

Full stack developer interview questions, frontend to database

Full stack interviews test breadth with enough depth to ship a feature end to end. Expect JavaScript or TypeScript fundamentals, a frontend framework, API design, authentication and sessions, a database, performance on both sides, and deployment. Many loops include a practical exercise — build a small feature with a UI, an API and storage — and an end-to-end design question. Interviewers look for sound decisions at each layer and an understanding of how the layers affect each other.

Fifteen common full stack interview questions

  1. Walk me through what happens from a button click to a database write and back.
  2. Explain the JavaScript event loop.
  3. How does your frontend framework decide when to re-render?
  4. Where do you keep state: component, global store, server cache or URL?
  5. Server-side rendering versus client-side rendering?
  6. How do you design an API for a new feature?
  7. Cookies, sessions or JWTs for authentication — trade-offs?
  8. What are CORS and CSRF, and how do you handle them?
  9. How do you prevent XSS and SQL injection?
  10. How would you model the data for a comments feature?
  11. How do you make a slow page fast — on the frontend and the backend?
  12. How do you handle file uploads?
  13. How do you deploy a full stack app, and how do you roll back?
  14. How do you test across the stack?
  15. Design a small product end to end, such as a to-do app with sharing.

Frontend fundamentals

Auth and web security

TopicInterview-ready answer
Session cookiesServer-side state; easy revocation; use HttpOnly, Secure, SameSite
JWTsStateless and portable; harder to revoke; keep short-lived with refresh tokens
CORSBrowser rule controlling which origins can call your API; configure allowed origins explicitly
CSRFForged requests using the user's cookies; mitigate with SameSite cookies and CSRF tokens
XSSInjected scripts; escape output, avoid unsafe HTML insertion, use a Content Security Policy
SQL injectionUse parameterised queries or an ORM correctly

Backend and data

For a comments feature: a comments table with id, post_id, author_id, parent_id for threading, body and timestamps; an index on (post_id, created_at) for listing; cursor pagination; soft deletes so threads survive removal. Validate input, rate-limit posting, and sanitise rendering. Mention N+1 queries when loading authors and how you'd batch them. See SQL interview questions.

Performance on both sides

The practical exercise

Take-home or live build exercises reward working software over completeness. Get a thin vertical slice running — one screen, one endpoint, one table — then add features. Write a short README covering decisions, trade-offs and what you'd do with more time, and include a few meaningful tests. Our take-home assignment guide covers the format.

Practising

Reading answers is not the same as saying them. Pick ten of the questions above and answer them aloud against a timer; a free AI interview assistant like CoPilot Interview can ask full stack questions in a mock interview and flag answers that ran long or lacked an example. Rehearse the click-to-database walkthrough until you can explain every hop in under three minutes. See also JavaScript and Node.js questions.

Disclosure: CoPilot Interview is our product, so weigh what we say about it accordingly. Everything else on this page applies whichever tool you use, or none.

Frequently asked questions

What is asked in a full stack developer interview?

JavaScript and framework fundamentals, state and rendering, API design, authentication, web security (CORS, CSRF, XSS, injection), data modelling, performance, deployment, testing and often a practical build exercise.

JWT or session cookies — which is better?

Session cookies are simpler to revoke and secure by default with the right flags. JWTs are stateless and portable across services but need short lifetimes and refresh tokens. Choose based on architecture.

How deep do full stack interviews go on each layer?

Usually broad with one area of depth. Expect solid fundamentals everywhere and deeper questions in whichever side your experience emphasises.

How do I prepare for a full stack take-home?

Build a thin working slice first, then extend it; document decisions and trade-offs in a README; include meaningful tests; and keep the scope realistic.

Practise on real interview questions

Run 145 real interview questions across 10 tracks, answer out loud and see a structured answer to compare with yours. Free, no signup.

Try a practice question