System Design & AI Engineering: Interview Study Guide
How to use this guide#
One reference for any system design or AI engineering round, from intern to staff (L3–L6 / SDE1–SDE3). Every topic is split into three layers: Fundamentals (learn once, revise before interviews), Most asked questions (the questions that come up again and again, with a model answer), and Senior-level questions (edge cases and production experience that separate senior from mid-level). Most pages end with a quiz where every question has an answer you can open.
What each level is judged on:
| Level | What the interviewer expects |
|---|---|
| Intern / SDE1 (L3) | Correct building blocks, a working high-level design, basic SQL vs NoSQL reasoning |
| SDE2 (L4) | Sensible scaling, caching, data model, API, and one or two deep dives done well |
| SDE3 / Senior (L5) | You drive the interview, quantify with estimates, name trade-offs before being asked, cover failure modes |
| Staff (L6+) | Multiple valid designs compared, evolution over time, cost, org and operational impact, migration plans |
The 45-minute framework (use it every time)#
- Clarify requirements (5 min). Functional: the 3–5 core features. Non-functional: scale (DAU, QPS), latency target, consistency vs availability, durability, read/write ratio. Say out loud what is out of scope.
- Estimate (3–5 min). QPS, storage, bandwidth, memory for cache. Only as precise as needed to make decisions.
- API and data model (5 min). Endpoints or events, key entities, access patterns. Access patterns decide the database.
- High-level design (10 min). Client → LB → services → cache → DB → async workers. Walk one request end to end.
- Deep dives (15 min). Pick the 2–3 hardest parts: the hot path, the consistency-critical write, the scaling bottleneck.
- Failure modes and wrap-up (5 min). What breaks, how you detect it, how you recover. What you would do next with more time.
Golden rule: every component you draw needs a reason. If you add Kafka, say why a queue and not a direct call. If you add Redis, say what is cached, the TTL, and what happens on a miss.
About the numbers: figures in this guide (throughput per node, latencies, cost ratios) are rules of thumb for interview estimation, written from general knowledge and not benchmarked. Quote them as approximations and check vendor docs before relying on one in real work.
How each page is organised#
- Fundamentals: what it is, how it works, the trade-offs, configuration and when to use which option.
- Most asked questions: the questions interviewers ask most, each with a short model answer.
- Senior-level questions: the “what goes wrong in production” probes.
- Quiz: short questions with answers hidden behind a click, so you can test yourself.
Pages tagged Most asked and Senior in the sidebar are the question banks that span many topics (full design walkthroughs and production edge cases).
All pages#
Use the sidebar on any page, or start from the list below. Read the first six pages in order if you are new to system design.