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
- Most asked Explain React concept: controlled vs uncontrolled inputs.
- Most asked What does `useState` do and when should you use it?
- Most asked What does `useEffect` do and when should you use it?
- Most asked What does `useContext` do and when should you use it?
- Most asked What does `useRef` do and when should you use it?
- Most asked What does `custom hooks` do and when should you use it?
- Most asked What does `rules of hooks` do and when should you use it?
- Most asked What does `useMemo` do and when should you use it?
- Most asked What does `useCallback` do and when should you use it?
- Most asked When do you NOT need `useEffect`?
- What does `effect dependency mistakes` do and when should you use it?
- What does `cleanup in effects` do and when should you use it?
- Explain React concept: React elements vs components.
- Explain React concept: composition vs inheritance.
- What does `useReducer` do and when should you use it?
- What does `useTransition` do and when should you use it?
- Discuss Redux vs Context in React applications.
- Which accessibility practices matter most in React apps?
- What does `useLayoutEffect` do and when should you use it?
- What does `useId` do and when should you use it?
- What does `useDeferredValue` do and when should you use it?
- How do render props and higher-order components compare with custom hooks?
- When would you use `useImperativeHandle`?
- What is the difference between state and props in React?
TypeScript Developer Core 18
- Most asked Which built-in utility types do you use most, and what do they do?
- Most asked What does the `satisfies` operator do and how does it differ from a type annotation?
- Most asked Should you use enums or union types in TypeScript?
- Most asked Which `tsconfig` strictness options matter and what do they catch?
- Most asked What are type assertions (`as`) and the non-null assertion (`!`), and why should you use them sparingly?
- Most asked What are intersection types and how do they differ from interface extension?
- How do module systems (ESM vs CommonJS) interact with TypeScript settings?
- How do `tsc`, esbuild, SWC and Babel differ for TypeScript builds?
- What's the difference between an optional property (`x?: T`) and `x: T | undefined`?
- How do TypeScript access modifiers compare with JavaScript private fields?
- When would you use an abstract class versus an interface in TypeScript?
- What's the difference between `// @ts-ignore` and `// @ts-expect-error`?
- How do you type JSON values or recursive structures?
- What's the difference between `object`, `Object` and `{}` types?
- Should you use namespaces in modern TypeScript?
- What's the difference between `const`, `readonly` and `as const`?
- What's the difference between `string[]`, `Array<string>` and `[string]`?
- When should a function accept a union parameter versus using overloads?
HTML & CSS Core 13
- Most asked What is the difference between script, script async and script defer?
- Most asked Compare localStorage, sessionStorage and cookies.
- Which head tags matter for SEO and social sharing?
- Why set width and height on images, and when should you use loading="lazy"?
- What is the difference between a tag, an element and an attribute?
- What is the difference between block and inline elements?
- When should you use id and when class?
- What is the difference between article, section and div?
- What is the difference between absolute and relative URLs?
- What is the difference between GET and POST in an HTML form?
- What is the difference between canvas and SVG?
- What is the difference between strong and b, and between em and i?
- When do you use ul, ol and dl?
API Design Core 7
- Most asked Which HTTP methods are safe and idempotent, and why does it matter?
- Most asked Which HTTP status codes should an API use, and when?
- Most asked Compare offset pagination and cursor (keyset) pagination.
- Most asked When would you choose GraphQL over REST, or gRPC over both?
- How do you design bulk or batch endpoints?
- PUT vs PATCH: how do you implement updates?
- What should a health or status endpoint return?
Databases & Transactions Core 5
SQL & Databases Core 5
Authentication Core 7
- Most asked What is the difference between authentication and authorization?
- Most asked Compare session-based authentication with token-based (JWT) authentication.
- Most asked What are OAuth 2.0 and OpenID Connect, and how do they differ?
- What is Single Sign-On, and how do SAML and OIDC compare?
- When are API keys appropriate, and how do you manage them safely?
- Should you build authentication yourself or use an identity provider?
- Why use constant-time comparison for secrets?
Next.js Developer Recommended 12
- Most asked What is the difference between Server Components and Client Components?
- Most asked What are Route Handlers and when should you use them instead of Server Actions?
- Which props can be passed from a Server Component to a Client Component?
- What's the difference between the Node.js and Edge runtimes in Next.js?
- What's the difference between React's `cache()` and Next.js's `unstable_cache`?
- How do API Routes in the Pages Router differ from Route Handlers?
- When does `<Link>` prefetch, and how can you control it?
- When would you use a custom Node server with Next.js, and what do you lose?
- How does Next.js compare with Remix/React Router v7 and Astro?
- When would you use `template.tsx` instead of `layout.tsx`?
- Compare Auth.js, Clerk and rolling your own authentication in Next.js.
- How do you rate limit Server Actions or Route Handlers in Next.js?
Node.js Developer Recommended 17
- Most asked What is the difference between `process.nextTick`, Promise microtasks, `setImmediate` and `setTimeout(fn, 0)`?
- Most asked When do you use `Promise.all`, `Promise.allSettled`, `Promise.race` and `Promise.any`?
- Most asked Compare `worker_threads`, `cluster` and `child_process`.
- Compare Express, Fastify, NestJS and Hono.
- Compare npm, pnpm and Yarn, and explain lockfiles.
- How do Prisma, Drizzle and Kysely differ?
- What's the difference between `exec`, `execFile` and `spawn`, and what's the security concern?
- Which `node:crypto` APIs should you use for common tasks?
- Which modern built-in Node.js features reduce the need for third-party tools?
- How do Bun and Deno compare with Node.js?
- When would you use Server-Sent Events instead of WebSockets?
- Should Node.js terminate TLS itself?
- Should a Node.js server compress responses itself?
- Which Web-standard APIs are available globally in modern Node.js?
- How do you make a Node.js payment or order endpoint idempotent?
- Which `node:util` functions are most useful?
- How do sessions work with `express-session`, and what store should you use?
Python Developer Recommended 37
- Most asked Explain mutable vs immutable in Python.
- Most asked Explain is vs == in Python.
- Most asked Explain threading vs multiprocessing vs asyncio in Python.
- Most asked Backend Python interview: explain authN vs authZ.
- Most asked Explain deepcopy vs copy in Python.
- When do you use the `asyncio` module/package?
- When do you use the `logging` module/package?
- When do you use the `unittest / pytest` module/package?
- When do you use the `venv` module/package?
- Which pytest features do you use most?
- When do you use the `pathlib` module/package?
- When do you use the `collections` module/package?
- When do you use the `itertools` module/package?
- When do you use the `functools` module/package?
- When do you use the `json` module/package?
- When do you use the `concurrent.futures` module/package?
- When do you use the `secrets` module/package?
- Python packaging: requirements.txt vs pyproject.toml?
- Backend Python interview: explain Django ORM vs SQLAlchemy.
- When do you use `TypedDict`, `Literal`, `Protocol` and `@overload`?
- Compare dataclasses, attrs and Pydantic models.
- Explain the iterator protocol and the difference between iterables and iterators.
- What's the difference between `__new__` and `__init__`?
- What's the difference between `str` and `bytes`, and how do you handle encodings?
- Why is `pickle` dangerous, and what should you use instead?
- What is the difference between WSGI and ASGI, and how does it affect how a Python web app handles concurrent requests?
- When do you use the `argparse` module/package?
- When do you use the `dataclasses.asdict` module/package?
- When do you use the `enum` module/package?
- When do you use the `hashlib` module/package?
- Python packaging: wheels vs sdist?
- Why can floating-point math surprise you, and when should you use `Decimal` or `Fraction`?
- Which `contextlib` utilities are worth knowing?
- Compare f-strings, `str.format` and `%` formatting.
- Which built-ins make Python loops cleaner?
- How do Django, Flask and FastAPI compare for a new backend project?
- What is the difference between a list and a tuple in Python?
Docker Recommended 5
- Most asked What is a container, and how does it differ from a virtual machine?
- Most asked What is the difference between an image and a container, and how do image layers work?
- Most asked CMD or ENTRYPOINT: what is the difference, and what are exec and shell forms?
- Most asked ARG or ENV: what is the difference, and how do you pass secrets into a build safely?
- COPY or ADD: what is the difference?
Testing Recommended 2
Caching Recommended 10
- Most asked Explain the difference between cache penetration, cache breakdown and cache avalanche.
- Most asked Should you invalidate the cache before or after the database commit?
- Redis vs Memcached: when would you choose each?
- When should you use an in-process (local) cache vs a distributed cache?
- When would you use materialized views or denormalization instead of a cache?
- Which metrics show whether a cache is working well?
- What's the difference between memoization and caching?
- How do you cache GraphQL or highly dynamic API responses?
- Is it OK to store sessions in Redis?
- Which Redis maxmemory-policy should a pure cache use, and what if sessions share the instance?