Full stack developer interview questions and how to answer them

Full stack developer interview questions follow one request from the browser to the database and back: how the UI holds state, how the API is shaped and secured, how data is stored and queried, and how the whole thing is deployed and kept fast. Most processes combine a coding round, a practical build or take-home, a small design discussion and behavioral questions. Interviewers reward candidates who can explain the trade-offs at each layer, not those who list the most frameworks.

By Published 8 min read

What full stack teams are hiring for

A full stack developer can ship a feature without handing it off at the API boundary. In a small company that may mean building the form, the endpoint, the migration and the deploy pipeline in one week. In a larger company it usually means being strong on one side and fluent enough on the other to review code, debug across layers and design the contract between them. Interviewers check for both: depth somewhere, and no blind spots that would make you dangerous in production.

  • Frontend: component design, state, rendering performance, forms, accessibility and responsive layout.
  • Backend: API design, authentication, validation, background work and error handling.
  • Data: schema design, indexes, transactions and query performance.
  • Operations: containers, CI/CD, configuration, logs and metrics.
  • Judgment: choosing boring, proven tools for the problem at hand and explaining why.

How the interview loop is usually built

  1. ScreenA recruiter or engineer asks about your stack, a recent project and what you owned in it.
  2. Coding roundData structures and algorithms in a shared editor, or a practical task such as parsing a log file or building a small endpoint.
  3. Practical buildA take-home or a pairing session: add a feature to a small app, fix failing tests, or build a CRUD screen against an API.
  4. Design discussionSketch an application such as a booking site or a chat feature, covering data model, API, caching and deployment.
  5. Behavioral and team fitCollaboration, feedback, learning new tools and ownership of incidents.

Frontend questions

Frontend questions in full stack interviews
QuestionWhat it testsWhat a strong answer shows
How do you manage state in a React (or Vue, Angular) app?State designLocal state first, lifting it only when shared, server state in a fetching library with caching, and a global store only for truly global data
Why does this component re-render so often?Rendering modelProps or context changing identity on every render, and fixes such as memoization or moving state closer to where it is used
How would you build a form with validation?Practical UIClient checks for fast feedback, server checks as the real authority, and error messages tied to the right fields
How do you make a page work on phones and large screens?Responsive designFluid layouts with flexbox or grid, breakpoints driven by content, and testing on a real device
What makes a web app accessible?AccessibilitySemantic HTML, labels on inputs, keyboard navigation, visible focus, contrast and testing with a screen reader
Compare React, Angular and Vue.Framework judgmentHonest trade-offs: Angular's built-in structure, React's ecosystem and flexibility, Vue's gentle learning curve, and why the team's existing skills often decide
Frontend questions in full stack interviews. Scroll sideways on a small screen.

API and backend questions

  • What makes an API RESTful, and when would you choose GraphQL? Resources, HTTP verbs and status codes, statelessness. GraphQL helps when clients need flexible, nested data from many sources; it costs you caching simplicity and needs care with expensive queries.
  • How do you handle authentication and authorization? Authentication proves who the user is (session cookie or signed token, often through OAuth or OpenID Connect). Authorization decides what they can do, checked on the server for every request, never only in the UI.
  • Sessions or JWTs? Server sessions are easy to revoke and simple for one web app. Tokens suit several services or mobile clients, but revocation and expiry need a plan. Store browser credentials in httpOnly cookies where possible.
  • How do you design pagination for a large list? Offset pagination is simple but slows down and skips rows when data changes. Cursor pagination on an indexed column is stable and fast.
  • What does idempotency mean for an API? Repeating the same request has the same effect as sending it once. For payments or orders, accept an idempotency key so a retry does not charge twice.
  • How would you speed up a slow REST endpoint? Measure first: look at the trace or logs to see whether time goes to the database, an external call or serialization. Then add the missing index, batch queries, cache stable results or move slow work to a background job.

Database questions

Database questions and what interviewers listen for
QuestionWhat it testsWhat a strong answer shows
SQL or NoSQL for this app?Data modeling judgmentRelational for structured data with relationships and transactions; a document or key-value store for flexible shapes or very high write volume. Default to relational unless there is a reason
What is an index and what does it cost?Query performanceFaster reads on the indexed columns, slower writes and more storage, and composite index column order matching the query
What is the N+1 query problem?ORM awarenessOne query for a list, then one more per item. Fixed with a join, eager loading or a single batched query
What does ACID mean, and why care?TransactionsAtomicity, consistency, isolation and durability, with an example such as moving money between two accounts
How do you change a schema without downtime?MigrationsAdditive steps: add the column, backfill, deploy code that uses it, then remove the old column in a later release
Database questions and what interviewers listen for. Scroll sideways on a small screen.
// N+1: one query for posts, then one per post for its author
const posts = await db.query("SELECT * FROM posts LIMIT 20");
for (const post of posts) {
  post.author = await db.query("SELECT * FROM users WHERE id = ?", [post.user_id]);
}

// Batched: two queries in total
const ids = [...new Set(posts.map((p) => p.user_id))];
const users = await db.query("SELECT * FROM users WHERE id IN (?)", [ids]);
The N+1 pattern and a batched fix

Security questions

  • How do you prevent SQL injection? Parameterized queries or a query builder, never string concatenation with user input, and a database user with only the permissions it needs.
  • What is XSS and how do you stop it? Injected script running in another user's browser. Escape output by default, avoid inserting raw HTML, and add a Content Security Policy.
  • What is CSRF? A forged request that rides on a logged-in user's cookies. SameSite cookies and anti-CSRF tokens prevent it.
  • What is CORS, and how do you configure it correctly? A browser rule that blocks cross-origin reads unless the server allows them. Allow specific origins, not a wildcard with credentials, and remember it is not an access control for your API.
  • Where do secrets live? In environment variables or a secrets manager, injected at deploy time, never committed to the repository.

Performance, caching and infrastructure

  • Where would you add caching? Browser and CDN for static assets, an in-memory store such as Redis for expensive reads, and HTTP cache headers for public responses. Explain how each cache is invalidated.
  • When would you use a message queue? For work that does not need to finish inside the request: emails, image processing, webhooks. It smooths spikes and lets you retry failures.
  • What does Docker give a full stack team? The same environment on every laptop and in production, and a single artifact for the pipeline to test and deploy.
  • How have you set up CI/CD? Lint, tests and a build on every pull request, automatic deploy to staging, and a controlled deploy to production with a quick rollback.
  • Monolith or microservices? A modular monolith is usually right for a small team. Split out a service when a part needs separate scaling, ownership or release cadence.
  • How would you handle a very large number of concurrent users? Stateless app servers behind a load balancer, caching, read replicas, queues for slow work, and measuring before guessing. The system design hub covers this in depth.

The open design question

"Walk me through building a full stack app from scratch" is common for mid-level and senior roles. Anchor it in a concrete product, such as a team task tracker, and move in order: users and core actions, data model, API endpoints, frontend structure, authentication, deployment, and what you would measure in the first month. Mention what you would leave out of version one.

Fictional example

Answering "Tell me about a performance problem you fixed"
Our order history page took about six seconds to load for larger customers. I started with the browser network tab and saw one API call taking most of that time. The server trace showed more than 200 small queries for a single request: the ORM was loading each order's items one by one. I switched to eager loading for items, added a composite index on customer and created date, and paginated the list at 25 orders. The page dropped to under a second, and I added a test that fails if the endpoint runs more than five queries, so the problem cannot quietly return.

Behavioral questions for full stack roles

  • Do you lean frontend or backend, and what did you do to close the gap on the other side?
  • Tell me about a production incident you were involved in. What did you change afterwards?
  • Describe a time you had to learn a new framework or language quickly for a project.
  • How do you keep code maintainable when deadlines are tight?
  • Tell me about feedback on a code review that changed how you work.
  • How do you split your time between feature work, bugs and technical debt?

Answer with one specific story each, as the behavioral question guide explains. For the frontend or backend question, be honest about your stronger side and show concrete work on the weaker one.

If the backend half of the job is in one language, go deeper with the Java developer interview guide or the Python developer interview guide.

A three-week preparation plan

  • Week 1: daily coding practice on arrays, hash maps, strings and trees, plus a review of HTTP, REST conventions, status codes and cookies.
  • Week 2: build a small app end to end in your main stack with authentication, one relational table pair, pagination, tests and a Dockerfile. Note every decision you make.
  • Week 3: practice two design questions aloud, revise security basics (injection, XSS, CSRF, CORS), and rehearse three project stories with a measurable result.

For deeper practice on one side, the frontend developer and backend developer guides go further into browser internals and server concurrency.

When you rehearse, it helps to hear how you explain a trade-off, not just whether the code runs. Natively, an AI interview assistant for Mac and Windows, transcribes a mock session on your computer and saves the transcript, so you can review where your explanation of a schema or an API design got vague. During practice it can also read a coding problem from a screenshot and suggest an approach and code to compare against your own.

Questions people ask

What are the most common full stack developer interview questions?

State management in a frontend framework, REST versus GraphQL, authentication and authorization, SQL versus NoSQL, database indexes, the N+1 query problem, preventing SQL injection and XSS, caching, CI/CD, and designing an app from scratch.

What is the N+1 query problem?

Loading a list with one query and then running one more query for each item, so 20 items cost 21 queries. Fix it with a join, eager loading in the ORM or one batched query.

Which tech stack should I know for a full stack interview?

One stack known deeply beats several known lightly. A common choice is TypeScript with React on the frontend, Node or Python on the server and PostgreSQL, plus Git, Docker and a CI pipeline.

How do I answer a system design question as a full stack developer?

Pick a concrete product, then cover users and actions, data model, API, frontend structure, authentication, caching and deployment in that order, and say what you would leave out of the first version.

Where to go next

Practice with the same assistant you would use on a call: it listens, transcribes and suggests answers from your own resume and the job description.

Facts on this page were last checked on . Product details come from the Natively app itself; if something here is out of date, tell us at hello@heynatively.com.

Keep reading

Put it on your own machine.

A live-conversation assistant that runs locally. Your conversations stay on your machine.

macOS 12+ · Windows 10/11

© 2026 Natively AI Private Limited

Source-available under the Natively Personal Use Source License v1.0 · IP geolocation by DB-IP