Interview Arena: recap and quiz
The ten steps and the eight stages
Section titled “The ten steps and the eight stages”The model of the first lesson has ten steps, and the Arena has eight stages. Some steps share a stage, one step is split over two, and the last one is not a stage at all: the defence happens in the follow-ups that come after every stage.
| Step of the model | Arena stage | Minutes | What a strong answer holds |
|---|---|---|---|
| 1 Clarify, 2 Requirements | Requirements | 5 | The scope in one sentence, what the system does, the rule that must never break, and the quality of service as numbers |
| 3 Estimate | Estimation | 6 | Assumptions said first, the rate at the average and at the peak, storage with copies, and which number is the constraint |
| 4 Simple architecture | Architecture | 10 | The simplest design that meets the requirements, what each box is for, and the choices that matter, such as the kind of store |
| 5 Find the bottleneck, 6 Scale | Scaling | 6 | The component that runs out first with the load at which it does, one change that removes the limit, and what it costs |
| 8 Choose consistency | Consistency | 4 | Which data must be right at once, which may be late, and what the user sees in the second case |
| 7 Handle failures (what can fail) | Reliability | 4 | The failure to protect against first, what the system does when it happens, and what the defence costs |
| 7 Handle failures (one failure in numbers) | Failure scenarios | 5 | The failure named, the load it creates against the capacity, the defence, and its price |
| 9 Discuss trade-offs, 10 Defend the design | Trade-offs | 5 | One decision taken through the framework, and the other side of it |
The minutes add up to 45. At 30 minutes each share is two thirds of this, and at 60 minutes it is four thirds. The clock runs for the whole interview, so a long stage borrows from the others.
A checklist for 45 minutes
Section titled “A checklist for 45 minutes”Use it as the outline of your answer. The times are the Arena’s suggestions, not rules.
- Minutes 0 to 5, requirements. Say what the system is for in one sentence. Separate what it does from how well it must do it. Name the one rule that must never break, and turn “fast” and “reliable” into numbers.
- Minutes 5 to 11, estimation. State each assumption before you use it. Compute in round numbers and say what you rounded. Check by a second route, and finish with what the number means for the design. (Estimating out loud)
- Minutes 11 to 21, architecture. Draw the simplest design that works, and say what each box is for. Make the choices that the scenario asks for, and give the reason for each. (Drawing and checking)
- Minutes 21 to 27, scaling. Say which component runs out first and at what load, with the arithmetic. Make one change, say what it costs, and look for the next limit.
- Minutes 27 to 31, consistency. Say which data must be right at once and which can be a moment late, and what the user sees when it is late.
- Minutes 31 to 35, reliability. Name the failure you protect against first, what the system does when it happens, and what the protection costs.
- Minutes 35 to 40, failure scenarios. Take one failure, such as the cache lost, ten times the traffic or a lost region. Name it, do the arithmetic, give the defence, and give its cost. (Failure scenarios)
- Minutes 40 to 45, trade-offs. Take one decision and go through the framework: why, benefits, costs, failure modes, scaling limitations, alternative. When the interviewer gives a new fact, change the design. (Senior follow-ups)
Between stages, ask whether the last step changed an earlier answer. A bottleneck found in stage 4 may change a choice from stage 3, and saying so is part of the answer.
The five scenarios
Section titled “The five scenarios”Each scenario reuses the design of the case study with the same name, so a scenario is also a way to check what you remember of it. Read the case study afterwards, not before, if you want a fair attempt.
| Scenario | What it practises | Choices it asks you to make |
|---|---|---|
| URL shortener | Read-heavy traffic, the first limit of a single database, caching and replicas | The redirect status, the kind of store, what to add first, how a new link becomes visible, how the codes are made |
| Chat | Open connections, one order for each conversation, delivery to people who are offline | When the sender sees “sent”, the transport to the phone, how messages are stored, how the order is decided |
| Notification system | Fan-out over several channels, retries, duplicates, limits of the providers | How fast an opt-out takes effect, where a notification waits, the promise about duplicates, what to do in a provider outage |
| Social feed | Fan-out on write against fan-out on read, accounts with a huge following | How fresh the feed must be, how it is assembled, how an author sees their own post |
| Global messaging | Delivery across regions, the order of a conversation across regions, the loss of a region | The reason for several regions, the kind of store, how a message reaches another region, how far it is copied |
Pick the scenario for the weakness the summary showed. Every scenario has an estimation stage with numbers to compute, so a weak estimation stage can be practised on any of them.
The Arena index lists them all.
What each stage leans on
Section titled “What each stage leans on”None of the stages needs a technique that the course has not taught. When the summary marks a stage as weak, these are the lessons to read first.
| Stage | The earlier lessons it leans on |
|---|---|
| Requirements | Requirements, constraints and trade-offs |
| Estimation | Requests per second, storage and retention, bandwidth, powers of ten |
| Architecture | Choosing a data model, what a load balancer does, queues and publish-subscribe |
| Scaling | Vertical and horizontal scaling, cache-aside, choosing a shard key |
| Consistency | Consistency models, stale reads |
| Reliability | Timeouts and retries, circuit breakers, failover, idempotency keys |
| Failure scenarios | When the cache fails, overload and load shedding, regional failure and evacuation |
| Trade-offs | Constraints and trade-offs, the case studies |
Sort the questions
Section titled “Sort the questions”Twelve questions an interviewer might ask, and four groups of stages. Put each question in the group where you would answer it.
Challenge
Which stage of the interview?
The Arena has eight stages. Here they are grouped in four: say it first, draw and scale, hold up, and defend. Read each question an interviewer might ask and put it in the group of the stage where you would answer it.
Sorting needs JavaScript.
Categories
- Requirements and estimation
- Stages 1 and 2: what the system must do, and the numbers.
- Architecture and scaling
- Stages 3 and 4: the simplest design, its first limit, and the change that removes it.
- Consistency, reliability and failure
- Stages 5, 6 and 7: what the user sees, and what happens when a part is lost.
- Trade-offs and defence
- Stage 8: why this choice and not another.
Check your answers at least once before looking at the answers.
Check your understanding
Section titled “Check your understanding”The quiz below covers the whole module: how an interview starts, what strict mode does, what counts in your score, an estimate against a database, the cost of an estimate that is ten times off, how to answer a failure question, how to defend a choice, and the steps of the trade-off framework. Every option is explained, whether it is right or wrong.
Interview Arena: module quiz
This quiz needs JavaScript to check your answers.
Two shorter checks sit in the lessons they belong to: the one on estimates and the one on the rules that check a design.
Where this goes next
Section titled “Where this goes next”Go to the Arena, choose a scenario, and start in practice mode. Write your answers before you read anything, score only what you wrote, and use the summary to decide which lesson to read next. When you can finish a practice run inside the time, try the same scenario in strict mode.
Your progress
Built by GhaziAlibi.
© ShardCraft. All rights reserved.