Running a 45-minute ML design round
- What ML design rounds at Airbnb, Anthropic, OpenAI and Netflix have asked, and the three things they keep pushing on
- A plan for the 45 minutes, block by block, with what to say in each
- Frame any ML problem in eight pieces, from the objective to monitoring, and know when a simple rule is the right first answer
- Estimates you can do out loud, step by step, for requests per second, storage, index memory with and without compression, GPUs for a token load, bandwidth and requests in flight
- Why the slow 1% decides a request that fans out to many machines, with the Tail at Scale numbers worked again
- Why latency shoots up near full load, how long a backlog takes to drain, and how much spare capacity to plan
- Present a trade-off, take pushback without folding or digging in, and review someone else's design doc
Size it before you design it
An ML design round often opens with numbers, before anyone draws a box. An interviewer can put it like this:
Before you design anything, show me you can size it. Here are seven quick estimates every design round needs. Talk me through each one. I care more about your method and your assumptions than the last digit.
- A marketplace has 40 million daily active users, and each runs 12 searches a day. What's the average search rate per second, and the peak?
- Each search logs the 25 listings it showed, at 150 bytes a row. How much storage is that a day, and for 180 days?
- You have 800 million item vectors of 128 dimensions in float32. How much memory does a flat index take, and how much with product quantization at 16 bytes of codes plus an 8-byte id per vector? Does each fit on a machine with 256 GB of RAM?
- A chat feature peaks at 150 requests a second, each generating 400 output tokens. One GPU sustains 2,000 output tokens a second, and you plan at 60% of that. How many GPUs, and how many 8-GPU nodes?
- A batch queue receives 5,000 jobs a minute, and the workers process 6,000. Processing stops for 45 minutes. How long until the backlog is gone, and how long with double the workers?
- A request fans out to 50 shards and waits for all of them. Each shard is slow on 1% of calls. What share of requests is slow, and what per-shard rate would keep it under 1%?
- Each search spends 120 ms in the ranking tier. At the peak, how many searches are in flight? One server holds 64 at once, and you plan at 70%. How many servers?
Each answer decides something: one machine or many, 6 GPUs or 600, an hour to recover or a day.
You don't answer them yet. First comes the method for the whole 45 minutes, from the first question to failure, and then the estimate behind each of the seven. The lesson ends on a mock interview with follow-ups, asked in the order a 45-minute round runs: the plan, the clarifying questions, then the numbers.
What the round is testing
An ML design round gives you a one-line goal and 45 minutes. Here is what candidates, an employee and a prep site report from four companies. Lines 2 to 5 of the Airbnb list come from one candidate's loop.
Airbnb builds the round around its own products.
- A recruiter told one senior candidate in 2024 that the ML practitioner round would be specific to Airbnb's own technical problems (1 report).
- One senior loop in 2026 asked: "Design a user embedding + two-stage semantic retrieval/ranking system" (1 report).
- In that round, the interviewer dug deep into position bias (1 report).
- Another round of the same loop asked: "How do you trade off precision / recall / latency / infra cost?" (1 report)
- The same loop had a classifier for family-friendly listings, with the follow-up "What if hosts deliberately mislabel their listings?" (2 reports)
- A different onsite had search ranking with no text query (1 report).
Position bias means a listing shown higher gets more clicks and bookings just because of where it sits.
Anthropic: one candidate report describes a design round.
- A Staff software engineer candidate had a design doc review of a batch sampling service, where they were asked to review an existing design doc and give feedback (1 report).
- The review turned into a deep dive on failure handling and overload protection (1 report).
OpenAI
- One machine learning engineer in April 2026 had four one-hour rounds inside a single phone screen (1 report).
- One of those rounds was ML system design: "Design an ML system that can find interesting images out of a huge pile of images." (1 report)
- Another candidate's phone screen had a design question on recommendation and search (1 report).
That images prompt gives no labels, so the plan for the data is most of the design.
Netflix
- A Netflix employee on Blind wrote that each team writes its own interview problems, based on the job (1 report).
- One ML infrastructure onsite had a compute-allocation design (1 report).
- A prep site links that onsite to an ML job scheduler question, about managing a cluster of mixed CPU and GPU machines (1 source).
- A software engineer candidate got the same topic, scheduling ML jobs, as the system design round (1 report).
- One ML fundamentals screen ended on how to serve features under different real-time needs (1 report).
Where the follow-ups land
Read those reports again and look at where each follow-up goes.
In these reports, where do the interviewers' follow-ups land?
The 45-minute plan
Forty-five minutes go fast, so walk in with a plan for them.
| Block | Minutes |
|---|---|
| clarify | 0 to 5 |
| numbers | 5 to 10 |
| baseline | 10 to 14 |
| full design | 14 to 26 |
| deep dive, they pick | 26 to 36 |
| evaluation | 36 to 41 |
| failure and monitoring | 41 to 45 |
Seven blocks. You manage the clock, but the deep dive belongs to the interviewer. The full design gets the most time. The last nine minutes go to evaluation and failure.
Each block owns its start minute, not its end minute. At minute 14 the baseline is over and the full design starts.
blocks in the editor is the plan from the table, each block with its length in minutes. Set ends to the minute each block ends, and write block_at(minute): the block that should be running at that minute.
Clarify: ask only what changes the design
The first five minutes decide what you're building.
The interviewer says the peak traffic is yours to decide. What do you do?
Numbers: three to five estimates, each one deciding something
The next five minutes put sizes on it.
Which estimate is worth saying in the round?
Baseline: the simplest thing you could ship in week one
Name the simplest system that would work: a rule, a popularity list, a logistic regression, or a gradient boosted tree on a handful of features. It does three jobs:
- the fallback when the fancy model fails
- the anchor for evaluation, the number to beat
- something you could ship in week one
Say: Version one ranks by distance and review score. That's the number to beat.
Full design: draw the request path and the training loop
Then comes the design itself, with twelve minutes, the most of any block.
You draw only the request path. Which question has no answer?
Deep dive: they pick, and you go one level down
The interviewer picks what to go deeper on.
You say a two-tower model. Where do the next questions go?
Framing any ML problem
The first boxes on the board are not models. They say what the system is for, and how you'll know it works.
| Piece | The question to answer | Stays search with no text query | Interesting images in an unlabeled pile |
|---|---|---|---|
| Objective | Which outcome should move? | Bookings that aren't cancelled | Images a reviewing team finds worth a look |
| Label | What does the model predict, from which event? | Was this listing booked from this search? | Nothing at first, then reviewer verdicts |
| Data | Where do examples come from, and how are they biased? | Search logs, only what the old ranker showed | A huge pile, mostly near-duplicates |
| Features | What's known at prediction time? | Listing, guest, query, session | Embeddings from a pretrained model |
| Model | The simplest model that captures the signal | Gradient boosted trees, then a neural ranker | Nearest-neighbor novelty, then a small classifier |
| Serving | Online or batch, latency, freshness | Online, inside a p99 budget | Batch, bound by throughput |
| Evaluation | Offline metric, online test | NDCG on the booked listing, A/B on bookings | Precision on a human-reviewed sample |
| Monitoring | How would you know it went wrong? | Booking rate, feature freshness, score drift | Reviewer hit rate per batch |
Every ML design has the same eight pieces. Walk them in order, and you won't skip the ones interviewers push on. The last two columns are two prompts candidates reported: Airbnb's search with no text query, and OpenAI's pile of unlabeled images.
The objective, the label and the metrics are different things
Take the search column from the last step. Its first piece, the objective, sits on top of three more layers.
| Layer | Here | Its job |
|---|---|---|
| objective | bookings that aren't cancelled | what the business wants |
| online metric | bookings per searcher, in an A/B test | decides the launch |
| offline metric | NDCG of the booked listing, on held-out logs | scores a model before launch |
| label | the booked listing's impression = 1, others = 0 | what the model learns from |
Each layer stands in for the one above it. The objective is the outcome you want. The rest are things you can count.
The label comes from Airbnb's 2019 search paper. It trained on searches, and gave the booked listing's impression a relevance of 1 and every other impression 0.
NDCG with one booked listing is 1 divided by log2(position + 1). What is it with the booked listing at position 3?
A label closer to the objective is rarer
Picking the label is a trade-off, and interviewers push on it.
Airbnb trained a model to also predict long views of listing pages, far more common than bookings. Online, long views rose by a large margin. What did bookings do?
Ship a rule first, and train on the logs it produces
Rare labels raise a plain question: does version one need a model at all?
Google's Rules of Machine Learning put a number on a heuristic. If machine learning would give a 100% boost, about how much does a heuristic get?
Back-of-envelope estimation
With the problem framed, the next five minutes go to numbers.
How many seconds are in a day, and what round number do you use in your head?
50 million users each search 10 times a day. About how many searches a second, on average?
Storage: rows a day times bytes a row
Each search logs the 20 listings it showed, with position and outcome, in a 100-byte row.
| Step | Result |
|---|---|
| 500 million searches × 20 rows | 10 billion rows a day |
| 10^10 rows × 100 bytes | 10^12 bytes = 1 TB a day |
| 90 days kept for training | 90 TB, before replication |
| every feature value, 2 KB a row | 20 TB a day |
The last line is the one that decides whether you log full features or a sample.
A billion float32 vectors take a terabyte
One billion vectors of 256 dimensions, in float32:
| Computation | Size | |
|---|---|---|
| one vector | 256 numbers × 4 bytes | 1,024 bytes |
| a billion | 10^9 × 1,024 bytes | ≈ 1.02 TB |
| in bf16 | 256 numbers × 2 bytes | 512 bytes, so 512 GB |
That doesn't fit in one machine's memory. bf16 halves it to 512 GB, still too big.
In the editor, write log_bytes(searches, rows, row_bytes, days) for the training logs, and vector_bytes(n, dims, bytes_per) for the vectors. The print line checks both against the two tables: 90 TB of logs and about 1 TB of vectors.
IVF with product quantization fits a billion vectors in 40 GB
A flat index for a billion vectors doesn't fit on one machine. An approximate index changes that.
the K lists, after comparing the query with K centroids The query is compared with K centroids, and only the nearest lists are scanned. The rest are skipped.
IVF, inverted file: k-means splits the vectors into clusters, each with a list of its members. A query scans only the few lists whose centroids sit nearest it.
A flat index is the opposite. It stores every vector as it is and compares the query with all of them: exact, and as big as the raw vectors.
On its own, IVF saves search time, not memory: its lists still hold every vector. Product quantization shrinks what the lists hold.
Product quantization (PQ) splits each vector into M sub-vectors: here one vector of 256 numbers and 1,024 bytes becomes 32 pieces of 8 numbers. For each piece, it keeps only the index of the nearest centroid in a small learned codebook. The Faiss docs put it the same way: each sub-vector is quantized to a few bits, usually 8. Eight bits, 1 byte, name one of 256 centroids. Stored: 32 bytes of codes plus an 8-byte id, 40 bytes in all.
Faiss's index table gives the size of an IVF index with PQ codes as ceil(M * nbits/8)+8 bytes per vector. Here nbits is the bits per code, and the 8 is the stored vector id. A flat float index takes 4*d bytes, where d is the vector's dimension, 256 here.
From 1,024 bytes to 40 is 25.6 times smaller, or 32 times counting only the codes. A billion vectors now take 40 GB.
So the index fits on one large machine. You add replicas, full copies, for throughput, instead of shards, pieces on different machines, for memory.
Compression costs accuracy. Distances computed from codes are approximate, so recall, the share of the true nearest neighbors you find, drops.
The usual fix is two steps. Pull a few hundred candidates from the compressed index. Then rescore them with full vectors kept elsewhere.
In the editor, write flat_bytes(n, d, bytes_per_value=4) and ivfpq_bytes(n, M, nbits=8): the flat size and the Faiss size for IVF with product quantization, both in bytes. With them you can size any index in one line.
A graph index is bigger than the raw vectors
Now compare the bytes each kind of index stores for one vector.
For a billion vectors, multiply by 10^9: about 1.3 TB, 1.02 TB, 512 GB, 72 GB and 40 GB.
HNSW, hierarchical navigable small world, is a graph index. Each vector links to its near neighbors in a layered graph, and a search walks the links toward the query.
Faiss lists HNSW at 4*d + x * M * 2 * 4 bytes per vector: the full vector, plus about 2M four-byte neighbor ids. The factor x is close to 1, and the bars use 1. In this formula M is the graph's neighbor count, not the number of PQ pieces. At d = 256 and M = 32, that's 1,024 bytes plus about 256, so roughly 1.3 TB for a billion vectors. That's more than the raw data.
The Faiss authors' advice follows from that arithmetic. Graph indexes suit cases with no limit on memory, typically indexes below a million vectors. For larger indexes, where compression is needed just to fit the vectors in memory, IVF is the only option.
Run the same arithmetic on a small catalog before you reach for compression. Five million vectors at 1,024 bytes is 5 GB. Store it flat, or put a graph on it, and spend the effort elsewhere.
GPUs: one decoding step reads every weight once
A design with a language model in it needs one more estimate: how many GPUs.
An 8-billion-parameter model in bf16, on a GPU that reads 3 TB/s. About how long does one decoding step take to read the weights?
Plan the fleet at 70%, then round up to whole nodes
Assume a load test shows 2,500 output tokens a second per GPU at the latency target. Run the fleet at 70% of that. Part 5 shows why.
| Step | Computation | Result |
|---|---|---|
| planned per GPU | 2,500 × 0.7 | 1,750 tokens a second |
| GPUs | 100,000 ÷ 1,750 | 57.1, round up to 58 |
| 8-GPU nodes | 58 ÷ 8 = 7.25 | 8 nodes, which is 64 GPUs |
| survive losing one | 8 + 1 | 9 nodes |
Then check supply. In early 2024, the same account of ChatGPT said there were no more GPUs to buy or rent, so no GPUs to autoscale into (1 source). A plan that counts on adding GPUs on demand needs a fallback, like shedding or deferring low-priority work.
Bandwidth: multiply bytes by 8, then divide by the link
Every new replica and every new GPU server starts with a copy over the network, and the copy takes time.
A 40 GB index replica over a 10 Gbit/s link. About how long?
Little's law: in flight = arrival rate × time each one stays
One law ties the request rate to how many requests are inside the system at once.
17,000 arrivals a second, and each one stays 0.2 s. How many are in flight?
Latency budgets and the tail
Averages hide the requests users complain about.
Which latency to set the target on
Why set the latency target on the p99, not the average?
Fan-out makes the slow case the common case
Many serving systems split a request across many machines, the leaves. The request is only as fast as its slowest leaf.
| Leaf | This time |
|---|---|
| leaf 1 | 10 ms |
| leaf 2 | 10 ms |
| leaf 3 | 1,000 ms: slow this time |
| leaves 4 to 100 | 10 ms |
The root waits for the last leaf, so this request takes 1 s.
Dean and Barroso's paper The Tail at Scale sets it up with a server that usually answers in 10 ms, but has a p99 of one second. One such server makes 1 request in 100 slow. A request that must collect answers from 100 such servers in parallel is slow 63% of the time.
Check that number. Each leaf is fast with probability 0.99, independently, and the request is fast only if all 100 are:
| Chance | |
|---|---|
| one leaf is fast | 0.99 |
| all 100 are fast | 0.99^100 = 0.366 |
| at least one is slow | 1 - 0.366 = 0.634, about 63% |
The paper's second case has each server slow on only 1 request in 10,000, but 2,000 servers per request. Then 1 - 0.9999^2000 = 0.181, which the paper calls almost one in five.
Google's SRE book makes the same point from the other side. When users depend on several backends to build their page, one backend's p99 can easily become the page's median.
Each leaf needs a far stricter target than the request
Turn the math around to get the requirement. To keep a 100-way fan-out fast 99% of the time, each leaf must be fast with probability 0.99^(1/100) = 0.9999. Your p99 target for the request is a p99.99 target for every leaf.
The paper's measurements from a real Google service agree. Measured at the root, the p99 for one random leaf request to finish was 10 ms. Waiting for every leaf took 140 ms at p99. Waiting for 95% of them took 70 ms.
In the editor, write slow_share(p_slow, leaves): the share of requests that are slow when each one waits for every leaf. Then turn it around with leaf_target(request_fast, leaves): how often each leaf must be fast for the whole request to be fast that often.
Hedge, fan out less, or answer without the stragglers
The math says a wide fan-out is slow by default. Four moves fight that tail. Hedging is the least obvious, so start there.
Hedging: after 10 ms with no answer, send the same read to a second replica. Which answer do you use?
Queueing: why capacity plans keep headroom
Why plan GPUs at 70% instead of 100%? Queueing answers that. Latency doesn't rise in a straight line with load. It bends upward, and near 100% it goes nearly vertical.
One server, 10 ms of work a request. At 90% busy, a request spends 100 ms inside on average. What about at 95% busy?
Eight workers, one queue: read the p99 curve
The same bend shows up in the slow tail, and with many servers too.
Here's the same effect with 8 workers sharing one queue, each taking 400 ms on average, like a small batch sampling service. The curve is p99 latency against offered load. Drag the load from 50% to 95%, then past 100%.
- Served per second
- 14.0
- p50
- 327 ms
- p99
- 1.9 s
- Waiting, on average
- 0.6
What to read off it:
- At low load, p99 is the work itself. Service times averaging 400 ms put the slowest 1% near 1.8 s, with no waiting at all. At 70% load, p99 is about 1.9 s.
- The knee. At 90%, p99 is about 2.8 s, and at 95% about 4.9 s. The last 5% of utilization costs more than the first 90%.
- Past 100%, there's no steady state. More arrives than leaves, and the queue grows as long as the overload lasts.
- Shedding bounds it. Shed past 64 waiting, and at 120% load about a sixth of requests are turned away, while p99 stays near 5 s.
Real servers add their own slowdown on top of the queueing. Amazon's builders find in load tests that a server's latency is lower at low utilization than at high. Under heavy load, contention, context switching and garbage collection all grow. Google's SRE book turns that into a rule: many systems degrade before 100% utilization, so a utilization target is essential.
Plan at a target that survives losing a zone
Headroom also has to cover a failure, such as a whole zone going down.
Three zones, each planned at 70% busy. One zone is lost, and its traffic splits over the other two. How busy are they?
Clients time out and retry. What happens to the server's work on each abandoned request?
A plan for overload
When load passes capacity anyway, the design needs a plan for overload.
8 busy workers and a queue capped at 4, already full. A request arrives. What happens to it?
A backlog drains only with spare capacity
Shedding guards a server while the load is high. After an outage, the trouble is the work that piled up.
The backlog builds during the hour-long outage, then drains at the spare 200 a minute, for 5 more hours.
Queues absorb bursts, and that's also their trap. While a consumer is down, work keeps arriving. When it comes back, it can spend only its spare capacity on the backlog: the gap between what it can process and what keeps arriving.
Say jobs arrive at 1,000 a minute, and workers can do 1,200 a minute, so they run 83% busy.
- A 60-minute outage leaves 60 × 1,000 = 60,000 jobs waiting.
- The spare capacity is 1,200 - 1,000 = 200 a minute.
- So the drain takes 60,000 ÷ 200 = 300 minutes.
A one-hour outage becomes five hours of stale results. Double the workers during the recovery, and the spare becomes 2,400 - 1,000 = 1,400 a minute. Then the drain takes 60,000 ÷ 1,400 ≈ 43 minutes.
If capacity only equals the arrival rate, or falls below it, there is no spare. Then the backlog never drains.
Amazon's Builders' Library gives an example from a spike. One customer's traffic spikes with no throttle, and it takes about 30 minutes for an operator to step in. By then the queued messages are 10 times what the consumers were sized for, so working through them takes 300 minutes.
Amazon's conclusion: even short load spikes can mean recovery times, and outages, of several hours.
While the backlog drains, serve fresh work first.
| The new job | |
|---|---|
| first in, first out | waits behind every old job |
| last in, first out | goes next, and the old jobs drain behind it |
On what to process first, Amazon notes that real-time systems are often built with queues that are roughly first in, first out. They prefer behavior closer to last in, first out: the backlog drains behind fresh work, or expired work gets dropped.
In the editor, write drain_minutes(outage, arrivals, capacity) from the drain formula: the minutes after recovery until the backlog is gone, or math.inf when there is no spare capacity.
Eben Freeman builds queueing intuition for working engineers, from a single queue's wait times to the utilization-latency curve and what it means for capacity planning.
Presenting a trade-off and taking pushback
Every design round makes you choose between options, and the interviewer will push back on your choice.
A choice has four parts
Here is one choice, made for a billion vectors of 256 numbers.
| An index for a billion vectors of 256 numbers | Memory | Why |
|---|---|---|
| HNSW | ~1.3 TB | every full vector, plus its graph |
| IVF with PQ | 40 GB | the choice: rescore the top 500 in full |
| what would change it | at 5 million items, a graph, no compression |
A choice made well has four parts:
- Name two or three real options. Not a straw man next to your favorite.
- Name the axis that decides it, with a number. Memory, latency, freshness, cost, label quality.
- Choose, for this problem. Say it plainly.
- Say what would change your mind.
The table is one such choice. Say it in that order, with the numbers: two options and their memory, the choice, and what would change it.
Airbnb made the IVF call for its own listings, for its own reasons: it found IVF offered the best trade-off between speed and quality (1 source). Reasons that fit your numbers beat a choice copied from a blog.
Pushback comes in three kinds
Interviewers push on purpose. One OpenAI candidate described a deep dive where, whatever they had said, the interviewers grabbed onto it and kept pushing further (1 report).
- A new constraint. What if p99 has to be 50 ms? Accept it, and redesign the piece it breaks: Then the heavy model can't run per request. I'd precompute its scores offline and serve a small model online.
- A test of conviction. Are you sure about that? Recheck the assumption out loud. If it holds, hold your position and show the number: The index is 40 GB. It fits with room to spare, so I'll keep it on one machine and replicate.
- A real flaw. They've spotted something you missed. Say so in one sentence, and fix it: You're right, the retries would double the load during an outage. I'd add a retry budget.
Folding at the first question reads as having no reasons. Defending a broken idea reads as not listening. The move between them is to separate the assumption from the conclusion: If that's true, then X changes and Y doesn't.
In the editor, write missing_parts(choice). A choice is a dict with the keys options, axis, number, choice and change: the four parts, with the axis and its number kept apart. Return the names of the parts it leaves out, in order, from "options", "axis with a number", "choice" and "what would change it". One option counts as missing, and so does an axis with no number.
Reviewing someone else's design
The same method works in reverse, on a design someone else wrote.
You're handed a design doc for a batch sampling service. What do you follow first?
Six questions find most of the problems
At each hop of that walk, ask the six questions in this table.
| Ask | What you're looking for | A typical fix |
|---|---|---|
| What happens when a worker dies mid-job? | Lost or duplicated work | Leases that expire, idempotent job ids, checkpoints |
| What happens when load doubles? | Unbounded queues, no admission control | Bounded queues, shedding, per-tenant quotas |
| What happens when a dependency slows down? | No timeouts, threads piling up | A deadline on every call, passed downstream |
| What happens on retry? | Retry storms, double processing | Backoff with jitter, retry budgets, idempotency |
| What if one input always fails? | One bad job blocking a queue | Bounded retries, then a dead-letter queue |
| How would we know the output is wrong? | Monitoring that sees errors but not quality | Quality checks on live outputs |
These questions find the most problems in a serving or batch design. Amazon defines a dead-letter queue (DLQ) simply: a separate queue that stores the messages that can't be processed, so someone can investigate them later.
The last row is the easiest to miss. Anthropic's September 2025 postmortem is an example: users were reporting worse answers, and the evaluations Anthropic ran didn't capture it (1 source). The fix it announced was to run its quality evals continuously on true production systems (1 source).
questions in the editor holds the six questions from the table, each with the defense that answers it. Write findings(design): design is the set of defenses a design has, and you return the questions it can't answer, in table order.
Offline, online and guardrails tell you whether it works
The last nine minutes of the plan go to two questions: how you'd know the system works, and how you'd know when it stops working. Start with the first.
| Weeks | Use |
|---|---|
| 1 to 8 | train |
| 9 | test: the model meets week 9 the way it will meet the future |
- Offline. A metric on held-out data that tracks the objective. Split by time, not at random, as in the table.
- Online. An A/B test on the objective, with the unit of randomization, the duration, and the smallest effect worth detecting.
- Guardrails. Metrics that block a launch even when the main one wins: latency, cancellations, complaints, cost.
Expect offline and online to disagree. A reported Airbnb ML experience round asked exactly that: "What do you do when the offline metric and the online metric disagree?" (1 report). The ranking metrics lesson works through the causes.
In the editor, write ship(lift, guardrails). lift is the change in the main metric, and each guardrail maps to how much worse it got and the most it may get worse. Ship only when the main metric went up and no guardrail broke its limit.
An ML system can be fast, error-free and wrong
The second question is how you'd know it broke.
Latency and error rates look fine, but bookings slid all week. What do you check first?
Google's SRE book names four golden signals to watch. Which four?
Answer each follow-up with a component and a number
Interviewers spend the last minutes on follow-ups like these. The strongest answers name a part of the system and a number.
What happens at 10 times the traffic? Redo the estimate on the board and name the first component past its limit. For example: peak goes from 17,000 to 170,000 searches a second. The index still fits in memory, so that's replicas, not a redesign. Feature fetch at 50 shards per request is now 170,000 × 50 = 8.5 million lookups a second, and that's the piece to redesign.
You're over the latency budget. What do you cut? The structural wins first: fewer candidates for the heavy model, a cheap first-pass model, the user side computed once per request instead of once per item, caching, hedged reads.
Why not use a bigger model? Cost per request and p99 latency, against the gain you'd expect. Offer the bigger model offline, distilled into a small one that fits the budget.
How do you know it still works next month? Input and output monitoring, and a retraining schedule matched to how fast the data drifts.
Where does this break first? Name the component and the load where it breaks. Never just say it scales.
The practice round, start to finish
That's every piece the practice round needs. Here it is in order, from the first question to the last minute.
1.A request fans out to 40 index shards and waits for all of them. Each shard is slower than the target 1% of the time, independently. About what share of requests miss the target?
2.A single-server queue runs at 90% utilization. Traffic grows until it's 95% busy. What happens to the average time in the system, in the M/M/1 model?
3.Jobs arrive at 800 a minute and workers can process 1,000 a minute. Processing stops for 30 minutes while jobs keep arriving. How long after recovery is the backlog gone?
4.You have 500 million item vectors of 128 dimensions in float32 and want an IVF index with product quantization at M = 16 sub-vectors of 8 bits, plus Faiss's 8-byte id per vector. About how much memory does each version need?
5.Your design needs an LLM fleet for 300 requests a second at peak, 400 output tokens each. A load test shows one GPU sustains 2,000 output tokens a second at the latency target, and you plan to run at 60% of that. How many GPUs?
Where this shows up
The reports behind this lesson, each with its source.
The same Blind poster as abnb-035 (PBUG33), interviewing for senior MLE in Aug 2024, was told the ML practitioner (design) round would be specific to Airbnb's own technical challenges.
ML system design in the same loop: user embeddings plus two-stage semantic retrieval and ranking.
The interviewer pushed hard on position bias.
Same round: trading off precision, recall, latency and infrastructure cost.
Same report: the virtual onsite covered document redaction, project decisions, search ranking without a text query, and retrieval-assisted guidance for support staff.
Senior MLE onsite (Apr 2026): ML design for a family-friendly listing classifier.
Follow-up: what if hosts mislabel their listings on purpose.
Staff SWE candidate (L6, US, interviewed about Sep 2026, in progress): the system design phone round, listed on the page as 'Design Doc Review - Batch Sampling Service', asked them to review an existing design doc and give feedback.
Same Staff report: the review turned into a deep dive on failure handling and overload protection.
MLE candidate (interviewed April 2026, onsite pending): the phone screen was four one-hour rounds.
Same report, ML system design round (titled 'Mining novel data from a large unlabeled corpus' on the page): design an ML system that finds interesting images in a huge pile of images.
Same MLE report: the phone screen ML design question was about recommendation and search.
Same MLE report: the technical deep dive kept pressing on whatever the candidate said.
A Netflix employee on Blind (Feb 2024) said each team writes its own interview problems, based on the job.
MLE candidate, ML infrastructure (listed as Jan 2026): the onsite had coding, a stakeholder conversation and a compute-allocation design.
The same site lists 'Design an ML job scheduler' (cluster resource management for heterogeneous CPU and GPU environments) as a Netflix MLE onsite question (posted 2026-01-06) and links it to the Jan 2026 ML infra onsite report (nfx-030).
A Netflix Software Engineer candidate (interviewed Jun 2026) also got scheduling ML jobs as the system design round.
Same screen ended on how to serve those features under different real-time requirements.
Serving ChatGPT (as of Feb 2024): GPU RAM, not compute, was the most frequent bottleneck for LLM operations.
The primary serving metric was batch size combined with KV cache utilization.
GPU scarcity meant there were no GPUs to autoscale into (as of Feb 2024).
For serving, IVF beat HNSW on the speed versus quality tradeoff.
“we ultimately found that IVF offered the best trade-off between speed and performance.”
Anthropic's evals did not capture the quality degradation users were reporting.
“The evaluations we ran simply didn't capture the degradation users were reporting”
Anthropic says it will run its quality evals continuously on true production systems to catch issues like the load balancing error.
“we will run them continuously on true production systems to catch issues such as the context window load balancing error.”
ML experience round: what to do when offline and online metrics disagree.
Practice
Sources (13)
- The Tail at Scale · Communications of the ACM 56(2) · Feb 1, 2013
“If a user request must collect responses from 100 such servers in parallel, then 63% of user requests will take more than one second”
- Monitoring Distributed Systems · Site Reliability Engineering (Google, O'Reilly) · Apr 1, 2016
“Note that many systems degrade in performance before they achieve 100% utilization, so having a utilization target is essential.”
- Addressing Cascading Failures · Site Reliability Engineering (Google, O'Reilly) · Apr 1, 2016
“If there is insufficient capacity to handle all the requests at steady state, the server will saturate its queues. This means that latency increases (the requests are queued for longer amounts of time) and the queue uses more memory.”
- M/M/1 Queue · MIT OpenCourseWare 2.854, Introduction to Manufacturing Systems (Fall 2016) · Feb 15, 2017
“In other words, this Ws already contains the time that a customer spends in the queue as well as the time that customer spends at the server!”
- Little's Law as Viewed on Its 50th Anniversary · Operations Research 59(3) · May 1, 2011
“Little’s Law says that the average number of items in a queuing system, denoted L, equals the average arrival rate of items to the system”
- Using load shedding to avoid overload · Amazon Builders' Library · Dec 5, 2019
“When we load-test our services, we find that the latency of a server at low utilization is lower than its latency at high utilization.”
- Avoiding insurmountable queue backlogs · Amazon Builders' Library · Dec 5, 2019
“But if the volume of queued messages was 10x the capacity that the consumer side was scaled to, this means it would take 300 minutes for the system to work through the backlog and recover.”
- Faiss indexes · Faiss wiki (GitHub) · Jul 28, 2025
“vectors are split into sub-vectors that are each quantized to a few bits (usually 8)”
- The Faiss library · arXiv 2401.08281v4 · Oct 23, 2025
“For larger indexes, where compression is required to even fit the database vectors in memory, IVF indexes are the only option.”
- Efficient Memory Management for Large Language Model Serving with PagedAttention · arXiv 2309.06180 (SOSP 2023) · Sep 12, 2023
“This sequential generation process makes the workload memory-bound, underutilizing the computation power of GPUs and limiting the serving throughput.”
- NVIDIA H100 Tensor Core GPU · NVIDIA product page · Mar 22, 2022
“3 terabytes per second (TB/s) of memory bandwidth per GPU”
- Rules of Machine Learning: Best Practices for ML Engineering · Google for Developers · Aug 25, 2025
“Rule #1: Don’t be afraid to launch a product without machine learning.”
- Applying Deep Learning To Airbnb Search · arXiv 1810.09591 (KDD 2019) · Oct 24, 2018
“Replacing the manual scoring function with a gradient boosted decision tree (GBDT) model gave one of the largest step improvements in homes bookings in Airbnb’s history”