What Senior and Staff AI Infra loops test, ranked from reported questions: batching, overload, concurrent coding, parallelism math, GPU scheduling and weight distribution, plus a back-of-envelope sheet to derive out loud.
This chapter is for you if you have built backend or distributed systems and want a Senior or Staff role
serving models, scheduling GPUs or running an ML platform. You get the loop shape, 13 ranked themes with what a
strong answer covers, a back-of-envelope sheet with worked numbers, Senior vs Staff signals and a lab-based
prep path. It is built from the 156 questions in the bank
tagged AI Infra or both tracks (as of 2026-10-11). The bank leans on two companies: Anthropic appears in
20% of these rows and NVIDIA in 13%, much of it from PracHub listings. Most rows rest on one anonymous
account or a prep site, so treat every company claim below as reported, not as policy.
The role at Senior and Staff
AI Infra Engineers keep models running: inference serving, batching and scheduling, GPU fleets, weight
distribution, training infrastructure and the platform around them. The research’s main finding is that
these loops mostly ask distributed-systems and concurrency questions in inference form: batch requests onto
a GPU, distribute a large file to thousands of machines, recover when a node dies mid-job. Anthropic’s
careers page says “about half our technical staff had no prior ML experience” (Anthropicofficial).
Postings show the top-end depth. A Google DeepMind Staff inference posting asks for modifying serving
codebases, vLLM, TensorRT-LLM, SGLang or Dynamo, and modelling how batch size and utilization trade latency
against cost (Google (posting mirrored on AnitaB.org)official · 20 Aug 2026). An NVIDIA inference posting asks for CUDA or Triton, Nsight and
vLLM, SGLang or TensorRT-LLM contributions (NVIDIA (via AnitaB.org jobs)official · 28 Apr 2026).
How much CUDA you need is disputed. One prep guide says Senior+ candidates should read or write Triton and
CUDA (techinterview.orgsecondary · 2026); another says you only need to know where Python ends and C++/CUDA begins
(techinterview.orgsecondary · 2026). It likely depends on whether the role is kernel work or platform work. The
research found no first-hand report of a live CUDA or Triton kernel-writing round.
What the loop looks like
A typical reported shape: a recruiter call, an online assessment or coding screen, then four to six onsite
rounds from the list below.
Round
What candidates report
Sources
Online assessment
Anthropic: CodeSignal with progressive levels and many edge-case tests; one commenter finished in 65 of 90 minutes (2024)
Anthropic: turn profiler samples into an execution trace; a web crawler, then make it multithreaded; an image-processing pipeline. Baseten: a thread pool, a chunked parallel download. CoreWeave: a Go concurrency challenge
Anthropic: performance-model a sharded matmul (aggregator). OpenAI Research Engineer: implement all_gather and bound its rounds. NVIDIA: kernel fusion and launch overhead (snippet)
Anthropic: optimize code for a simulated accelerator, with AI explicitly allowed. Claude Opus 4 beat almost all applicants at 4 hours; Opus 4.5 matched the best human on the 2-hour redesign, so Anthropic moved to puzzle-style problems. Fireworks: a take-home and technical review (prep guide)
Meta: debug a toy codebase, write a naive solution, benchmark it, optimize it. Anthropic bans AI in live rounds unless told otherwise. Most infra-cloud companies: no policy found
Anthropic: was a project that cost about $20M of engineer time worth it? A Senior Staff infra candidate thinks the culture round sank his loop, and a commenter on his thread says the same of theirs (their reading, not stated feedback)
The company cards have each reported loop and AI-tool policy
with dates. The Together, Fireworks, Baseten and Modal loops rest almost entirely on prep sites.
Ranked themes
Themes are listed in the site’s rank order, which comes from how many sourced rows touched each theme in
the first research pass. The number after each heading is how many rows the bank holds today for the theme
(AI Infra plus both-track rows). Overload and failure ranks second with only 5 rows of its own because it
mostly shows up as follow-ups inside batching and scheduling questions. Each theme links to the filtered
bank.
1. Batching and inference scheduling (12)
What gets asked. Design a batching layer for one GPU that takes up to 100 inputs per batch while each
caller waits for its result; follow-ups on how to return each response, when to flush a batch, failure points
and how to choose among several GPUs (Anthropic, high confidence, Acedfirst-hand,
Acedaggregator). Design ChatGPT-style serving with separate budgets for time to first token
(TTFT) and inter-token latency, a client that disconnects mid-reply, and a long shared system prompt
(OpenAI, aggregator, PracHubaggregator · 2026). Code a continuous-batching decode loop over a mock model
(xAI, aggregator, PracHubaggregator).
A strong answer flushes on whichever comes first, a full batch or a wait deadline. It bounds the queue,
returns each result through a per-request future, handles timeouts and cancellation, and pushes back with an
explicit rejection when full. For generation it batches at the token level, refilling slots as sequences
finish, and treats KV-cache memory as the real batch limit (see the headroom formula below). A Baseten guide
adds: autoscale on queue depth or TTFT, not GPU utilization, and raise cold starts unprompted
(techinterview.orgsecondary · 2026).
Senior vs Staff. The Staff inference candidate in one report believes pushing back on the interviewer’s
“unrealistic assumptions” sank them; the interviewer wanted the model treated as a black box
(Acedfirst-hand). Accept the framing, then add depth on scheduling, queueing and failure.
What gets asked. A training job on 500 nodes loses one: how fast do you detect it, do you restart or let
the cluster catch up, and do you even need 500 nodes (NVIDIA Senior, first-hand, Acedfirst-hand · 2025)?
Detect, drain and return GPUs with intermittent ECC errors across 5,000 GPUs (Fluidstack, prep site,
techinterview.orgsecondary · 2026). Anthropic’s design-doc review turned into failure handling and overload
protection (Acedfirst-hand · 2026).
A strong answer raises these before being asked: heartbeats and timeouts for detection, leases and
fencing so a stale worker cannot write, bounded retries with a budget, idempotent requests, load shedding by
priority, and how much work a checkpoint restart loses. One guide says reliability counts for more than
“exotic architecture” (DesignGurussecondary · 2026). Staff answers challenge the requirement itself, as the
500-node follow-up invites.
What gets asked. Convert sampled stack traces into an execution trace, with a follow-up that removes one
constraint (Anthropic, high confidence, Acedfirst-hand, Acedfirst-hand · 2026).
Write a web crawler, then make it multithreaded; that candidate ran out of time (Acedfirst-hand).
Build a cache for container-image chunks that coalesces two simultaneous misses (Modal, prep site,
techinterview.orgsecondary · Jul 2026). A thread-safe durable event writer shared by thousands of threads (Databricks,
aggregator, PracHubaggregator).
A strong answer gets a correct single-threaded version running fast, then adds concurrency deliberately:
what each lock protects, a bounded worker pool, single-flight coalescing, cancellation, and tests that build
their own fixtures. Rejected Anthropic candidates point to unfinished tasks and follow-ups, not wrong first answers. Yuan Meng
writes that without a quick insight “I never get a ‘strong yes’”, that needing hints can still reach a “weak
yes”, and that panicking while debugging is “a strong signal for rejection” (Yuan Meng (personal blog)first-hand).
What gets asked. Estimate FFN compute, memory traffic and communication under three sharding schemes,
and explain why FFN-dimension sharding needs an output reduction (Anthropic, aggregator,
PracHubaggregator · 2026). Explain data, tensor and pipeline parallelism and why column- and row-parallel
layers alternate (Amazon, aggregator, PracHubaggregator · 2025). Serve a 70B model on 4×A100-80GB with
tensor parallelism of 2 or 4 (prep site, techinterview.orgsecondary · 2026).
A strong answer says what each GPU holds, which collective runs, and how many bytes it moves (the ring
formula below). For the 70B question: at TP=2 each GPU holds 140 ÷ 2 = 70 GB of BF16 weights, leaving about
10 GB of 80 for KV cache and activations. At TP=4 it is 35 GB per GPU, so more cache room and a shorter per-token
decode time (17.2 ms against 34.3 ms from the bandwidth bound below), paid for with an all-reduce per layer
across four GPUs. No lab covers parallelism yet
(planned as training-parallelism); Build Your Own Transformer From Scratch gives you the layer shapes.
Parallelism questions.
5. GPU fleet scheduling and fairness (12)
What gets asked. One 8-GPU node serves a large model that needs all 8 GPUs and a small one that needs 1:
design routing and placement, then handle one failed GPU in the group and small-model traffic starving the
large one (Anthropic, aggregator, PracHubaggregator · 2026). A text-to-video backend as a GPU job
scheduler with leases, fencing, bounded retries and a paid tier (OpenAI, aggregator, PracHubaggregator · 2026).
A GPU-aware pod scheduler: best-fit versus first-fit and fragmentation (Together, aggregator,
PracHubaggregator · 2025).
A strong answer covers gang scheduling (a multi-GPU job gets all its GPUs or none), packing versus
spreading, fragmentation, topology (which GPUs share fast links), fair-share queues with priority and
preemption, and quotas. Staff answers price the trade-offs, such as when a customer with a tail-latency
requirement gets a dedicated endpoint instead of the shared pool (techinterview.orgsecondary · 2026).
Labs.Build Your Own Container OrchestratorPartial has a reconcile loop and first-fit scheduling on CPU
and memory, with no GPU resource type or gang scheduling; adding those is the exercise. GPU scheduling and
multi-LoRA serving are gaps (planned as gpu-scheduler and multi-lora-serving).
Scheduling questions.
6. Weight distribution, cold start and model residency (6)
What gets asked. Distribute one large file to thousands of machines over bandwidth-limited links
(Anthropic Staff, first-hand, Acedfirst-hand · 2025). Design a chunk-based model download pipeline:
chunk size, pipeline versus tree fan-out, recovery with and without a coordinator (Blind, first-hand,
Blindfirst-hand). Keep a warm pool and make the second cold start of a 40 GB model fast (Modal,
prep site, techinterview.orgsecondary · Jul 2026).
A strong answer starts with numbers. With one source sending 140 GB of weights to 1,000 machines over an
assumed 10 Gbit/s (1.25 GB/s) link, the time is 1,000 × 140 ÷ 1.25 = 112,000 s, about 31 hours. If every
receiver forwards chunks onward, as in a pipelined chain or a peer-to-peer swarm, the total approaches one
copy’s time, 140 ÷ 1.25 = 112 s, plus a per-hop term. Then add checksums per chunk, a local disk cache,
staged rollout and rollback.
What gets asked. Find the bugs in a few hundred lines of transformer code, then add KV caching (OpenAI
Research Engineer, first-hand, Acedfirst-hand). Implement multi-head attention, then a KV cache
and grouped-query attention in the same hour (Anthropic, one Blind comment, Blindfirst-hand · 2026).
Masked multi-head self-attention from scratch (Meta and Apple, aggregator, PracHubaggregator,
PracHubaggregator).
A strong answer writes the shapes at every step, applies the causal mask, subtracts the row max before
softmax, appends to the cache along the sequence axis, and implements GQA by sharing each KV head across a
group of query heads. Test against a reference implementation. Labs: Build Your Own Transformer From Scratch and
Build Your Own LLM Inference EnginePartial.
Attention questions.
9. Roofline and performance reasoning (7)
What gets asked. Performance-model a sharded matmul: FLOPs, bytes, network traffic, the ridge point, the
small-M decode case, and when K-sharding becomes network-bound (Anthropic, aggregator,
PracHubaggregator · 2026). Why is decode memory-bound and prefill compute-bound (prep site,
techinterview.orgsecondary · 23 Jul 2026)? The sheet below works these through. No lab measures a GPU.
Roofline questions.
Review a design doc for a batch sampling service (Anthropic Staff, first-hand, Acedfirst-hand · 2026), or
critique a half-built inference design. The engineering-manager report says the emphasis was design
judgment, communication and review skills, not calculations (Acedfirst-hand · 2026). Walk the request
path, find unbounded queues, missing back-pressure, retry storms and single points of failure, and rank what
you found by impact.
12. Quantization, speculative decoding and MoE (6)
Design a distributed training environment for a 1-trillion-parameter model; the candidate called it their
weakest round because the interviewer asked how they had benchmarked and debugged low GPU utilization and
which NVIDIA tools they had used (NVIDIA Senior, first-hand, Acedfirst-hand · 2025). Move 200 TB of media
to a cloud GPU cluster in a few days (Apple, first-hand, PracHubfirst-hand · Aug 2026): at 10 Gbit/s that is
200 × 10¹² × 8 ÷ 10¹⁰ = 160,000 s, about 1.85 days of line rate, so link speed decides between the network and
shipping disks. Build Your Own Transformer From Scratch has training with checkpoints; sharded checkpoints are a gap
(planned as sharded-checkpointing).
Also in most loops: classic DSA (8), behavioral and values (14), AI-assisted coding (21)
Classic coding persists, especially at NVIDIA (see the loop table). Behavioral rounds probe how you allocate
limited compute across projects (NVIDIA, Acedfirst-hand · 2025) and whether a project was worth what it
cost (Blindfirst-hand). The AI-assisted rows are shared with the AI Engineer
chapter, which covers that round; see
the AI-assisted questions.
Back-of-envelope sheet
Estimation comes up mostly in the estimation-heavy PracHub items, such as Anthropic’s sharded-matmul and FFN
questions. First-hand reports barely mention specific numbers, and the Anthropic engineering-manager report
said its design round was not about detailed calculations (Acedfirst-hand · 2026). So learn to derive a
number out loud, state your units, and don’t memorize multipliers. Every example below was recomputed for
this page; inputs marked “assumed” are round numbers chosen to make the arithmetic concrete.
One 8K-token request: 8,192 × 327,680 = 2,684,354,560 B = 2.5 GiB ≈ 2.68 GB
One 128K-token request: 131,072 × 327,680 = 42,949,672,960 B = 40 GiB ≈ 42.9 GB
Llama-3.1-8B, BF16: 2 × 32 × 8 × 128 × 2 = 131,072 B = 128 KiB per token
The hidden-size form (2 × layers × hidden × bytes) assumes one KV head per query head. For Llama-3.1-70B it gives 2 × 80 × 8,192 × 2 = 2,621,440 B = 2.5 MiB per token, 8× too high (64 ÷ 8).
Weight memory
weight bytes = n_params × bytes_per_param
n_params
parameter count ("70B" = 70 × 10⁹)
bytes_per_param
BF16/FP16 2, INT8 1, INT4 0.5 plus quantization scales
Worked example
70B: 140 GB in BF16 (130.4 GiB), 70 GB in INT8, 35 GB in INT4 with no scales
INT4 with one FP16 scale per 32 weights: 4 + 16 ÷ 32 = 4.5 bits per weight, so 70 × 10⁹ × 4.5 ÷ 8 = 39.4 GB
14B in 16-bit: 14 × 10⁹ × 2 = 28 GB = 26.1 GiB
The scales cost about 4 GB at 70B and buy a lot of accuracy: see the model-quantizer step in the prep path.
Concurrency headroom
max concurrent requests ≈ (total HBM − weight bytes − overhead) ÷ KV bytes per request
total HBM
GPU memory across the replica
overhead
activations, CUDA context, fragmentation (assumed)
tokens/s per sequence ≤ HBM bandwidth ÷ bytes read per token
HBM bandwidth
per GPU (2,039 GB/s on an A100 80GB SXM)
bytes read per token
the weights each GPU holds, plus that sequence’s KV cache
Worked example
8B in BF16 on one A100: 16 × 10⁹ ÷ 2.039 × 10¹² = 7.8 ms per token, at most about 127 tokens/s
70B in BF16 with tensor parallelism 4: 35 × 10⁹ ÷ 2.039 × 10¹² = 17.2 ms per token, at most about 58 tokens/s
Ignores KV reads and the all-reduce between GPUs, so real numbers are lower. Batching is how you get past it: one weight read serves every sequence in the batch.
Matmul FLOPs, arithmetic intensity and the ridge point
FLOPs = 2 × M × K × N bytes = (M×K + K×N + M×N) × bytes_per_element AI = FLOPs ÷ bytes ridge = peak FLOP/s ÷ bandwidth
M, K, N
an (M×K)·(K×N) matmul; in decode, M is the number of tokens processed together
AI
arithmetic intensity, FLOPs per byte moved
ridge
above it a matmul is compute-bound, below it memory-bound
M = K = N = 4,096: 1.37 × 10¹¹ FLOPs over 1.01 × 10⁸ bytes, AI = 1,365 (4,096 ÷ 3). Compute-bound: 440 µs of compute against 49 µs of memory
Decode, M = 1, K = N = 8,192: 134,217,728 FLOPs over 134,250,496 bytes, AI = 1.0. Memory-bound by about 150×
Estimate compute, memory and network time separately; take the max if they overlap and the sum if they don't.
The small-M case is where “decode is memory-bound, prefill is compute-bound” comes from. With K = N = 8,192 in
BF16 on an A100:
M (tokens together)
FLOPs
Bytes
AI
Compute time
Memory time
Bound
1
134,217,728
134,250,496
1.0
0.43 µs
65.8 µs
memory, by ~150×
64
8,589,934,592
136,314,880
63.0
27.5 µs
66.9 µs
memory
153
20,535,312,384
139,231,232
147.5
65.8 µs
68.3 µs
about balanced
256
34,359,738,368
142,606,336
240.9
110.1 µs
69.9 µs
compute
The weight matrix dominates the bytes, so for small M the intensity is roughly M itself. Batching pays until
M nears the ridge point; past it, extra tokens cost real compute.
Ring all-reduce traffic
steps = 2 × (N − 1) bytes sent per GPU = 2 × (N − 1) ÷ N × S
N
GPUs in the ring
S
size of the buffer being reduced (bytes)
Worked example
N = 8, S = 1 GB of gradients: 14 steps, 2 × 7 ÷ 8 × 1 GB = 1.75 GB sent per GPU
At an assumed 100 GB/s per-GPU link: 1.75 ÷ 100 = 17.5 ms, bandwidth term only
K-sharding a 4,096 × 4,096 × 4,096 BF16 matmul 8 ways: 2 × 4,096 × 4,096 × 512 = 1.72 × 10¹⁰ FLOPs, 55 µs per GPU. The 33.5 MB partial sum needs 2 × 7 ÷ 8 × 33.5 = 58.7 MB sent per GPU, 587 µs at 100 GB/s: network-bound by about 10×
Each of the 2(N − 1) steps moves S ÷ N bytes per GPU, which gives the byte count. Naive all-to-all exchange needs O(N²) messages.
E[tokens per target pass] = (1 − a^(g+1)) ÷ (1 − a)
a
per-token acceptance rate of the draft
g
draft length: tokens the draft proposes per round
Worked example
a = 0.6, g = 4: (1 − 0.6⁵) ÷ 0.4 = (1 − 0.0778) ÷ 0.4 = 2.31 tokens
a = 0.82, g = 5: (1 − 0.82⁶) ÷ 0.18 = (1 − 0.304) ÷ 0.18 = 3.87 tokens
Assumes each draft token is accepted independently with the same probability, and counts the bonus token the target adds. It is not wall-clock speedup: draft passes cost time, and the verify pass checks g + 1 tokens per sequence. At batch 64 with g = 4 the verify pass has M = 320, past the ridge point, which is one way gains vanish at high batch (an inference from the roofline table, not a claim from the source).
Mixture of experts: active versus total parameters
FLOPs per token ≈ 2 × active params weight memory = total params × bytes_per_param
active params
parameters each token actually uses
total params
every expert, all of which must sit in memory
Worked example
"671B total, 37B active": 2 × 37 × 10⁹ = 74 GFLOP per token, against 1,342 GFLOP if dense; 671 ÷ 37 = 18× fewer FLOPs
Memory is still 671 GB at FP8 or 1,342 GB at BF16
Router skew, 80% of tokens to 3 of 32 experts: each hot expert gets 80 ÷ 3 = 26.7% of tokens against a uniform 100 ÷ 32 = 3.125%, 8.5× its share
The GPU holding a hot expert does 8.5× the expert work and sets the step time.
Cost per token
$ per token ≈ GPU-hour cost ÷ tokens per GPU-hour
GPU-hour cost
what one GPU costs per hour (assumed, not a quoted price)
tokens per GPU-hour
output tokens across the whole batch × 3,600
Worked example
Assumed $2.00 per GPU-hour and 1,000 output tokens/s per GPU across the batch: 1,000 × 3,600 = 3.6M tokens/hour, so $2.00 ÷ 3.6M = $0.56 per million tokens
Same price, no batching: 70B at TP=4 decodes about 58 tokens/s on 4 GPUs ($8.00/hour). 58 × 3,600 = 208,800 tokens/hour, so $8.00 ÷ 0.2088M = $38 per million, about 69× worse
Latency targets. The serving guide (techinterview.orgsecondary) cites TTFT of “a few hundred ms” and inter-token latency of about
50–100 ms, which is 10–20 tokens/s per stream, so a 500-token reply takes 25–50 s plus TTFT. The 17.2 ms
decode bound for 70B on 4×A100 fits a 50 ms budget with 50 ÷ 17.2 = 2.9× room for batching to slow each step.
Where sources disagree
KV-cache form. The KV-heads form is right for GQA models. The hidden-size form, used on a PracHub
concept page (PracHubsecondary) and in the Baseten guide (techinterview.orgsecondary · 2026), overstates Llama-3.1-70B by 8×. An LLM
inference API guide uses the hidden-size form as well, then drops its own factor of 2 in its 70B example
(techinterview.orgsecondary).
Units. The serving guide’s “0.31 MB/token” for 70B (techinterview.orgsecondary) is really 0.3125 MiB (320 KiB, 0.33 MB), and its
“about 42 GB at 128K” is decimal GB (40 GiB).
INT4 size. “0.5 bytes per weight” leaves out the scales; with one FP16 scale per 32 weights, 70B is
39.4 GB, not 35 GB.
Continuous-batching gain. Quoted as about 2× (techinterview.orgsecondary · 2026), 3–5× (techinterview.orgsecondary) and
10–20× (techinterview.orgsecondary). Don’t quote a multiplier. Derive it: batching amortizes the weight read
until M nears the ridge point, so the gain depends on how far below the ridge you started and how uneven
request lengths are.
70B cold start. “Tens of seconds to a couple of minutes” (techinterview.orgsecondary) against “5–10
minutes” (techinterview.orgsecondary). Load time = weight bytes ÷ effective read bandwidth: 140 GB at an assumed 2 GB/s from
local NVMe is 70 s, at 1.25 GB/s over a 10 Gbit/s link 112 s, at 250 MB/s 560 s (9.3 minutes). Both quotes
fit; ask where the weights live.
Senior vs Staff signals
No AI lab publishes a rubric. This is pieced together from candidate reports and prep guides.
Pulls out numbers before drawing, does rough math out loud, raises crash and overload cases unprompted, keeps queues bounded (DesignGurussecondary · 2026).
Serving fluency: TTFT and inter-token latency as separate budgets, autoscaling on queue depth, cold starts, quantization and speculative decoding as trade-offs (techinterview.orgsecondary · 2026).
Hands-on tooling: how you benchmarked and debugged GPU utilization (Acedfirst-hand · 2025).
Staff
Judgment-first formats: critiquing an existing inference design, where review skill mattered more than calculation (Acedfirst-hand · 2026), and a design-doc review as the phone screen (Acedfirst-hand · 2026).
Accepts the interviewer’s framing, then adds depth (Acedfirst-hand).
Business value and scope: defending whether a $20M project was worth it (Blindfirst-hand). For Meta E6, Hello Interview calls design “the part of the loop that most drives your E6 level determination” and says behavioral stories are separated by blast radius and impact beyond your team (Hello Interviewsecondary).
Takes the values round at Anthropic as seriously as the technical ones: a Senior Staff infra candidate and a commenter on his thread blame it for their rejections, in their own reading (Blindfirst-hand).
The culture or values round at Anthropic, in one Senior Staff candidate’s own reading and a
commenter’s (Blindfirst-hand).
Fighting the design premise in an inference design round (Acedfirst-hand).
Being “too wordy” in the hiring-manager round, by the same candidate’s account (Acedfirst-hand).
Running out of time on a debugging task: fix a training data pipeline, then explain why it is slow
(Acedfirst-hand).
An unfamiliar round format: a Databricks candidate prepared data-writer patterns, met a concurrent
remote-file cache instead, and thinks that round cost the offer (PracHubfirst-hand · 24 Aug 2026).
Design a batching layer for one GPU that takes up to 100 inputs per batch while each caller waits synchronously for its result. Maximize utilization. Follow-ups: when to flush a partial batch, returning results to waiting callers, points of failure (including a GPU dying mid-batch), and picking a GPU with capacity once there are several.
System design High confidence
Staff signal Reported design habits: pull out numbers before drawing, keep queues bounded, and raise crash and overload cases before you are asked. Reports say reliability counts for more than exotic architecture.
Design ChatGPT-style serving: streamed replies, free-tier limits and GPU scheduling (the reported title). PracHub's write-up adds follow-ups: separate latency targets for the first token and the rest, a client that disconnects mid-reply, reusing a long shared system prompt, model rollout, and who degrades first in a spike.
System design Medium confidence
Staff signal Secondary guides: treat TTFT and inter-token latency as separate budgets, autoscale on queue depth or TTFT rather than GPU utilization, and bring up cold starts unprompted.
A custom LLM training system runs on 500 nodes and one node dies. How fast do you detect it, how do you recover, when do you restart the job versus let the cluster catch up, and do you even need 500 nodes?
System design Medium confidence
Staff signal Reports in this bank reward questioning scope and cost at staff level. The last follow-up ('do you even need 500 nodes?') asks you to challenge the requirement, not only the recovery path.
Convert a stream of sampled stack traces from a profiler into an execution trace of function start and end events. A follow-up changes one of the constraints.
Practical coding High confidence
Staff signal Rejected Anthropic candidates point to unfinished follow-ups, not wrong first answers. Get a correct version running quickly; expect the follow-up to change a constraint.
Low-level design of a log writer that batches writes to a write-ahead log. In an added round, implement a key-value store with locking, where batch writes came up again. Reported for a Staff role on an AI platform team, with no LLM-specific questions.
System designPractical coding Medium confidence
Staff signal AI platform roles can be storage interviews. The core trade-off is group commit: how many writes you batch per fsync versus the latency each caller waits.
Implement all_gather across nodes, derive a bound on the number of communication rounds over noisy channels, then improve the bound by exploiting the fact that the values are floats.
Practical codingDomain deep dive Medium confidence
Design a text-to-video backend as a GPU job scheduler with one GPU per task and fair queueing (the reported title). PracHub's write-up adds leases, fencing and bounded retries for safe re-execution, priority for a paid tier, and containing a new model that fails on some GPU types.
System design Medium confidence
Staff signal The reported senior bar is raising crash cases without prompting. Here that means a lease expiring while the old worker still writes output, how fencing stops it, and capping retries when a model fails only on some GPU types.
Distribute one large file to thousands of machines when the network links are bandwidth-limited.
System design Medium confidence
Staff signal Pull out numbers before drawing (a reported habit): file size, link bandwidth and machine count decide whether one source, a tree or peer-to-peer fan-out finishes first.
Build a performance model for a sharded matrix multiply: FLOPs, memory traffic, network traffic and the roofline (the reported title). PracHub's write-up covers the small-M (decode) case, sharding on M, N or K and the collective each needs, and when K-sharding becomes network-bound.
Domain deep dive Medium confidence
Staff signal Secondary guides list saying out loud that prefill is compute-bound and decode is memory-bound as baseline serving fluency; the small-M case is where that shows up in the math.
Take-home: optimize a program for a simulated TPU-like accelerator (VLIW, SIMD, scratchpad memory) to cut its cycle count. AI tools are explicitly allowed on this one; the time limit went from 4 hours to 2.
Review a design doc for a 'Batch Sampling Service'. The discussion turned into a deep dive on failure handling and overload protection.
Design review / critique Medium confidence
Staff signal Staff reports describe judgment-first formats: a phone screen that was a design-doc review, and a critique where design judgment, communication and review skills mattered more than calculations.
Quantize an FP32 tensor to INT8: scale, zero point, clipping and outliers (the reported title). PracHub's write-up asks for the quantize and dequantize round trip with rounding and saturation, then per-channel scales and int32 accumulation.
Practical coding Medium confidence
Staff signal Secondary guides: treat quantization as a trade-off with a measurable quality cost, not a buzzword. Be ready to say what one scale per tensor does to outliers.
AI-assisted coding round (about 60 minutes): in a multi-file codebase with tests, fix a bug, implement a feature, then handle edge cases and scale. You pick the model; the assistant answers in chat and can't edit files.
AI-assisted coding Medium confidence
Staff signal Reported grading is the usual four (problem solving, code quality, verification, communication), not prompting. Prep sites say E7+ get only this coding round, so it carries the whole coding signal at Staff.
Agent-assisted coding round: implement accept/deny rules for transactions, growing from simple checks to AND/OR to nested parentheses. The candidate believes the interviewer wanted them to drive the design and keep the code modular rather than let the agent write one big solution.
AI-assisted coding Medium confidence
Staff signal The rejected candidate's own read: they let the agent drive. Decompose the problem yourself and keep the code modular, and design from the actual requirements rather than a memorized template.
AI-assisted coding round: build a control system that manages aircraft takeoffs and landings. The problem is deliberately ambiguous and product-shaped, so a single prompt can't solve it.
AI-assisted coding High confidence
Staff signal Canva says it watches when you reach for AI, how you break down requirements, whether you catch flaws in AI output, and whether the result is production quality.
Build these in order. Each step says what it lets you claim. Partial labs show their caveats on each card,
and only the labelled numbers below are quoted; most lab benchmark tables are estimates.
The KV cache, for real. “I can size the cache for any model from its config.” The lab’s GPT-2 figure
is arithmetic, not a measurement: 75.5MB(calculated · llm-inference lab).
A real KV cache on GPT-2; paged attention and continuous batching are bookkeeping only.
Partial: the KV cache is real, but paged attention is bookkeeping only, continuous batching runs one forward pass per request, and there is no token streaming or TTFT/TPOT measurement.
Attention from scratch. “I’ve written causal attention and a training loop with checkpoints.”
File-backed WAL with fsync, crash recovery and group commit.
A torn-tail bug (an acknowledged write after a crash could be lost on the next recovery) was fixed on 2026-10-13 with regression tests; run cargo test in labs/wal to confirm.
Draft-and-verify, batched and tree variants, on mock models.
Partial: the acceptance math is correct, but the draft and target are mock models.
Five topics that come up often have no lab yet: a GPU-aware scheduler, multi-LoRA serving, training
parallelism, sharded checkpoints, and LLM observability (TTFT, tokens and cost per request). Building one of
them on real hardware and publishing measured numbers is the kind of validated work the
transition chapter recommends.