Skip to content

Interview Arena: recap and quiz

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.

Use it as the outline of your answer. The times are the Arena’s suggestions, not rules.

  1. 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.
  2. 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)
  3. 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)
  4. 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.
  5. 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.
  6. Minutes 31 to 35, reliability. Name the failure you protect against first, what the system does when it happens, and what the protection costs.
  7. 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)
  8. 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.

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.

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

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.
  1. Line 1 of 12What is in scope, and which rule must never be broken?
  2. Line 2 of 12With 20 million daily users, how many requests per second does the peak bring?
  3. Line 3 of 12How much storage do five years of data need, with three copies?
  4. Line 4 of 12Draw the simplest design that meets the requirements: what is each box for?
  5. Line 5 of 12At the peak, which component runs out first, and at what load?
  6. Line 6 of 12What is the one change that removes that limit, and what does it cost?
  7. Line 7 of 12A user creates a link and opens it a second later on another server: must they see it?
  8. Line 8 of 12A call to a dependency times out: do you retry, and how many times?
  9. Line 9 of 12What happens to the database if the cache is lost?
  10. Line 10 of 12Why this store and not the alternative: benefits, costs, failure modes and limits?
  11. Line 11 of 12The interviewer gives you a new fact: do you defend the design or change it?
  12. Line 12 of 12When would you choose the other side of this decision?

Check your answers at least once before looking at the answers.

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.

Question 1 of 8

The interviewer says: "Design a URL shortener." You have 45 minutes.

What do you do first?

Choose one answer.

Question 2 of 8

You run an Arena scenario in strict mode, and the time runs out while you are on stage 3 of 8.

What happens?

Choose one answer.

Question 3 of 8

You have finished a stage and you read the model answer, the rubric, the number checks and the Builder's findings on your design.

Which of these count in the score of the stage? Select all that apply.

Choose every answer that applies.

Question 4 of 8

A URL shortener has a peak of about 10,000 requests per second. One database answers a lookup in 5 ms, 4 at a time, so it serves 800 lookups per second.

How many times what one database can serve is the peak?

Enter a number and choose its unit.

times
Question 5 of 8

Two candidates estimate the same peak. One is ten times too low, the other ten times too high.

What is the difference in what each does to the design?

Choose one answer.

Question 6 of 8

The interviewer asks: "What happens if the cache fails?" The design serves 5,000 requests per second, 95% of them from the cache. The database has 2 instances that serve 1,600 requests per second.

Which answer follows the method of a failure question?

Choose one answer.

Question 7 of 8

You chose PostgreSQL for a messaging service with 5 billion messages a day. The interviewer asks: "Why PostgreSQL for 5 billion messages a day? What happens when one primary cannot absorb the write rate?"

Which answer defends the choice?

Choose one answer.

Question 8 of 8

You defend your choice of a cache: the decision, why you made it, its benefits and its costs. The trade-off framework has seven steps.

Which steps are still missing?

Choose one answer.

Two shorter checks sit in the lessons they belong to: the one on estimates and the one on the rules that check a design.

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.