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
- How do you choose between Context, Zustand, Redux Toolkit and server-state libraries?
- What makes a well-designed custom hook?
- How do you build robust forms in React?
- How can you use the `key` prop to reset a component's state?
- How do you build an accessible modal dialog in React?
- How do you render very large lists efficiently?
- How do you find performance problems in a React app?
- How do you code-split a React app?
- How do you build and maintain a React design system?
- How do you internationalize a React app?
- How do you add performant animations in React?
TypeScript Developer Core 21
- How do you type React component props, children and events in TypeScript?
- How do you type hooks like `useState`, `useReducer`, `useRef` and context?
- How do you write a generic React component (e.g., a typed List or Select)?
- How would you migrate a large JavaScript codebase to TypeScript?
- How do you model immutability in TypeScript?
- How should you handle errors in `catch` blocks in TypeScript?
- How do you test types themselves?
- How do you type an Express/Node API in TypeScript?
- How can you share types between frontend and backend?
- How would you implement a `DeepPartial<T>` type?
- How do you type async functions and promises?
- How do you type environment variables safely?
- How do you publish a TypeScript library with correct types for ESM and CommonJS consumers?
- How would you type an event emitter so event names and payloads are checked?
- How do you write a type-safe fetch wrapper?
- How do you implement mixins in TypeScript?
- How do you add types to globals like `window`?
- How do you type Maps, Sets and WeakMaps?
- How would you type a generic repository class?
- How do you safely use data from `JSON.parse` without a schema library?
- How do you make a class implement an interface, and what does `implements` actually check?
HTML & CSS Core 3
API Design Core 7
- Most asked What makes an API RESTful, and what are good REST design practices?
- Most asked How should you version an API?
- How do you design reliable webhooks?
- How do you design APIs for long-running operations?
- What makes a great developer experience for a public API?
- How do you design event-driven APIs (events between services)?
- How do you deprecate an API endpoint responsibly?
Databases & Transactions Core 6
- Most asked How do you choose between SQL and NoSQL databases?
- Most asked How do you run schema migrations without downtime?
- What causes deadlocks and how do you handle them?
- How do you read a query plan and optimize a slow query?
- How should you back up and restore databases?
- How should you test database code?
Authentication Core 7
- Most asked How do you secure session cookies?
- Most asked How do you protect login endpoints from brute force and credential stuffing?
- How do you design a secure password reset flow?
- How do you implement logout correctly across sessions and tokens?
- How would you implement admin impersonation safely?
- How do you authenticate WebSocket connections?
- How do you safely link social logins to existing accounts?
Next.js Developer Recommended 28
- Most asked How do you manage metadata and SEO in the App Router?
- Most asked How do you implement authentication in a Next.js App Router app?
- Most asked What causes hydration mismatch errors and how do you fix them?
- Most asked How do you optimize Core Web Vitals in a Next.js app?
- How do you build forms with Server Actions, validation and pending states?
- How do you load third-party scripts efficiently in Next.js?
- How do you design good loading states in the App Router?
- How do you implement internationalization in the App Router?
- How do you test a Next.js application?
- How do you add a Content Security Policy to a Next.js app?
- How do you add observability to a Next.js app?
- How do you access a database from Next.js safely and efficiently?
- How would you migrate a large Next.js app from the Pages Router to the App Router?
- How do you read and set cookies and headers in the App Router?
- How do you avoid request waterfalls in Server Components?
- How do you add real-time features to a Next.js app?
- How do you structure a Next.js app in a monorepo?
- How do you find and reduce large client bundles in Next.js?
- How do you generate dynamic Open Graph images in Next.js?
- How do you colocate non-route files inside the `app` directory?
- How do you read query parameters in a Server Component page?
- How would you implement pagination and filters in the App Router?
- How do you implement a URL-addressable modal in the App Router?
- How should you handle third-party webhooks in Next.js?
- How can you preload critical resources in the App Router?
- How do you debug unexpected stale data in a Next.js App Router app?
- How do you investigate a production-only error that shows 'An error occurred in the Server Components render'?
- What should you consider for focus management during client-side navigation in Next.js?
Node.js Developer Recommended 31
- Most asked How do you implement graceful shutdown in a Node.js server?
- Most asked What causes memory leaks in Node.js and how do you diagnose them?
- Most asked How would you implement authentication in a Node.js API?
- Most asked What makes a well-designed REST API in Node.js?
- Most asked How do you implement rate limiting in a Node.js API?
- How do you profile CPU performance in a Node.js app?
- How do you create an HTTP server with Node's core `http` module, and why use a framework instead?
- How do you make HTTP requests in modern Node.js?
- How should you log in a production Node.js service?
- How do you test Node.js applications?
- How do you reduce npm supply-chain risk?
- How do you use Redis with Node.js for caching and coordination?
- How do you run background jobs in Node.js?
- How do you validate request input in Node.js APIs?
- How do you build real-time features with WebSockets in Node.js?
- How do you prevent path traversal when serving files in Node.js?
- How do you add observability to a Node.js service?
- How do you schedule recurring jobs in a Node.js system?
- How do you size Node.js memory in containers?
- How do you debug a Node.js application?
- How do you design liveness and readiness checks for a Node service?
- How do you do dependency injection in Node.js without a framework?
- How do you build a CLI tool with Node.js?
- How do you detect and fix N+1 queries in Node ORMs?
- How do you format numbers, currencies and plurals for different locales in Node?
- How do you use MongoDB effectively from Node.js?
- How do you organize routes in a larger Express app?
- How do you consume Kafka events reliably in Node.js?
- How do you achieve zero-downtime deployments for Node services?
- How do you implement HTTP caching in Node.js APIs?
- How do you process a large log file line by line in Node.js?
Python Developer Recommended 4
Docker Recommended 11
- Most asked How do you secure Docker containers and images?
- Most asked How do you make Docker images smaller?
- Most asked How do you limit a container's CPU and memory, and what happens when it exceeds them?
- Most asked How should you tag Docker images, and why is 'latest' a problem?
- Most asked How do you debug a container that exits immediately or behaves differently in production?
- Most asked How do you run Docker builds in CI pipelines efficiently and safely?
- What should you consider when choosing a base image?
- How do you run a database in Docker for local development, and should you do it in production?
- How do you speed up a slow Docker build?
- How do you clean up disk space used by Docker?
- How do you run multiple processes in one container, and should you?
Testing Recommended 19
- Most asked What makes a good unit test?
- Most asked How do you write reliable integration tests that use a database?
- Most asked What causes flaky tests and how do you fix them?
- How do you test code that depends on the current time or randomness?
- How do you test code that calls external HTTP services?
- How should you test frontend components?
- How do you test an API, and what would you automate?
- How do you approach performance and load testing?
- How do you manage test data for automated tests?
- What should block a release, and how do you report quality to stakeholders?
- How do you test a feature behind a feature flag?
- How do you integrate automated tests into a CI/CD pipeline?
- How should you manage test data?
- How do you test asynchronous code?
- How do you prevent regressions when fixing bugs?
- How do you include security testing in development?
- How do you add tests to legacy code that wasn't designed for testing?
- How do you test code behind feature flags?
- How do you test accessibility?
Caching Recommended 8
- Most asked How do you design good cache keys?
- How do you invalidate caches when many services and scripts write to the same tables?
- How do you choose a TTL?
- What should you consider when serializing objects into a cache?
- How do you invalidate content on a CDN?
- How would you cache high-frequency counters (views, likes) efficiently?
- How do you implement a distributed lock with Redis, and what are the caveats?
- What metrics tell you a cache is healthy?