download

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.

System design38 questionsFree · No sign-in

Practice questions

  1. How do you test a publishing rule without the database? · testable design · 15 min
  2. You clear the cache on every update. Why does old data return? · caching · 15 min
  3. Design a chat app in 45 minutes. What do you do first? · interview framework · 10 min
  4. 80,000 daily users, 18 requests each. How many servers? · capacity estimation · 10 min
  5. A token bucket holds 5 tokens. Which of these requests pass? · rate limiting · 10 min
  6. Your limit is 100 requests a minute. How did 200 get through? · rate limiting · 15 min
  7. You add a server to a hash ring. Which keys move? · consistent hashing · 15 min
  8. R + W > N, yet reads return new data, then old. Why? · replication · 20 min
  9. Two offline edits to one note. Why not keep the latest? · conflict resolution · 15 min
  10. How do you make unique, sortable IDs on many servers? · unique IDs · 15 min
  11. Two requests grab the same short code. What stops the clash? · url shortener · 15 min
  12. One slow site stalls your whole crawler. How do you fix it? · web crawler · 15 min
  13. How does a crawler avoid fetching the same page twice? · web crawler · 15 min
  14. A notification job is retried. How do you avoid a double send? · notifications · 15 min
  15. Push or pull feeds when one account has 3 million followers? · news feed · 15 min
  16. A chat app reconnects. Which messages should it ask for? · chat · 15 min
  17. Each shard sends its top 2 searches. Is the merge right? · top k · 15 min
  18. When can viewers start watching a just-uploaded video? · video pipeline · 15 min
  19. The agent has admin rights, the user is a viewer. What's allowed? · AI agents · 15 min
  20. Refunds need human approval. Where do you enforce that in an agent? · AI agents · 15 min
  21. A retrieved page says "ignore your instructions". What stops the agent? · AI agents · 12 min
  22. Your agent keeps calling the same tool. How do you stop it? · AI agents · 15 min
  23. Design a chatbot that answers from company docs. Walk me through it. · RAG · 15 min
  24. The docs have the answer, but RAG misses it. Check the chunks? · RAG · 12 min
  25. Vector search misses exact error codes. How do you fix retrieval? · RAG · 12 min
  26. Multi-tenant RAG: filter by tenant before or after top-k? · RAG · 12 min
  27. A RAG answer is wrong. Was it retrieval or generation? · LLM evaluation · 12 min
  28. You changed the prompt. How do you know nothing got worse? · LLM evaluation · 15 min
  29. The conversation no longer fits the context window. What do you cut? · context window · 12 min
  30. Users say the bot feels slow. Will streaming help? · latency · 8 min
  31. Three layers each retry 3 times. How many calls reach the model? · reliability · 12 min
  32. Each call's p95 is 200 ms. What is the request's p95? · latency · 12 min
  33. Your app keeps flipping between the main and backup model. Why? · reliability · 12 min
  34. Prompt caching is on, but the hit rate is zero. Why? · LLM cost · 12 min
  35. Which module should you split out of a monolith first? · Service boundaries · 15 min
  36. How do you migrate 40 million live rows with zero downtime? · Live migrations · 15 min
  37. One big tenant slows 200 others. How do you isolate them? · Multi-tenant isolation · 15 min
  38. 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.

Open the interactive System design deck →