Practice · 50 questions
Developer interview questions, answered
The questions that come up in almost every frontend, backend and full-stack round. For each: what the interviewer is really checking, the answer, the line to say in the room, the follow-up they'll ask next, and the trap to avoid.
Your progress0 of 50 done · saved on this device
JavaScript
The language questions every frontend and full-stack round opens with.
- 1What is a closure?
- 2How does the event loop work? In what order do setTimeout and a Promise run?
- 3How is `this` decided in JavaScript?
- 4What is hoisting? What is the difference between var, let and const?
- 5Promises or async/await? How do you handle errors, and run things in parallel?
- 6What is the difference between == and ===?
- 7What is the difference between debounce and throttle? Write debounce.
- 8What is the difference between a shallow copy and a deep copy?
The browser and React
What happens between the server and the pixels.
- 9What happens when you type a URL into the browser and press Enter?
- 10What is the difference between reflow and repaint? Why is layout thrashing slow?
- 11How does React decide what to re-render? Why do list items need keys?
- 12useEffect, useMemo, useCallback: when do you use each?
- 13What is CORS, and how do you fix a CORS error?
- 14Cookies, localStorage or sessionStorage: where do you keep an auth token?
Backend and APIs
How services talk safely, and what to do when they fail.
- 15REST or GraphQL: when would you pick each?
- 16What is idempotency, and why do payment APIs need idempotency keys?
- 17What is the difference between authentication and authorization? And 401 against 403?
- 18JWT or session cookies?
- 19How would you rate-limit an API?
- 20How do you make webhooks reliable?
- 21Which HTTP status codes should every backend developer know?
Databases
Indexes, transactions and the bugs that only show up under load.
- 22How does a database index work, and when is it not used?
- 23What are ACID transactions?
- 24What are isolation levels? Dirty reads, non-repeatable reads and phantoms.
- 25SQL or NoSQL: how do you choose?
- 26What is the N+1 query problem?
- 27What is the difference between replication and sharding?
- 28Optimistic or pessimistic locking?
OS, networking and concurrency
The fundamentals interviewers use to see how deep you go.
Data structures and patterns
The structures behind the coding round, and the patterns that crack it.
System design
The building blocks, then three classic designs end to end.
- 43What does a load balancer do? Layer 4 or layer 7, and which algorithms?
- 44How do you design caching? Cache-aside, invalidation, stampedes.
- 45Explain the CAP theorem with a real example.
- 46Why use a message queue? What do at-least-once delivery and idempotent consumers mean?
- 47Design a URL shortener.
- 48What is consistent hashing?
- 49Design a notification system: email, SMS and push.
- 50Design a chat app like WhatsApp, for one-to-one messages.