Full Stack Developer interview questions and answers
Full stack interviews cover both the browser and the server, so expect a mix of JavaScript or TypeScript, a frontend framework, API design and databases, often through a small app you build or extend.
About you and the role
Do you prefer frontend or backend work?
Sample answer: Answer honestly and positively: name the side you lean towards and why, then give a concrete example of strong work on the other side. Teams hire full stack developers to move a feature end to end, so stress that you can carry a feature from the database to the screen without waiting on others.
Skills and knowledge
How would you build a login system?
Sample answer: Hash passwords with a slow algorithm such as bcrypt or Argon2, never store them plain. After login, issue either a secure, HttpOnly, SameSite session cookie or a short-lived token with a refresh token. Add rate limits and lockouts against guessing, password reset by email with a single-use expiring link, and consider using an established auth provider instead of writing it all yourself.
What is CORS and why do browsers enforce it?
Sample answer: Browsers block a page from reading responses from another origin unless that server allows it with Access-Control-Allow-Origin headers. It protects users so a random site cannot use their logged-in cookies to read data from your API. Fix CORS errors on the server by allowing only the origins you trust, not with a wildcard on authenticated APIs.
How do you keep the frontend and backend in sync when the API changes?
Sample answer: Share types or generate them from an API schema (OpenAPI or GraphQL), version breaking changes, and add new fields before removing old ones so old clients keep working. Contract tests or end-to-end tests in CI catch mismatches before release.
SQL or MongoDB for a new project?
Sample answer: Ask about the data first. Orders, users and payments with relationships and a need for transactions fit SQL such as PostgreSQL. Content with flexible, nested shapes that is read whole by one key can fit MongoDB. If unsure, PostgreSQL is a safe default because it also stores JSON well.
How do you handle file uploads in a web app?
Sample answer: For large files, have the server create a pre-signed URL and let the browser upload straight to object storage such as S3, so your server is not a bottleneck. Check file type and size, scan if needed, store only the file key in the database, and serve files through a CDN with the right access rules.
How would you deploy a full stack app?
Sample answer: Package it with Docker or use a platform service, run the database as a managed service, keep secrets in environment variables or a secret manager, and set up CI to run tests and deploy on merge. Add health checks, logs, error tracking and a quick way to roll back.
What would you test, and at which level?
Sample answer: Many fast unit tests for logic, integration tests for API routes against a real test database, and a handful of end-to-end tests for the most important user flows such as sign-up and checkout. Test behaviour, not implementation details, so refactors do not break tests needlessly.
What are cookies, localStorage and sessionStorage?
Sample answer: Cookies are small values sent to the server with every request, which suits sessions; mark them HttpOnly, Secure and SameSite. localStorage keeps data in the browser with no expiry and is readable by any script on the page, so never store tokens there. sessionStorage is the same but is cleared when the tab closes.
REST or GraphQL: which would you choose?
Sample answer: REST is simple, cache-friendly and well understood, ideal for most public and internal APIs. GraphQL lets clients ask for exactly the fields they need in one request, which helps apps with many different screens and mobile clients, but adds complexity in caching, permissions and query cost. Choose based on clients' needs.
How do you protect a web app from XSS and CSRF?
Sample answer: For cross-site scripting, escape all user content when rendering (frameworks like React do this by default), avoid inserting raw HTML and add a Content Security Policy. For cross-site request forgery, use SameSite cookies and CSRF tokens on forms, and require proper auth headers on APIs.
How do you handle environment settings such as API keys across dev, staging and production?
Sample answer: Keep settings in environment variables or a secret manager, never in the code. Commit a sample file listing the names without values, validate settings at startup so a missing one fails loudly, and give each environment its own keys so a leak in testing does not expose production.
Past experience
Tell me about a feature you shipped end to end.
Sample answer: Walk through it in order: the user need, the data model you designed, the API, the UI, how you tested it and how it was released (behind a flag, to a small group first). Share one problem you hit along the way and one measurable result after launch.
How do you keep up with new tools in both frontend and backend?
Sample answer: Mention a few real habits: release notes of the frameworks you use, a couple of newsletters or podcasts, trying new tools on side projects before using them at work, and sharing learnings with the team. Show judgement too: you adopt new tools when they solve a real problem, not because they are new.
What would you do?
A page loads slowly but you are not sure if the frontend or backend is to blame. How do you find out?
Sample answer: Open the browser's network tab: if the API call itself takes most of the time, look at the backend with logs, tracing and query timing. If the API is fast but the page still feels slow, profile the frontend for large bundles, heavy rendering or too many requests in a row. Fix the biggest cost first and measure again.
You must ship a feature in two days that normally takes a week. What do you cut?
Sample answer: Agree with the product owner on the core user problem and build only the simplest flow that solves it. Keep tests for the important paths, security and data integrity; cut polish, edge-case settings and nice-to-have screens. Put it behind a feature flag and list the follow-up work openly.
Open Full Stack Developer jobs
Remote · Taiwan
Senior AI Engineer, AI-Native Full Stack (Houzz Pro)
London, England, United Kingdom
Full-Stack Engineer, Global Customer Experience
Amsterdam, Netherlands
Full Stack Java Developer
The Hague, Netherlands
Full Stack Engineer, Frontend-focused (Next.js + Django)
Remote · United States
Sr. Software Engineer (Fullstack/Backend)
Remote · Worldwide