Courses / System Design Interview / Chapter 1
Module 1 · Foundations · Chapter 1 of 49
The System Design Interview: How It Runs and How to Answer
Start here. Next up: Core Concepts: RPCs, Consistency, Failures and Time.
Part 1 · How the round runs
What the round is
A system design round gives you a loosely stated product, such as a notification service or a video site, and asks you to design it out loud in about an hour or less. You are not writing a full program.
Companies describe the round on their own careers pages, and the descriptions agree on the main point: it is a conversation, not a coding test. Atlassian's page says the session is a technical interview, but that "doesn't mean the goal is code", and calls it a practical conversation built from structured questions about real problems. Amazon's pages say to expect at least one question on software systems design, where the interviewer asks about your design and you ask questions to complete and validate it.
So a good answer is shaped like a discussion. You ask what is being built, agree on limits, sketch the parts, and then go deep where the problem is hard. The next lessons cover what is scored and a step-by-step method.
| Public page | What it states about length and format |
|---|---|
| Amazon, SDE II | Four 55-minute interviews; expect at least one question on software systems design |
| Amazon, SDE III | Five 55-minute interviews, after a 60-minute phone screen; the same design expectation |
| Atlassian, engineering | A 60-minute systems design interview; structured questions that ladder |
| Microsoft, technical interviewing | A short 45-minute round; design topics listed on the page |
| Meta, SWE onsite | The page does not describe a design round; it points to a candidate guide |
These pages were read on 22 November 2026. Companies change formats, so treat the table as examples of what is published, not as a rule for every team.
Length, levels and laddering
Length matters because it fixes your time budget. At 45 minutes you have little room to wander; at 60 you can go one level deeper. Ask your recruiter for the exact length and whether the round is design only or mixed with other topics.
Level changes the loop more than the round. Amazon's SDE II page lists four 55-minute interviews and its SDE III page lists five. Beyond that count, the pages we read do not say how a design question differs by level, so do not assume it. Ask the recruiter what is expected at your level.
Atlassian's page adds one useful detail. Its questions are built to ladder: after your first answer the interviewer may ask for a different approach or add a new trade-off, and the follow-ups can get harder or easier. That means a design you have memorised will break the moment a constraint changes. What carries over is the reasoning: why you chose a cache, what happens when it fails, what it costs.
Microsoft's page lists topics a design discussion may touch: resiliency, high availability, auto-scaling, replication, CAP theory and partitioning. This course covers each of them in the foundations and building block chapters.
Atlassian's page also gives two pieces of preparation advice worth taking from any company's round: draw on your own past work with precise examples of what you would do and why, and treat the session as a practical conversation, not a theoretical one. A sentence such as "on a project I worked on, the queue filled up during a sale, so here I would cap it and shed load" carries more weight than a textbook definition.
What to find out before the round
Most of what changes between companies can be learned by asking. Before the day, ask the recruiter or your contact these questions. None of them is unusual, and each answer changes how you prepare.
| Ask | Why it matters |
|---|---|
| How long is the design round? | It sets your time budget: 45, 55 and 60 minutes allow different depth |
| Is it design only, or mixed with other topics? | A mixed round leaves less time, so the method must be shorter |
| Where will you draw? | An online whiteboard, a shared document or paper; practise on the same kind of tool |
| What is expected at this level? | The pages above do not say how the design question differs by level |
| Is the prompt tied to the team's product? | If yes, read about the product's public features beforehand |
Practise on the drawing tool you will use. It is easy to lose minutes moving boxes around in a tool you have never used. A plain layout of labelled boxes and arrows is enough; neatness is not scored.
A recruiter says your design round is 45 minutes. What should that change in how you answer?
- You have less time per step, so you shorten requirements and estimates and protect the deep dives.
- You agree early on what to leave out, instead of trying to cover every component.
What does it mean that a question "ladders"?
- Follow-up questions can get harder or easier, and the interviewer may change a constraint or ask for another approach.
- A memorised design is fragile; the reasons behind each choice are what you reuse.
Part 2 · What interviewers assess
The objectives that companies publish
Interviewers score a design round against a short list of qualities. Companies rarely publish a full rubric, but several pages name what they look for, and the names overlap.
Amazon's pages list the objectives of the design question as practicality, accuracy, efficiency, reliability, optimisation and scalability. Atlassian's page says the interviewer looks at how you explore a problem (including the questions you ask), how you reason through constraints such as reliability and cost, who you would partner with for help and which technologies you would use, and how well you think on your feet. Microsoft's page says interviewers look at how you break down problems and make choices, whether you ask clarifying questions and plan before building, and whether you can design a new system from scratch as well as work inside an existing one.
Read together, those lists reduce to a handful of habits you can practise. Each row below names a habit, a place where a page above mentions it, and what it looks like in your answer.
| Habit | Mentioned by | What it looks like when you answer |
|---|---|---|
| Clarify the problem | Atlassian, Microsoft | You ask who the users are and what is out of scope before drawing anything |
| Be practical | Amazon | You choose parts that a small team could build and run |
| Reason about scale and reliability | Amazon, Atlassian, Microsoft | You state numbers, then say what fails and what happens next |
| Weigh costs and trade-offs | Atlassian, Microsoft | You name what each choice gives up, such as cost or freshness |
Reading the habits as a scorecard
The habits are not separate tests. One decision can show several of them. Suppose you add a cache in front of a database. Naming the read volume shows you reasoned about scale. Saying that cached data can be stale shows you weighed a trade-off. Saying what happens when the cache is empty after a restart shows you thought about reliability.
A useful way to practise is to score yourself after each mock design on six lines: requirements, estimates, design, deep dive, trade-offs and communication, each from 1 to 4. The mock interview chapter at the end of this course uses these same six lines.
What the pages do not say is also worth knowing. None of the pages we read publishes a pass mark or a list of right answers. Atlassian's page says outright that there is no one right answer. Your job is to show a sound process and defensible choices, not to reproduce a reference diagram.
One choice, said two ways
The same idea shows in single sentences. Take a prompt to design a link shortener.
| Weaker | Stronger | What the stronger one shows |
|---|---|---|
| "I'll use a NoSQL database because it scales." | "I assume about 100 reads per new link, so reads dominate. I'll put a cache in front of the store." | Numbers first, then a choice that follows from them |
| "Then it's highly available." | "If the cache node dies, reads fall through to the store, which must carry the full load for a few minutes." | Reliability stated as a failure and its effect |
| "We can add sharding later." | "One store handles this load. If the estimate grows tenfold, I would split it by link id." | Practicality now, with a stated trigger for change |
Each stronger sentence is longer by a clause or two, not by a paragraph. You do not need more words, you need the reason attached to the choice.
A page says the interviewer looks at the questions you ask. Which step of an answer is that?
- Requirements: asking who uses the system, how many, and what is out of scope.
- It comes first, before any box is drawn.
You add a replica database and say it may serve slightly old data. Which habits did that show?
- Reasoning about scale and reliability, because a replica spreads reads and survives a failure.
- Weighing a trade-off, because you named the cost: reads can be stale.
A candidate says "I'll use a message queue so it scales." Rewrite the sentence so it shows reasoning.
Part 3 · A method for answering in 45 minutes
Seven steps
A method gives you somewhere to go when the prompt is vague. The steps below are this course's own and match how the case chapters are organised. They are a suggestion, not a company rule.
- Requirements. List what the system must do (functional requirements) and how well it must do it (non-functional requirements, such as latency and availability). Say what is out of scope.
- Estimates. Turn users into requests per second, storage and bandwidth. Rough numbers are enough.
- API. Write the handful of calls a client makes, with their inputs and outputs.
- Data model. Name the main entities, their fields and how they relate, and say which store holds each.
- High-level design. Draw the main parts and how one request flows through them.
- Deep dives. Pick the two hardest parts and go into detail: a data structure, a failure case, a bottleneck.
- Wrap-up. Name what can fail, what you traded away and what you would build next.
A deep dive is a detailed look at one component, chosen because it is where the problem is hardest. If the interviewer redirects you to another part, follow them.
Each step has a clear output, which tells you when it is done. Requirements end with three to five functional requirements and two to four non-functional ones with numbers, written where the interviewer can see them. Estimates end with a peak requests-per-second figure and a storage figure. The API ends with a handful of calls, each with its inputs and outputs. The data model ends with the main tables or collections and their keys. The high-level design ends with one request traced from the client to storage and back.
At the end of each step, say in one sentence what you decided and ask whether the interviewer wants more there before you move on. That check costs a few seconds and stops you from spending ten minutes on a part they do not care about.
A time budget
The split below is a starting point for a 45-minute round. It gives the most time to the high-level design and the deep dives, because those are where you show reasoning. The snippet scales the same proportions to a 60-minute round, the length Atlassian's page describes.
budget = {
"requirements": 5,
"estimates": 5,
"api and data model": 7,
"high-level design": 10,
"deep dives": 13,
"wrap-up": 5,
}
total = sum(budget.values())
print("total:", total, "minutes")
for scale in (45, 60):
print(f"{scale}-minute round")
for step, minutes in budget.items():
print(f" {step:<20}{minutes * scale / total:>3.0f}")total: 45 minutes 45-minute round requirements 5 estimates 5 api and data model 7 high-level design 10 deep dives 13 wrap-up 5 60-minute round requirements 7 estimates 7 api and data model 9 high-level design 13 deep dives 17 wrap-up 7
A real run; the proportions are rounded to whole minutes.
Rounding makes the 60-minute list add up to 60 here, but it will not always. Do not chase exact minutes. Watch the clock at the end of each step and move on when a step has used its share.
When a step runs over, take the time from the wrap-up last and from the deep dives never, if you can help it. A short wrap-up of two sentences still names the main risk. A deep dive cut in half usually means the hardest part of the problem was never discussed.
The budget as a picture
Whole round: 45 min (a split to adapt, not a rule)
Read it as steps
Time per step in a 45-minute round: the steps and two deep dives add up to the full round
Notice that the first two steps take ten minutes and produce no boxes. That feels slow, but every later choice leans on them. If you skip the estimate you cannot say whether one database is enough.
In a 45-minute round, where does the budget above spend the most time, and why?
- On the deep dives (13 minutes) and the high-level design (10 minutes).
- They are where reasoning shows. Requirements and estimates are kept short on purpose.
The snippet scales the budget to a 60-minute round. What does the deep-dive step get?
- 17 minutes, from the real run above.
- The other steps grow in the same proportion, so the shape of the answer stays the same.
Twenty minutes into a 45-minute round you are still on the data model. What do you do?
- Close the data model with its main entities, then draw the high-level design quickly and go to the deep dive the interviewer cares most about.
- Shorten the wrap-up to a sentence or two; do not drop the deep dive.
Part 4 · Designs that include a model
What changes when a prompt has an AI feature
More design prompts now include a language model: a chat assistant, a support bot, a search box that answers in sentences. The method is the same seven steps. What changes is a short list of extra questions you should ask in the requirements step.
A model call sends text in and gets text back. Text is measured in tokens, small pieces of words. Hosted model APIs usually bill by the tokens a call reads (the prompt) and writes (the reply), and on your own hardware those tokens cost processor time instead. Either way, unlike a database read, each call has a real cost and a long, variable delay.
| Ask about | Why it changes the design |
|---|---|
| Latency | A reply can take seconds. Does the user see words as they arrive (streaming), and what is the target for the first word? |
| Cost per request | Tokens cost money. How many tokens does a typical request use, and what is the budget per user per day? |
| Grounding | Must answers come from the company's own documents? If yes, the design needs a retrieval step and cited sources. |
| Safety | Can the model be tricked by text in a document or message (prompt injection)? What may it do on its own, and what needs a rule in code? |
| Failure | What does the user see when the model is slow, wrong or down? |
Where the answers live in this course
You do not need to know how a model works inside to design around one. You need its limits: it is slow compared with a database, it costs per call, it can be wrong with confidence, and its input is a limited window of tokens.
The ai building blocks chapter later in the course builds the parts from small runs on a local model: tokens and cost, serving, streaming, embeddings and vector search, retrieval, guardrails and tool use. The chat assistant, support bot and code assistant chapters then place those parts inside complete designs.
Putting numbers on a model
Put numbers on it the same way you would for a database. The snippet below is a quick estimate for an assistant that answers questions from company documents. Every input is an assumption to state out loud.
requests_per_day = 1_000_000 # assumed: 10 lakh questions a day prompt_tokens = 2_000 # question plus retrieved documents reply_tokens = 300 # a short answer write_speed = 50 # tokens/s the model writes (assumed) first_token_s = 0.5 # wait before the first token (assumed) per_request = prompt_tokens + reply_tokens print(f"tokens per day: {requests_per_day * per_request:,}") print(f"share that is prompt: {prompt_tokens / per_request:.0%}") full_reply = first_token_s + reply_tokens / write_speed print(f"wait without streaming: {full_reply:.1f} s") print(f"wait for first words: {first_token_s:.1f} s")
tokens per day: 2,300,000,000 share that is prompt: 87% wait without streaming: 6.5 s wait for first words: 0.5 s
A real run of the arithmetic; the inputs are assumptions.
Two things come out of this. First, 87% of the tokens are prompt, mostly retrieved documents, so the cheapest saving is to send fewer, shorter passages, not to shorten the answers. Second, a full reply takes about 6.5 seconds at the assumed speed, while the first words arrive in half a second. That gap is why streaming is worth asking about in the requirements step.
Ask also what happens when the model cannot answer. Common fallbacks are a smaller and faster model, a cached answer for frequent questions, plain search results, or a clear message with a way to reach a person. Each one is a design choice with its own cost, and naming one shows you planned for failure.
In your answer, treat the model as one more component with a latency, a cost and a failure mode. Put a number on each, say what you do when it fails, and keep decisions that must never go wrong, such as moving money, in ordinary code that checks the model's output.
Which two requirements questions are new when a design includes a model?
- Cost per request, because every call has a token cost, billed by a provider or paid in your own hardware time.
- Grounding or safety: where answers must come from, and what the model may do without a code check.
Part 5 · Mistakes to avoid and a six-week plan
Mistakes that cost points
- Drawing before asking. A design for the wrong problem scores poorly however neat it is. Start with requirements.
- No numbers. "It should scale" says nothing. A requests-per-second figure tells you whether you need one server or fifty.
- One fixed design. If you repeat a memorised diagram, a changed constraint breaks it. Explain why each part is there.
- Naming a product as the answer. "Use a cache" is a decision; "use a particular product" is a label. Say what property you need first.
- Ignoring failure. Every box can fail. Say what happens when it does.
- Silence. The interviewer can only score what you say. Think aloud, briefly.
- Going too deep too early. Spending twenty minutes on one table leaves nothing for the rest. Watch the clock.
- Defending instead of adapting. When the interviewer changes a constraint, revise and say what changed.
- Building for scale nobody asked for. Sharding a store for a few thousand users adds risk and work. Size the design to the estimate, and say what would make you change it.
- Vague consistency. "It's eventually consistent" is not an answer. Say which reads can be stale, for how long, and why that is acceptable.
- Missing the hints. A question such as "what happens if this node fails?" usually points at the part the interviewer wants to discuss. Answer it before going back to your plan.
Most of these mistakes come from the same root: answering a question that was not asked. The method in the third lesson guards against them, because it starts with requirements and an estimate, and every later choice can be checked against those.
A six-week plan through this course
The course has far more chapters than six weeks of evenings can finish. This plan reads the foundations and building blocks once, then spends most of its time on timed practice, which is where most of the skill is built. The plan reads 12 of the 22 case chapters.
| Week | Read | Reading time | Practise |
|---|---|---|---|
| 1 | The core concepts, non-functional and estimates chapters | About 1 h 15 min | Do each estimate by hand before running the code |
| 2 | The building blocks, dns, load balancer, databases, key-value store, cdn and sequencer chapters | About 3 h 20 min | Explain one block aloud in two minutes |
| 3 | The monitoring, server errors, client errors, cache, message queue and pub-sub chapters | About 2 h 50 min | Draw a request path with a cache and a queue from memory |
| 4 | The rate limiter, blob store, search, logging, task scheduler, sharded counter and ai building blocks chapters, then the timed practice chapter | About 4 h | Do the three timed drills |
| 5 | Six case chapters of your choice, one per day | About 3 h 40 min | Time yourself: 45 minutes, out loud |
| 6 | Six more case chapters, then the failure lessons and mock interview chapters | About 4 h 50 min | Score yourself on the rubric and repeat the weakest case |