System Design Interview Questions
Practice caching, rate limiting, replication, distributed feeds, disaster recovery, and AI system architecture with free system design interview questions. Each exercise includes hints and a checked explanation.
Practice questions
- How do you test a publishing rule without the database? · testable design · 15 min
- You clear the cache on every update. Why does old data return? · caching · 15 min
- Design a chat app in 45 minutes. What do you do first? · interview framework · 10 min
- 80,000 daily users, 18 requests each. How many servers? · capacity estimation · 10 min
- A token bucket holds 5 tokens. Which of these requests pass? · rate limiting · 10 min
- Your limit is 100 requests a minute. How did 200 get through? · rate limiting · 15 min
- You add a server to a hash ring. Which keys move? · consistent hashing · 15 min
- R + W > N, yet reads return new data, then old. Why? · replication · 20 min
- Two offline edits to one note. Why not keep the latest? · conflict resolution · 15 min
- How do you make unique, sortable IDs on many servers? · unique IDs · 15 min
- Two requests grab the same short code. What stops the clash? · url shortener · 15 min
- One slow site stalls your whole crawler. How do you fix it? · web crawler · 15 min
- How does a crawler avoid fetching the same page twice? · web crawler · 15 min
- A notification job is retried. How do you avoid a double send? · notifications · 15 min
- Push or pull feeds when one account has 3 million followers? · news feed · 15 min
- A chat app reconnects. Which messages should it ask for? · chat · 15 min
- Each shard sends its top 2 searches. Is the merge right? · top k · 15 min
- When can viewers start watching a just-uploaded video? · video pipeline · 15 min
- The agent has admin rights, the user is a viewer. What's allowed? · AI agents · 15 min
- Refunds need human approval. Where do you enforce that in an agent? · AI agents · 15 min
- A retrieved page says "ignore your instructions". What stops the agent? · AI agents · 12 min
- Your agent keeps calling the same tool. How do you stop it? · AI agents · 15 min
- Design a chatbot that answers from company docs. Walk me through it. · RAG · 15 min
- The docs have the answer, but RAG misses it. Check the chunks? · RAG · 12 min
- Vector search misses exact error codes. How do you fix retrieval? · RAG · 12 min
- Multi-tenant RAG: filter by tenant before or after top-k? · RAG · 12 min
- A RAG answer is wrong. Was it retrieval or generation? · LLM evaluation · 12 min
- You changed the prompt. How do you know nothing got worse? · LLM evaluation · 15 min
- The conversation no longer fits the context window. What do you cut? · context window · 12 min
- Users say the bot feels slow. Will streaming help? · latency · 8 min
- Three layers each retry 3 times. How many calls reach the model? · reliability · 12 min
- Each call's p95 is 200 ms. What is the request's p95? · latency · 12 min
- Your app keeps flipping between the main and backup model. Why? · reliability · 12 min
- Prompt caching is on, but the hit rate is zero. Why? · LLM cost · 12 min
- Which module should you split out of a monolith first? · Service boundaries · 15 min
- How do you migrate 40 million live rows with zero downtime? · Live migrations · 15 min
- One big tenant slows 200 others. How do you isolate them? · Multi-tenant isolation · 15 min
- Which failover topology meets RPO 60s, RTO 5m, and 50ms writes? · Disaster recovery · 15 min
How to practice
Predict the result or explain what you would change before opening the hints. Then compare your reasoning with the answer and try the follow-up question.