Full Stack Engineer · interview questions

Full Stack Engineer interview questions: comparison

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

React Developer Core 24

  1. Most asked Explain React concept: controlled vs uncontrolled inputs.
  2. Most asked What does `useState` do and when should you use it?
  3. Most asked What does `useEffect` do and when should you use it?
  4. Most asked What does `useContext` do and when should you use it?
  5. Most asked What does `useRef` do and when should you use it?
  6. Most asked What does `custom hooks` do and when should you use it?
  7. Most asked What does `rules of hooks` do and when should you use it?
  8. Most asked What does `useMemo` do and when should you use it?
  9. Most asked What does `useCallback` do and when should you use it?
  10. Most asked When do you NOT need `useEffect`?
  11. What does `effect dependency mistakes` do and when should you use it?
  12. What does `cleanup in effects` do and when should you use it?
  13. Explain React concept: React elements vs components.
  14. Explain React concept: composition vs inheritance.
  15. What does `useReducer` do and when should you use it?
  16. What does `useTransition` do and when should you use it?
  17. Discuss Redux vs Context in React applications.
  18. Which accessibility practices matter most in React apps?
  19. What does `useLayoutEffect` do and when should you use it?
  20. What does `useId` do and when should you use it?
  21. What does `useDeferredValue` do and when should you use it?
  22. How do render props and higher-order components compare with custom hooks?
  23. When would you use `useImperativeHandle`?
  24. What is the difference between state and props in React?

TypeScript Developer Core 18

  1. Most asked Which built-in utility types do you use most, and what do they do?
  2. Most asked What does the `satisfies` operator do and how does it differ from a type annotation?
  3. Most asked Should you use enums or union types in TypeScript?
  4. Most asked Which `tsconfig` strictness options matter and what do they catch?
  5. Most asked What are type assertions (`as`) and the non-null assertion (`!`), and why should you use them sparingly?
  6. Most asked What are intersection types and how do they differ from interface extension?
  7. How do module systems (ESM vs CommonJS) interact with TypeScript settings?
  8. How do `tsc`, esbuild, SWC and Babel differ for TypeScript builds?
  9. What's the difference between an optional property (`x?: T`) and `x: T | undefined`?
  10. How do TypeScript access modifiers compare with JavaScript private fields?
  11. When would you use an abstract class versus an interface in TypeScript?
  12. What's the difference between `// @ts-ignore` and `// @ts-expect-error`?
  13. How do you type JSON values or recursive structures?
  14. What's the difference between `object`, `Object` and `{}` types?
  15. Should you use namespaces in modern TypeScript?
  16. What's the difference between `const`, `readonly` and `as const`?
  17. What's the difference between `string[]`, `Array<string>` and `[string]`?
  18. When should a function accept a union parameter versus using overloads?

HTML & CSS Core 13

  1. Most asked What is the difference between script, script async and script defer?
  2. Most asked Compare localStorage, sessionStorage and cookies.
  3. Which head tags matter for SEO and social sharing?
  4. Why set width and height on images, and when should you use loading="lazy"?
  5. What is the difference between a tag, an element and an attribute?
  6. What is the difference between block and inline elements?
  7. When should you use id and when class?
  8. What is the difference between article, section and div?
  9. What is the difference between absolute and relative URLs?
  10. What is the difference between GET and POST in an HTML form?
  11. What is the difference between canvas and SVG?
  12. What is the difference between strong and b, and between em and i?
  13. When do you use ul, ol and dl?

API Design Core 7

  1. Most asked Which HTTP methods are safe and idempotent, and why does it matter?
  2. Most asked Which HTTP status codes should an API use, and when?
  3. Most asked Compare offset pagination and cursor (keyset) pagination.
  4. Most asked When would you choose GraphQL over REST, or gRPC over both?
  5. How do you design bulk or batch endpoints?
  6. PUT vs PATCH: how do you implement updates?
  7. What should a health or status endpoint return?

Databases & Transactions Core 5

  1. Compare optimistic and pessimistic locking.
  2. Should primary keys be auto-increment integers or UUIDs?
  3. When do you need a dedicated search engine instead of SQL LIKE queries?
  4. When is storing JSON in a relational database appropriate?
  5. How do you perform large data updates or backfills safely?

SQL & Databases Core 5

  1. SQL interview: explain UNION vs UNION ALL.
  2. SQL interview: explain EXISTS vs IN.
  3. Data modeling: surrogate vs natural keys?
  4. Data modeling: OLTP vs OLAP?
  5. Indexing/performance: sequential vs index scan?

Authentication Core 7

  1. Most asked What is the difference between authentication and authorization?
  2. Most asked Compare session-based authentication with token-based (JWT) authentication.
  3. Most asked What are OAuth 2.0 and OpenID Connect, and how do they differ?
  4. What is Single Sign-On, and how do SAML and OIDC compare?
  5. When are API keys appropriate, and how do you manage them safely?
  6. Should you build authentication yourself or use an identity provider?
  7. Why use constant-time comparison for secrets?

Next.js Developer Recommended 12

  1. Most asked What is the difference between Server Components and Client Components?
  2. Most asked What are Route Handlers and when should you use them instead of Server Actions?
  3. Which props can be passed from a Server Component to a Client Component?
  4. What's the difference between the Node.js and Edge runtimes in Next.js?
  5. What's the difference between React's `cache()` and Next.js's `unstable_cache`?
  6. How do API Routes in the Pages Router differ from Route Handlers?
  7. When does `<Link>` prefetch, and how can you control it?
  8. When would you use a custom Node server with Next.js, and what do you lose?
  9. How does Next.js compare with Remix/React Router v7 and Astro?
  10. When would you use `template.tsx` instead of `layout.tsx`?
  11. Compare Auth.js, Clerk and rolling your own authentication in Next.js.
  12. How do you rate limit Server Actions or Route Handlers in Next.js?

Node.js Developer Recommended 17

  1. Most asked What is the difference between `process.nextTick`, Promise microtasks, `setImmediate` and `setTimeout(fn, 0)`?
  2. Most asked When do you use `Promise.all`, `Promise.allSettled`, `Promise.race` and `Promise.any`?
  3. Most asked Compare `worker_threads`, `cluster` and `child_process`.
  4. Compare Express, Fastify, NestJS and Hono.
  5. Compare npm, pnpm and Yarn, and explain lockfiles.
  6. How do Prisma, Drizzle and Kysely differ?
  7. What's the difference between `exec`, `execFile` and `spawn`, and what's the security concern?
  8. Which `node:crypto` APIs should you use for common tasks?
  9. Which modern built-in Node.js features reduce the need for third-party tools?
  10. How do Bun and Deno compare with Node.js?
  11. When would you use Server-Sent Events instead of WebSockets?
  12. Should Node.js terminate TLS itself?
  13. Should a Node.js server compress responses itself?
  14. Which Web-standard APIs are available globally in modern Node.js?
  15. How do you make a Node.js payment or order endpoint idempotent?
  16. Which `node:util` functions are most useful?
  17. How do sessions work with `express-session`, and what store should you use?

Python Developer Recommended 37

  1. Most asked Explain mutable vs immutable in Python.
  2. Most asked Explain is vs == in Python.
  3. Most asked Explain threading vs multiprocessing vs asyncio in Python.
  4. Most asked Backend Python interview: explain authN vs authZ.
  5. Most asked Explain deepcopy vs copy in Python.
  6. When do you use the `asyncio` module/package?
  7. When do you use the `logging` module/package?
  8. When do you use the `unittest / pytest` module/package?
  9. When do you use the `venv` module/package?
  10. Which pytest features do you use most?
  11. When do you use the `pathlib` module/package?
  12. When do you use the `collections` module/package?
  13. When do you use the `itertools` module/package?
  14. When do you use the `functools` module/package?
  15. When do you use the `json` module/package?
  16. When do you use the `concurrent.futures` module/package?
  17. When do you use the `secrets` module/package?
  18. Python packaging: requirements.txt vs pyproject.toml?
  19. Backend Python interview: explain Django ORM vs SQLAlchemy.
  20. When do you use `TypedDict`, `Literal`, `Protocol` and `@overload`?
  21. Compare dataclasses, attrs and Pydantic models.
  22. Explain the iterator protocol and the difference between iterables and iterators.
  23. What's the difference between `__new__` and `__init__`?
  24. What's the difference between `str` and `bytes`, and how do you handle encodings?
  25. Why is `pickle` dangerous, and what should you use instead?
  26. What is the difference between WSGI and ASGI, and how does it affect how a Python web app handles concurrent requests?
  27. When do you use the `argparse` module/package?
  28. When do you use the `dataclasses.asdict` module/package?
  29. When do you use the `enum` module/package?
  30. When do you use the `hashlib` module/package?
  31. Python packaging: wheels vs sdist?
  32. Why can floating-point math surprise you, and when should you use `Decimal` or `Fraction`?
  33. Which `contextlib` utilities are worth knowing?
  34. Compare f-strings, `str.format` and `%` formatting.
  35. Which built-ins make Python loops cleaner?
  36. How do Django, Flask and FastAPI compare for a new backend project?
  37. What is the difference between a list and a tuple in Python?

Docker Recommended 5

  1. Most asked What is a container, and how does it differ from a virtual machine?
  2. Most asked What is the difference between an image and a container, and how do image layers work?
  3. Most asked CMD or ENTRYPOINT: what is the difference, and what are exec and shell forms?
  4. Most asked ARG or ENV: what is the difference, and how do you pass secrets into a build safely?
  5. COPY or ADD: what is the difference?

Testing Recommended 2

  1. Most asked What's the difference between mocks, stubs, fakes and spies?
  2. What is mutation testing, and what does it tell you that code coverage doesn't?

Caching Recommended 10

  1. Most asked Explain the difference between cache penetration, cache breakdown and cache avalanche.
  2. Most asked Should you invalidate the cache before or after the database commit?
  3. Redis vs Memcached: when would you choose each?
  4. When should you use an in-process (local) cache vs a distributed cache?
  5. When would you use materialized views or denormalization instead of a cache?
  6. Which metrics show whether a cache is working well?
  7. What's the difference between memoization and caching?
  8. How do you cache GraphQL or highly dynamic API responses?
  9. Is it OK to store sessions in Redis?
  10. Which Redis maxmemory-policy should a pure cache use, and what if sessions share the instance?

Web Security & WAF Recommended 1

  1. Which HTTP security headers should every web app send?

Was this page helpful?

Report a mistake