AI Infra Interviews logo
AI Infrastructure System Design / 02
easyNew

You have 45 minutes and the prompt is 'design our serving platform'. How do you run the round?

Five minutes of numbers, seven of shape, ten of arithmetic, sixteen of depth, five of failure modes. The minute plan that keeps a serving-platform design inside 45 minutes, with the worked opening for a coding assistant and the mistakes that end the round early.

Updated Sep 2026 · Grounded in real AI infrastructure interview loops and written to a senior-engineer editorial bar, with every number worked and every diagram hand-built.

TL;DR: Minutes 0 to 5, pin the requirements as numbers and write the non-goals. Minutes 5 to 12, draw the reference shape for the family, one job per box. Minutes 12 to 22, the sizing chain out loud: demand, capacity per unit, units, headroom, cost, with a sanity check. Minutes 22 to 38, two deep dives from a menu of three you offer. Minutes 38 to 45, failure modes, rollout, observability and what changes at 10×. Commit to the main trade-off and say what would reverse it.

How to approach it

Say the plan before executing it, because the interviewer grades the structure as much as the content: "I will confirm the numbers, draw the standard shape, size it, then go deep where you want." Ask for users, model, latency targets, scale in a year and budget, and write them on the board. Name what is out of scope so the round stays inside the hour. Then drive: the candidate who waits to be asked for each step is graded on the interviewer's structure instead of their own.

A strong answer

A typical situation: a candidate draws for twenty minutes, reaches the sizing with eight left, and the interviewer never finds out whether they can do the arithmetic. The plan below exists to notice that at minute 12 rather than at minute 40.

The AI Infra Design Round Playbook is the same for every prompt; only the shape and the chain change. The version below runs it against a concrete prompt: the serving platform for a coding assistant.

rendering diagram…

Minutes 0 to 5: the numbers. For the coding assistant: 200k daily users, 40k concurrent at peak; two workloads, inline completions (about 500 tokens of context, 30 output tokens, TTFT p95 under 200 ms) and chat (about 4k context, 400 output, TTFT p95 under 700 ms, TPOT p95 under 60 ms); a 7B for completions and a 70B for chat, both self-hosted; 3× growth in a year; non-goals: training, fine-tuning, multi-region. The decision already falls out before a box is drawn: two pools, because the two workloads have different latency shapes. Say that sentence at minute five.

Minutes 5 to 12: the shape. Gateway, router, per-pool replicas with an engine scheduler inside, KV tier, autoscaler, observability. One sentence per box, with the failure it owns. Do not describe the engine as a black box; the scheduler and the KV pool are where the follow-ups go.

Minutes 12 to 22: the chain. Every number is an assumption the interviewer can change, so say each one.

completions pool (7B, one H100 per replica, fp8 weights 7 GB)
  demand: 40k concurrent × 1 completion per 10 s = 4,000 req/s × 500 tokens = 2 M prefill tok/s
  prefill per GPU at fp8: 1,979e12 × 0.4 MFU ÷ (2 × 7e9 FLOPs per token) ≈ 57,000 tok/s
  replicas: 2 M ÷ 57,000 ≈ 35; +20% headroom → 42 H100s
  TTFT check: 500 tokens × 2 × 7e9 ÷ (1,979e12 × 0.4) ≈ 9 ms of compute, so the 200 ms budget is queueing

chat pool (70B, 8 × H100 per replica)
  mid-generation fraction ≈ 400 × 60 ms = 24 s ÷ (24 + 60 s reading) ≈ 30%
  decode demand: say 8k of the 40k are in chat: 8,000 × 0.3 × 17 tok/s ≈ 41,000 tok/s
  goodput per replica at p95 TPOT 60 ms: take 2,200 tok/s; prefill takes 30% of each replica
  replicas: 41,000 ÷ 2,200 ÷ 0.7 ≈ 27; +20% → 32 replicas = 256 H100s

cost: (42 + 256) × $2.50/h ≈ $745/h at peak; sanity: about $0.02 per user-hour at 40k concurrent

Say the sensitivity: the chat pool is 85% of the bill and its size is set by the TPOT target and the prefix hit rate, so those are the two inputs to negotiate.

Minutes 22 to 38: the deep dives. Offer three: the router's prefix affinity, the engine scheduler's admission, the autoscaler's cold-start handling. For whichever two are chosen, explain the mechanism, not the name. Prefix affinity: hash the conversation to a replica, correct with load, and handle the restart miss storm. Admission: a bounded queue whose depth equals the wait budget times the service rate, and a KV check on the request's maximum pages before admission. Cold start: a warm pool sized to the largest daily step, scaling on pending tokens rather than GPU utilization.

Minutes 38 to 45: the close. Failure modes without being asked: full KV pool, lost affinity on rollout, a slow replica hidden by least-loaded routing, a traffic step faster than a cold start. Rollout: canary a few replicas per pool and compare TTFT and quality per version. At 10×: the pools become hundreds of nodes, prefill and decode disaggregate, and prefix reuse moves to a shared tier.

The trade-off to commit to here is two pools against one. Two pools cost some utilization (each pool carries its own headroom) and buy separate SLOs. The reversal condition: if the completion traffic falls under a few hundred requests per second, a single pool with priority lanes carries both without the double headroom. The AI Infra Design Round Playbook is the longer form of this plan, and Capacity Planning and Utilization supplies most of the numbers minute 12 needs.

What interviewers probe next

  • "You spent ten minutes on arithmetic; why?" Because without the chain the drawing does not say whether to order 40 GPUs or 4,000, and every follow-up is a change to one of its inputs.
  • "What if I told you the budget is a third of that?" Cut the chat model to a smaller one or relax TPOT to 100 ms, and show the chain again with the new numbers; do not cut headroom.
  • "What would you do differently at a startup with one team?" Same structure, smaller shape: one pool, one router, no disaggregation, and the non-goals list gets longer.

Common mistakes

  • Spending fifteen minutes on requirements and drawing nothing.
  • A diagram with no numbers attached to any box.
  • "It depends" with no statement of what it depends on and which way you would go.
  • Solving for the wrong scale: a three-replica design for 40k concurrent users, or a global control plane for one team.
  • Ignoring the hardware: a serving design that never mentions memory bandwidth is a web-services design with the nouns changed.

Key takeaways

  • 5, 7, 10, 16, 5: the minute plan in minutes, and say it out loud at the start so the interviewer can steer it.
  • Requirements as numbers with non-goals; a shape with one job per box; a chain with every assumption stated and a sanity check.
  • Offer three deep dives, know the mechanism in each, and name failures before being asked.
  • Commit to the trade-off and state the reversal condition.
That one was free — and so are 10 answers per topic without an account. Signing in doubles that to 20, opens the Plus lessons in the courses, and remembers which topics you keep getting wrong.no card · Google sign-in · nothing to cancel
HOW DID IT GO?
0
READING SIGNED OUT

Signing in doubles your free answers, from 10 to 20 per topic, and the site starts remembering you: mastery per topic, bookmarks, and a next-focus recommendation. Free, no card.

Sign in free

The concepts behind this question

Ranked by how closely each one overlaps this question's topic, so the first card is the thing to read if the answer above moved too fast.

Foundational
📐 AI Systems Design
The AI Infra Design Round PlaybookThe AI infrastructure design round is 45 to 60 minutes with one prompt (design a serving platform, a training scheduler, a 10k-GPU cluster, a fine-tuning service) and one interviewer whose job is to find the edge of what you know. The candidates who pass do the same things in the same order: pin the requirements and the numbers in the first five minutes, draw the reference shape, size it with a stated chain of arithmetic, pick two deep dives, and name the failure modes before being asked. This page gives that structure with a minute-by-minute plan, the numbers to bring in your head, and the mistakes that end the round early.
Foundational
📐 AI Systems Design
Inference Platform ArchitectureAn LLM inference platform is the layer between a product's API call and a GPU running a serving engine, and every design round starts from its reference shape: a gateway that authenticates and rate-limits, a router that picks a replica with the right model and a warm cache, a per-replica scheduler that batches, engines that run prefill and decode, a KV cache tier, an autoscaler, and the observability that makes it operable. This page draws that shape, sizes each box for a concrete workload, and walks the derivation from user demand to replica count that every design answer has to contain.
Advanced
📐 AI Systems Design🔒 Premium
Request Routing and Load Balancing for LLMsA load balancer for stateless web services spreads requests evenly and is done. A router for LLM replicas has two things a web balancer never had to think about: each replica holds a cache (the KV pages of recent prefixes) that makes some replicas far cheaper than others for a given request, and each request costs a wildly different amount, so counting connections is meaningless. This page builds the router that handles both: prefix-aware placement with load-aware fallback, cost-aware queue estimates, session affinity, and the failure handling when a replica restarts and its cache is gone.
Core
📐 AI Systems DesignSign in
GPU Job Scheduler DesignDesign a scheduler for a shared GPU cluster is the most common design prompt in AI infrastructure interviews, because it touches everything: queues and priorities, gang placement, topology, fairness across teams, preemption and the checkpoints that make it survivable, and the failure handling that keeps a 512-GPU job alive. This page builds the design in layers, states the data model and the scheduling loop, derives the numbers (how long a job waits, how much preemption costs, how much fragmentation wastes), and lists the trade-offs the interviewer will push on.
UP NEXT ON YOUR JOURNEY
FEDITOR'S NOTE

Scored on whether the candidate drives the structure: requirements as numbers, a shape with one job per box, a sizing chain with stated assumptions, and a committed trade-off with its reversal condition.

DISCUSSION · 0

No comments yet — be the first to share your approach.