🏗️ System Design Fundamentals — interview questions

11 questions. Filter by what the role asks for; open one for the six layers of the answer. The course is where the answers come from.

11 of 11

01A candidate spends two minutes on requirements, then draws a CDN, a cache, three microservices and a queue — all before doing any arithmetic — and can't justify the queue when asked why it's there. Which phase actually failed, and why can't the phases run in a different order?Methodeasy0-2y02A design doc says "we handle 500 requests/second at peak, so a thread pool of 50 threads is plenty of headroom." The doc doesn't mention request duration. What's missing from that sizing argument, and how do you fix it?Capacity estimationmedium0-2y03A candidate answers "I'd use Kafka to decouple the services, Redis to cache the hot reads, and Cassandra for the write-heavy table." What's wrong with this answer even if every technology choice is defensible, and what would fix it?Trade-offseasy0-2y04Four identical-looking servers behind a load balancer; one is having a bad day (GC storm) and answers three times slower than the others. Why does round robin make this dramatically worse than it needs to be, and what actually fixes it?Load balancingmedium3-5y05A product's price is cached with cache-aside (read: check cache, miss goes to DB, populate cache; write: update DB, delete cache entry). A customer reports seeing the old price for an hour after an admin changed it, even though the cache delete clearly ran. Walk through how this happens and how you'd close it.Cachingmedium3-5y06A five-node cache cluster scales to six nodes using `partition = hash(key) mod N`. What breaks operationally, and what does consistent hashing actually change about it?Partitioningmedium3-5y07A leader and two asynchronous followers, F1 (200ms behind) and F2 (4s behind, slow disk). The leader accepts a write and crashes one second later with no time to ask it anything. Which follower do you promote, what happens to the last write, and what has to be true before the old leader can rejoin?Replicationhard5-8y08Design the write path for 'checkout places an order and, separately, sends a confirmation email' so that an email outage can never fail the checkout, and the event announcing the order can never silently go missing. What's the mechanism, and what does it not solve?Queuesmedium3-5y09Design the data store for a time-series metrics table taking millions of writes a minute, almost always queried as "last hour for this one metric key," rarely updated once written. Why does the storage engine underneath the database label matter more than whether it's called "SQL" or "NoSQL"?Data storeshard5-8y10Design a distributed key-value store with 3 replicas that must survive one node failing with zero downtime and zero stale reads. What are the actual quorum settings, and — grounding it in the CAP proof itself — why can't you have zero stale reads AND full availability during a genuine network partition?Consistencysenior8+y11Design the leader-election mechanism for a 5-node coordination service (think: who owns a distributed lock) so two nodes can never simultaneously believe they're the leader. Walk through Raft's actual safety mechanism — not 'nodes agree', the real one — and what a 2-3 network partition does to it.Consensussenior8+y