Full Stack Engineer · interview questions

Full Stack Engineer interview questions: how you'd do it

From the role's core and recommended topics, most asked first. Filter by the kind of answer the question wants.

React Developer Core 11

  1. How do you choose between Context, Zustand, Redux Toolkit and server-state libraries?
  2. What makes a well-designed custom hook?
  3. How do you build robust forms in React?
  4. How can you use the `key` prop to reset a component's state?
  5. How do you build an accessible modal dialog in React?
  6. How do you render very large lists efficiently?
  7. How do you find performance problems in a React app?
  8. How do you code-split a React app?
  9. How do you build and maintain a React design system?
  10. How do you internationalize a React app?
  11. How do you add performant animations in React?

TypeScript Developer Core 21

  1. How do you type React component props, children and events in TypeScript?
  2. How do you type hooks like `useState`, `useReducer`, `useRef` and context?
  3. How do you write a generic React component (e.g., a typed List or Select)?
  4. How would you migrate a large JavaScript codebase to TypeScript?
  5. How do you model immutability in TypeScript?
  6. How should you handle errors in `catch` blocks in TypeScript?
  7. How do you test types themselves?
  8. How do you type an Express/Node API in TypeScript?
  9. How can you share types between frontend and backend?
  10. How would you implement a `DeepPartial<T>` type?
  11. How do you type async functions and promises?
  12. How do you type environment variables safely?
  13. How do you publish a TypeScript library with correct types for ESM and CommonJS consumers?
  14. How would you type an event emitter so event names and payloads are checked?
  15. How do you write a type-safe fetch wrapper?
  16. How do you implement mixins in TypeScript?
  17. How do you add types to globals like `window`?
  18. How do you type Maps, Sets and WeakMaps?
  19. How would you type a generic repository class?
  20. How do you safely use data from `JSON.parse` without a schema library?
  21. How do you make a class implement an interface, and what does `implements` actually check?

HTML & CSS Core 3

  1. How do you safely display user-generated content in HTML?
  2. How do you make an HTML table accessible, and when shouldn't you use a table?
  3. How do you add video with captions in HTML5?

API Design Core 7

  1. Most asked What makes an API RESTful, and what are good REST design practices?
  2. Most asked How should you version an API?
  3. How do you design reliable webhooks?
  4. How do you design APIs for long-running operations?
  5. What makes a great developer experience for a public API?
  6. How do you design event-driven APIs (events between services)?
  7. How do you deprecate an API endpoint responsibly?

Databases & Transactions Core 6

  1. Most asked How do you choose between SQL and NoSQL databases?
  2. Most asked How do you run schema migrations without downtime?
  3. What causes deadlocks and how do you handle them?
  4. How do you read a query plan and optimize a slow query?
  5. How should you back up and restore databases?
  6. How should you test database code?

Authentication Core 7

  1. Most asked How do you secure session cookies?
  2. Most asked How do you protect login endpoints from brute force and credential stuffing?
  3. How do you design a secure password reset flow?
  4. How do you implement logout correctly across sessions and tokens?
  5. How would you implement admin impersonation safely?
  6. How do you authenticate WebSocket connections?
  7. How do you safely link social logins to existing accounts?

Next.js Developer Recommended 28

  1. Most asked How do you manage metadata and SEO in the App Router?
  2. Most asked How do you implement authentication in a Next.js App Router app?
  3. Most asked What causes hydration mismatch errors and how do you fix them?
  4. Most asked How do you optimize Core Web Vitals in a Next.js app?
  5. How do you build forms with Server Actions, validation and pending states?
  6. How do you load third-party scripts efficiently in Next.js?
  7. How do you design good loading states in the App Router?
  8. How do you implement internationalization in the App Router?
  9. How do you test a Next.js application?
  10. How do you add a Content Security Policy to a Next.js app?
  11. How do you add observability to a Next.js app?
  12. How do you access a database from Next.js safely and efficiently?
  13. How would you migrate a large Next.js app from the Pages Router to the App Router?
  14. How do you read and set cookies and headers in the App Router?
  15. How do you avoid request waterfalls in Server Components?
  16. How do you add real-time features to a Next.js app?
  17. How do you structure a Next.js app in a monorepo?
  18. How do you find and reduce large client bundles in Next.js?
  19. How do you generate dynamic Open Graph images in Next.js?
  20. How do you colocate non-route files inside the `app` directory?
  21. How do you read query parameters in a Server Component page?
  22. How would you implement pagination and filters in the App Router?
  23. How do you implement a URL-addressable modal in the App Router?
  24. How should you handle third-party webhooks in Next.js?
  25. How can you preload critical resources in the App Router?
  26. How do you debug unexpected stale data in a Next.js App Router app?
  27. How do you investigate a production-only error that shows 'An error occurred in the Server Components render'?
  28. What should you consider for focus management during client-side navigation in Next.js?

Node.js Developer Recommended 31

  1. Most asked How do you implement graceful shutdown in a Node.js server?
  2. Most asked What causes memory leaks in Node.js and how do you diagnose them?
  3. Most asked How would you implement authentication in a Node.js API?
  4. Most asked What makes a well-designed REST API in Node.js?
  5. Most asked How do you implement rate limiting in a Node.js API?
  6. How do you profile CPU performance in a Node.js app?
  7. How do you create an HTTP server with Node's core `http` module, and why use a framework instead?
  8. How do you make HTTP requests in modern Node.js?
  9. How should you log in a production Node.js service?
  10. How do you test Node.js applications?
  11. How do you reduce npm supply-chain risk?
  12. How do you use Redis with Node.js for caching and coordination?
  13. How do you run background jobs in Node.js?
  14. How do you validate request input in Node.js APIs?
  15. How do you build real-time features with WebSockets in Node.js?
  16. How do you prevent path traversal when serving files in Node.js?
  17. How do you add observability to a Node.js service?
  18. How do you schedule recurring jobs in a Node.js system?
  19. How do you size Node.js memory in containers?
  20. How do you debug a Node.js application?
  21. How do you design liveness and readiness checks for a Node service?
  22. How do you do dependency injection in Node.js without a framework?
  23. How do you build a CLI tool with Node.js?
  24. How do you detect and fix N+1 queries in Node ORMs?
  25. How do you format numbers, currencies and plurals for different locales in Node?
  26. How do you use MongoDB effectively from Node.js?
  27. How do you organize routes in a larger Express app?
  28. How do you consume Kafka events reliably in Node.js?
  29. How do you achieve zero-downtime deployments for Node services?
  30. How do you implement HTTP caching in Node.js APIs?
  31. How do you process a large log file line by line in Node.js?

Python Developer Recommended 4

  1. How do you profile and optimize Python code?
  2. How do you mock correctly in Python tests?
  3. How do you run external commands safely with `subprocess`?
  4. How do you implement structured logging in Python services?

Docker Recommended 11

  1. Most asked How do you secure Docker containers and images?
  2. Most asked How do you make Docker images smaller?
  3. Most asked How do you limit a container's CPU and memory, and what happens when it exceeds them?
  4. Most asked How should you tag Docker images, and why is 'latest' a problem?
  5. Most asked How do you debug a container that exits immediately or behaves differently in production?
  6. Most asked How do you run Docker builds in CI pipelines efficiently and safely?
  7. What should you consider when choosing a base image?
  8. How do you run a database in Docker for local development, and should you do it in production?
  9. How do you speed up a slow Docker build?
  10. How do you clean up disk space used by Docker?
  11. How do you run multiple processes in one container, and should you?

Testing Recommended 19

  1. Most asked What makes a good unit test?
  2. Most asked How do you write reliable integration tests that use a database?
  3. Most asked What causes flaky tests and how do you fix them?
  4. How do you test code that depends on the current time or randomness?
  5. How do you test code that calls external HTTP services?
  6. How should you test frontend components?
  7. How do you test an API, and what would you automate?
  8. How do you approach performance and load testing?
  9. How do you manage test data for automated tests?
  10. What should block a release, and how do you report quality to stakeholders?
  11. How do you test a feature behind a feature flag?
  12. How do you integrate automated tests into a CI/CD pipeline?
  13. How should you manage test data?
  14. How do you test asynchronous code?
  15. How do you prevent regressions when fixing bugs?
  16. How do you include security testing in development?
  17. How do you add tests to legacy code that wasn't designed for testing?
  18. How do you test code behind feature flags?
  19. How do you test accessibility?

Caching Recommended 8

  1. Most asked How do you design good cache keys?
  2. How do you invalidate caches when many services and scripts write to the same tables?
  3. How do you choose a TTL?
  4. What should you consider when serializing objects into a cache?
  5. How do you invalidate content on a CDN?
  6. How would you cache high-frequency counters (views, likes) efficiently?
  7. How do you implement a distributed lock with Redis, and what are the caveats?
  8. What metrics tell you a cache is healthy?

Web Security & WAF Recommended 4

  1. How do you protect a web application from DDoS and abusive traffic?
  2. How do you manage vulnerable and outdated dependencies?
  3. How do you protect sign-up, login and checkout flows from bots?
  4. How do you build security into the development lifecycle?

Was this page helpful?

Report a mistake