Module quiz

Inference engineering quiz

106 questions across 7 lessons. Choose an answer, check it, and read why each option is right or wrong.

Checking answers needs JavaScript. You can still read every question and option below.

0 of 106 answered

Keyboard: arrow keys move between options. Space or Enter selects the focused option.

Request lifecycle, metrics and the roofline15 questions

ObjectiveTrace a request through tokenization, queueing, prefill, decode and streaming, say which phase sets time to first token and which sets inter-token latency, and compute inter-token or end-to-end latency from the other quantities.

  1. Question 1 of 106Users say nothing appears for a long time after they press send, but once text starts it streams at a comfortable pace. Which parts of the request path explain the long wait?

    Choose one answer.

  2. Question 2 of 106A streaming request has a TTFT of 0.6 s and finishes 9.57 s after it was sent, having produced 300 tokens. What is its inter-token latency?

    Choose one answer.

  3. Question 3 of 106Which of these are included in a request's measured time to first token under the NVIDIA benchmarking definition? Select all that apply.

    Choose all that apply.

ObjectiveDefine TTFT, inter-token latency, end-to-end latency, throughput, goodput and cost per million tokens, and explain why a throughput number without a load and a latency is not a result.

  1. Question 4 of 106A vendor page says its engine reaches 9,000 tokens per second. What must you ask before treating that as a result?

    Choose one answer.

  2. Question 5 of 106Engine A serves 50 requests per second, and 70 percent of them meet the latency targets. Engine B serves 40 per second, and 95 percent meet them. Which statement is right?

    Choose one answer.

  3. Question 6 of 106A GPU costs $3 per hour and produces 1,500 output tokens per second at full load. Real traffic keeps it at 25 percent of that rate. What is the cost per million output tokens in practice?

    Choose one answer.

ObjectiveDerive that decode intensity is about 2B divided by bytes per weight, compute a ridge point from a datasheet, and classify decode and prefill as memory-bound or compute-bound.

  1. Question 7 of 106A GPU has 400 dense TFLOPS of BF16 compute and 2 TB/s of memory bandwidth. What is its ridge point?

    Choose one answer.

  2. Question 8 of 106Weights are stored in 8 bits but the arithmetic runs in BF16, so decode intensity is about 2B (FLOP per byte). On the GPU from the previous question (ridge 200), at roughly what batch size does decode reach the ridge?

    Choose one answer.

  3. Question 9 of 106A chat product sends prompts of about 48 tokens to a GPU whose ridge is 295 FLOP per byte, with BF16 weights. How should prefill for these prompts be classified?

    Choose one answer.

  4. Question 10 of 106Which statements about batch-1 decode on a modern GPU are correct? Select all that apply.

    Choose all that apply.

ObjectiveCompute an upper bound on batch-1 decode speed from weight bytes and memory bandwidth, and say what that bound leaves out.

  1. Question 11 of 106A 30B-parameter model is stored in INT8 on one GPU with 1.2 TB/s of bandwidth. What is the batch-1 decode ceiling, counting only the weights?

    Choose one answer.

  2. Question 12 of 106A team computes a 12 ms batch-1 ceiling. Measured step time is 15 ms with a 2,000-token context and 19 ms with a 32,000-token context, same model and batch. What best explains the growth with context?

    Choose one answer.

ObjectiveMap the four families of serving techniques (less work, fewer bytes, better hardware use, reliability) to the roofline fact each one exploits.

  1. Question 13 of 106Decode for a model is bandwidth-bound at batch 4. Which change follows most directly from the roofline?

    Choose one answer.

  2. Question 14 of 106Which of these techniques belong to the "move fewer bytes" family? Select all that apply.

    Choose all that apply.

  3. Question 15 of 106A service starts caching the KV blocks of a long shared system prompt so that new requests skip most of their prefill. Which family of techniques is this, and which roofline fact does it use?

    Choose one answer.

Memory and the KV-cache14 questions

ObjectiveCompute KV-cache bytes per token and per request from layers, KV heads, head dimension and precision, using KV heads rather than query heads.

  1. Question 16 of 106A model has 48 layers, 48 query heads, 6 KV heads and a head dimension of 128, and the cache is stored in 16-bit values. How large is its KV-cache per token?

    Choose one answer.

ObjectiveTurn a GPU memory budget (usable memory minus weights and overhead) into a number of concurrent sequences, explain why a model that fits does not necessarily serve, and say how cache reads limit decode speed at large batch.

  1. Question 17 of 106A 13B model in BF16 (26 GB of weights) runs on one 80 GB GPU at 0.85 memory utilization, with 6 GB of assumed overhead. Its cache is 160 KiB per token and requests are 4,096 tokens long. About how many fit at once?

    Choose one answer.

  2. Question 18 of 106A 34B model needs 68 GB for BF16 weights. The team plans to run it on one 80 GB GPU at 0.9 utilization with about 6 GB of overhead. What follows?

    Choose one answer.

  3. Question 19 of 106A 13B model (26 GB of weights, 160 KiB of cache per token) decodes a batch of 16 sequences, each with 4,096 tokens of context. Which statement describes the bytes read per step?

    Choose one answer.

ObjectiveExplain how PagedAttention blocks and block tables remove waste, and say what it does not change.

  1. Question 20 of 106Which statements about PagedAttention are correct? Select all that apply.

    Choose all that apply.

  2. Question 21 of 106An engine reserves a contiguous 4,096-token slab per request. A paged engine uses 16-token blocks. For one request of 2,050 tokens, how do the wasted token slots compare?

    Choose one answer.

ObjectiveExplain how prefix caching reuses KV blocks, what makes a prefix reusable, and how it differs from a response cache.

  1. Question 22 of 106A service puts "Current time: <timestamp>" as the first line of every prompt, followed by 5,000 static tokens of instructions. Prefix cache hits are near zero. What is the most likely cause?

    Choose one answer.

  2. Question 23 of 106Which of these stop two requests from sharing cached prefix blocks, even when their prompt text is identical? Select all that apply.

    Choose all that apply.

  3. Question 24 of 106A team says, "We already cache answers keyed by the user's question, so prefix caching adds nothing." What is accurate?

    Choose one answer.

  4. Question 25 of 106Four replicas serve a product whose prompts share a long prefix. A load balancer sends requests to replicas at random and the hit rate is about a quarter of what one replica achieves alone. What is the fix?

    Choose one answer.

ObjectiveCompare grouped-query attention, latent attention and KV quantization by effect and cost, and describe what a server does when the cache pool is full.

  1. Question 26 of 106Two models of similar quality share layers and head size. One has 8 KV heads and the other has 64. The cache is the limit on concurrency and everything else is equal. How do their maximum concurrencies compare?

    Choose one answer.

  2. Question 27 of 106A team stores the KV-cache in 8 bits to double capacity. What should they do before shipping?

    Choose one answer.

  3. Question 28 of 106GPU utilization shows 95 percent, but goodput is falling and the engine's preemption counter keeps climbing. What is the likely situation and a first response?

    Choose one answer.

  4. Question 29 of 106What does multi-head latent attention do to cut the KV-cache?

    Choose one answer.

Model and kernel optimization16 questions

ObjectiveExplain how FlashAttention cuts memory traffic while staying exact, and why the saving is large in prefill and small in single-query decode.

  1. Question 30 of 106How does FlashAttention's output compare with standard attention, and what does it change?

    Choose one answer.

  2. Question 31 of 106A service is slow at decode with a batch of 2 and 1,000-token contexts. A teammate proposes switching to a FlashAttention kernel as the main fix. What is the best assessment?

    Choose one answer.

  3. Question 32 of 106Which are consequences of FlashAttention's tiling and online softmax? Select all that apply.

    Choose all that apply.

ObjectiveChoose between weight-only low-bit quantization and W8A8 or FP8 by using the roofline (memory-bound or compute-bound) and the hardware's supported formats.

  1. Question 33 of 106A 70B chat product runs at a batch of 2 on H100s and decode is slow. Which quantization choice follows from the roofline?

    Choose one answer.

  2. Question 34 of 106An offline summarization job runs at a batch of 512 on an H100. Moving from BF16 to W4A16 gave almost no speed-up, and contexts are short. What explains it?

    Choose one answer.

  3. Question 35 of 106A team with a fleet of A100 GPUs plans FP8 W8A8 serving because they read that FP8 is nearly lossless. What should they check first?

    Choose one answer.

  4. Question 36 of 106A GPU has 400 dense TFLOPS in BF16, 800 in FP8, and 2 TB/s of bandwidth. With FP8 weights and FP8 math, at what batch does decode reach the ridge? (Intensity is about 2B per byte.)

    Choose one answer.

ObjectiveSay what scale-based quantization stores, why activation outliers break per-tensor 8-bit, and the core idea of LLM.int8, GPTQ, AWQ, SmoothQuant and FP8.

  1. Question 37 of 106Activations are quantized to signed 8-bit with one scale for the whole tensor: values 0.1, 0.4, −0.3 and one outlier of 30.0. What happens to the 0.1?

    Choose one answer.

  2. Question 38 of 106Which description matches AWQ?

    Choose one answer.

  3. Question 39 of 106Which of these are weight-only quantization methods? Select all that apply.

    Choose all that apply.

ObjectiveDesign a validation gate for a quantized model, and explain why perplexity alone is not enough.

  1. Question 40 of 106An INT4 build of your model has perplexity within 1 percent of the BF16 original. A colleague says to ship it. What is the best response?

    Choose one answer.

  2. Question 41 of 106Which belong in the validation gate for a quantized model? Select all that apply.

    Choose all that apply.

  3. Question 42 of 106After moving to 4-bit weights, overall accuracy is unchanged but malformed JSON in tool calls doubles. What is the best next step?

    Choose one answer.

ObjectiveExplain what CUDA graphs and kernel fusion remove, and why temperature-0 outputs can vary with batch composition.

  1. Question 43 of 106At a batch of 1, profiling shows the GPU idles between a long chain of small kernels and the CPU is busy submitting them. Which change addresses this directly?

    Choose one answer.

  2. Question 44 of 106An engine captured CUDA graphs for batch sizes 1, 2, 4, 8 and 16. A live batch has 11 sequences. What does it typically do?

    Choose one answer.

  3. Question 45 of 106The same prompt at temperature 0 returns different text when the server is busy than when it is idle. Nothing is broken. What is the best explanation?

    Choose one answer.

Scheduling and decoding16 questions

ObjectiveCompare static, dynamic and continuous batching by what changes at each iteration, and say what continuous batching needs from the KV-cache manager.

  1. Question 46 of 106A batch of 8 starts together. Three requests finish at step 40; the other five run to step 200, and new requests are waiting. What happens to the three freed slots?

    Choose one answer.

  2. Question 47 of 106Continuous batching has sequences starting and ending at arbitrary steps. What does this ask of memory management?

    Choose one answer.

  3. Question 48 of 106Which are properties of continuous (iteration-level) batching? Select all that apply.

    Choose all that apply.

ObjectiveExplain prefill and decode interference with a worked number, and describe how a token budget in chunked prefill trades smooth streaming against the long prompt's first-token time.

  1. Question 49 of 106A 13B model processes a 10,000-token prompt on a GPU with 500 dense TFLOPS. Counting 2P FLOPs per token, what is the minimum prefill time at peak?

    Choose one answer.

  2. Question 50 of 106Streaming freezes for about half a second each time a user submits a very large document, and then recovers. What is the most likely cause and fix?

    Choose one answer.

  3. Question 51 of 106An operator raises the per-iteration token budget for chunked prefill from 1,024 to 8,192. What should they expect?

    Choose one answer.

  4. Question 52 of 106Which statements about chunked prefill are correct? Select all that apply.

    Choose all that apply.

ObjectiveUse Little's law to bound sustainable load, and choose between queueing, priority, admission control and cancellation when demand exceeds capacity.

  1. Question 53 of 106A service can hold 30 concurrent sequences, and a typical request holds its slot for 12 seconds from admission to last token. What is the most arrival rate it can sustain?

    Choose one answer.

  2. Question 54 of 106Peak arrival is 4 requests per second and the service ceiling is 2.5. Latency targets are being missed. What is the best response?

    Choose one answer.

  3. Question 55 of 106Which actions raise goodput when a service is overloaded? Select all that apply.

    Choose all that apply.

ObjectiveCompute expected accepted tokens and the speedup of speculative decoding from acceptance rate, draft length and draft cost, explain why the output distribution is unchanged, and say when the gain disappears.

  1. Question 56 of 106Speculative decoding uses acceptance rate α = 0.6, draft length γ = 3 and draft cost ratio c = 0.1. What is the approximate speedup?

    Choose one answer.

  2. Question 57 of 106What is true of the output distribution under speculative decoding with correct accept and reject sampling?

    Choose one answer.

  3. Question 58 of 106On an H100 (ridge near 295 FLOP per byte), a service uses γ = 3 drafts and a batch of 128. Why does speculative decoding gain little there?

    Choose one answer.

  4. Question 59 of 106A summarization service wants a speculative method that needs no extra trained model or heads and works because outputs often repeat phrases from the input. Which fits?

    Choose one answer.

ObjectiveDecide between chunked prefill on shared GPUs and separate prefill and decode pools using KV-transfer arithmetic and the cost of extra machines.

  1. Question 60 of 106An 8B model has a cache of 1.07 GB for an 8,192-token context. Moved over a 200 Gb/s link at full line rate, how long does the transfer take?

    Choose one answer.

  2. Question 61 of 106A small team runs one model on two nodes and sees stuttering streams when long prompts arrive. Which step should come first?

    Choose one answer.

Distributed serving, engines and hardware15 questions

ObjectiveChoose between data, tensor, pipeline and expert parallelism for a model and an interconnect, and state the communication each one adds.

  1. Question 62 of 106A model and a useful KV budget fit on one GPU, and traffic is expected to be five times what one GPU can serve. What is the best layout step?

    Choose one answer.

  2. Question 63 of 106A server has four GPUs linked only by PCIe, with no NVLink, and the model needs all four to hold its weights. Which split is the better default, and why?

    Choose one answer.

  3. Question 64 of 106Which statements about parallelism strategies are correct? Select all that apply.

    Choose all that apply.

  4. Question 65 of 106A team proposes tensor parallelism of 16 across two nodes joined by ordinary Ethernet, to cut inter-token latency. What is the strongest objection?

    Choose one answer.

ObjectiveCompute weights per GPU, the KV budget and the weights-only decode floor for a candidate layout, and decide whether it serves.

  1. Question 66 of 106A dense 180B-parameter model is stored with 8-bit weights (180 GB) and run with tensor parallelism on four GPUs with 4.8 TB/s of bandwidth each. What is the weights-only step floor?

    Choose one answer.

  2. Question 67 of 106The same four 141 GB GPUs hold 180 GB of weights, use 90 percent of memory, and reserve 4 GB of overhead per GPU. The cache costs 400 KiB (409,600 bytes) per token. About how many 4,096-token sequences fit?

    Choose one answer.

ObjectiveExplain why a mixture-of-experts model costs compute by active parameters but memory and bandwidth by total parameters as the batch grows.

  1. Question 68 of 106A mixture-of-experts model has 100B total parameters and 20B active per token, with 8-bit weights. Which statement about its resource needs is correct?

    Choose one answer.

  2. Question 69 of 106A layer has 16 experts and each token picks 2, uniformly and independently. About what share of the experts is read at a batch of 8 tokens?

    Choose one answer.

  3. Question 70 of 106A mixture-of-experts deployment shows p99 latency spikes while p50 is steady. What is the most likely cause to check first?

    Choose one answer.

ObjectiveExplain how one resident base model can serve many LoRA adapters, and size an adapter relative to the base.

  1. Question 71 of 106How many parameters does a rank-8 LoRA adapter add to one 4,096 × 4,096 weight matrix?

    Choose one answer.

  2. Question 72 of 106Which are real costs of serving many LoRA adapters on one resident base model? Select all that apply.

    Choose all that apply.

ObjectiveChoose an engine by stated criteria with dated facts, match a hardware attribute (capacity, bandwidth, compute, interconnect) to a workload, and place self-hosting against a hosted API.

  1. Question 73 of 106A team picks an engine from a benchmark on 128-token prompts and short answers. Production prompts average 6,000 tokens with a long shared prefix. What is the main weakness of the choice?

    Choose one answer.

  2. Question 74 of 106Your platform runs on Text Generation Inference. When you check its repository on 2026-10-21 you find it archived and read-only. What follows?

    Choose one answer.

  3. Question 75 of 106A decode-heavy chat service runs at small batch on one GPU type or another. Which hardware attribute matters most for its inter-token latency?

    Choose one answer.

  4. Question 76 of 106A GPU costs $4 per hour. At full load an engine produces 3,000 output tokens per second, but real traffic keeps utilization at 25 percent. What is the cost per million output tokens?

    Choose one answer.

Production operations: capacity, scaling and failure16 questions

ObjectivePlan replicas from peak load, a benchmarked per-replica capacity at the latency target, a utilization margin and a spare, and cross-check the plan with Little's law and the KV-cache budget.

  1. Question 77 of 106Peak traffic is 20 requests per second at 150 output tokens each. One replica is benchmarked at 900 output tokens per second at the latency target. With 0.7 target utilization and one spare, how many replicas?

    Choose one answer.

  2. Question 78 of 106Arrival is 20 requests per second and a request holds its slot for 9 seconds from admission to last token. Five replicas serve it, and each replica's KV pool holds 30 sequences of the typical size. What does Little's law say?

    Choose one answer.

ObjectiveChoose autoscaling signals that lead rather than lag, account for cold start, and explain why you scale up fast and down slowly with a drain.

  1. Question 79 of 106Which are autoscaling signals that lead rather than lag for an LLM service? Select all that apply.

    Choose all that apply.

  2. Question 80 of 106A replica shows 95 percent GPU utilization, yet goodput is falling. Why can utilization mislead?

    Choose one answer.

  3. Question 81 of 106A new replica pulls its container image in 40 s, loads 70 GB of weights at an assumed 2 GB/s, and then needs 20 s for graph capture and warm-up. How long until it can serve?

    Choose one answer.

  4. Question 82 of 106Every Monday at 9 a.m. traffic doubles, new replicas need four minutes to start, and users see slow starts for about ten minutes. What is the best fix?

    Choose one answer.

  5. Question 83 of 106What should happen before a replica is terminated during scale-in?

    Choose one answer.

ObjectiveChoose a routing policy (least-loaded, prefix-aware, adapter-aware, priority tiers) and say which retries are safe and what hedging costs.

  1. Question 84 of 106Request costs on a service vary by about 100 times between short and long ones. Which routing policy fits best?

    Choose one answer.

  2. Question 85 of 106Which are sound practices for retries and hedging? Select all that apply.

    Choose all that apply.

ObjectiveDesign a benchmark that reports goodput at the target on realistic traffic, and explain why closed-loop load and a hot cache mislead.

  1. Question 86 of 106A closed-loop test with 64 clients reports 8 requests per second and a steady latency. The service's true capacity is 8 requests per second. What does the test fail to show?

    Choose one answer.

  2. Question 87 of 106Three identical benchmark runs against one running server show rising throughput each time. What is the likely cause, and the fix?

    Choose one answer.

  3. Question 88 of 106Which belong in a trustworthy benchmark report? Select all that apply.

    Choose all that apply.

ObjectiveWork through a latency regression by symptom, alert on symptoms while dashboarding causes, and describe graceful degradation for the main failure modes.

  1. Question 89 of 106After a deploy, TTFT and cost rise while ITL is unchanged, and the prefix-cache hit rate has dropped. What is the most likely cause?

    Choose one answer.

  2. Question 90 of 106Inter-token latency rose while TTFT stayed flat. Which cause fits best?

    Choose one answer.

  3. Question 91 of 106Which of these should page an on-call engineer first?

    Choose one answer.

  4. Question 92 of 106A replica passes its HTTP health check while its GPU is hung and every request on it stalls. What is the fix?

    Choose one answer.

Inference engineering: interview drills14 questions

ObjectiveExplain the core serving ideas (prefill and decode, the KV-cache, batching with paging, quantization, speculative decoding, the levers for TTFT and inter-token latency) clearly in about 90 seconds each.

  1. Question 93 of 106Asked "why is decode memory-bound?", which opening answer is strongest in ninety seconds?

    Choose one answer.

  2. Question 94 of 106Which is the strongest one-line answer to "what limits how many users one GPU serves"?

    Choose one answer.

  3. Question 95 of 106Users say the first word takes a long time at peak hours, but text streams quickly once it starts. Which lever do you reach for first?

    Choose one answer.

ObjectiveWork the standard derivations: the batch-1 decode bound, KV bytes and concurrency, the speculative-decoding speedup, cost per million tokens with utilization, and replicas from peak load.

  1. Question 96 of 106A 24B model stored in 8-bit runs on one GPU with 1.2 TB/s of bandwidth. What is the batch-1 decode ceiling, counting only the weights?

    Choose one answer.

  2. Question 97 of 106A model has 32 layers, 4 KV heads, head dimension 128, and a BF16 cache. About how many 8,192-token sequences fit in a 20 GB cache pool?

    Choose one answer.

  3. Question 98 of 106Speculative decoding has acceptance rate α = 0.9, draft length γ = 3 and draft cost ratio c = 0.1. What is the speedup?

    Choose one answer.

  4. Question 99 of 106A GPU costs $3.20 per hour and delivers 1,600 output tokens per second at full load. Real utilization is 40 percent. What is the cost per million output tokens?

    Choose one answer.

  5. Question 100 of 106Peak is 12 requests per second at 400 output tokens each. One replica sustains 1,200 output tokens per second at the target. With 0.6 target utilization and one spare, how many replicas?

    Choose one answer.

ObjectiveStructure a 40-minute inference-platform design answer in seven parts and name the markers of a strong one.

  1. Question 101 of 106In a 40-minute platform design round, which opening is strongest?

    Choose one answer.

  2. Question 102 of 106Which are markers of a strong platform design answer? Select all that apply.

    Choose all that apply.

ObjectiveDiagnose a described serving symptom by phase and cause, and propose a fix together with its price.

  1. Question 103 of 106After switching the KV-cache to 8 bits, summaries of documents under 20,000 tokens look unchanged, but summaries of documents over 50,000 tokens lose details. What is the right response?

    Choose one answer.

  2. Question 104 of 106Every hour on the hour, p99 TTFT triples for about five minutes. A batch job scheduled at the top of each hour runs on the same replicas as the chat traffic. What is the best fix?

    Choose one answer.

  3. Question 105 of 106A team replaces a chat model with a reasoning model. Traffic is flat, but cost and latency per request rise sharply. What most likely changed?

    Choose one answer.

  4. Question 106 of 106A benchmark showed fine p95 TTFT, and production is four times worse. Which differences could explain it? Select all that apply.

    Choose all that apply.