Quizzes Inference engineering Module quiz
Inference engineering quiz 106 questions across 7 lessons. Choose an answer, check it, and read why each option is right or wrong.
Back to the module Flashcards
Checking answers needs JavaScript. You can still read every question and option below.
Keyboard: arrow keys move between options. Space or Enter selects the focused option.
One question at a time
Objective Trace 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.Question 1 of 106 Users 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.
Check answer
Question 2 of 106 A 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.
Check answer
Question 3 of 106 Which 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.
Check answer
Objective Define 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.Question 4 of 106 A vendor page says its engine reaches 9,000 tokens per second. What must you ask before treating that as a result? Choose one answer.
Check answer
Question 5 of 106 Engine 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.
Check answer
Question 6 of 106 A 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.
Check answer
Objective Derive 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.Question 7 of 106 A GPU has 400 dense TFLOPS of BF16 compute and 2 TB/s of memory bandwidth. What is its ridge point? Choose one answer.
Check answer
Question 8 of 106 Weights 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.
Check answer
Question 9 of 106 A 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.
Check answer
Question 10 of 106 Which statements about batch-1 decode on a modern GPU are correct? Select all that apply. Choose all that apply.
Check answer
Objective Compute an upper bound on batch-1 decode speed from weight bytes and memory bandwidth, and say what that bound leaves out.Question 11 of 106 A 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.
Check answer
Question 12 of 106 A 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.
Check answer
Objective Map the four families of serving techniques (less work, fewer bytes, better hardware use, reliability) to the roofline fact each one exploits.Question 13 of 106 Decode for a model is bandwidth-bound at batch 4. Which change follows most directly from the roofline? Choose one answer.
Check answer
Question 14 of 106 Which of these techniques belong to the "move fewer bytes" family? Select all that apply. Choose all that apply.
Check answer
Question 15 of 106 A 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.
Check answer
Objective Compute KV-cache bytes per token and per request from layers, KV heads, head dimension and precision, using KV heads rather than query heads.Question 16 of 106 A 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.
Check answer
Objective Turn 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.Question 17 of 106 A 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.
Check answer
Question 18 of 106 A 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.
Check answer
Question 19 of 106 A 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.
Check answer
Objective Explain how PagedAttention blocks and block tables remove waste, and say what it does not change.Question 20 of 106 Which statements about PagedAttention are correct? Select all that apply. Choose all that apply.
Check answer
Question 21 of 106 An 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.
Check answer
Objective Explain how prefix caching reuses KV blocks, what makes a prefix reusable, and how it differs from a response cache.Question 22 of 106 A 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.
Check answer
Question 23 of 106 Which 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.
Check answer
Question 24 of 106 A team says, "We already cache answers keyed by the user's question, so prefix caching adds nothing." What is accurate? Choose one answer.
Check answer
Question 25 of 106 Four 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.
Check answer
Objective Compare grouped-query attention, latent attention and KV quantization by effect and cost, and describe what a server does when the cache pool is full.Question 26 of 106 Two 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.
Check answer
Question 27 of 106 A team stores the KV-cache in 8 bits to double capacity. What should they do before shipping? Choose one answer.
Check answer
Question 28 of 106 GPU 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.
Check answer
Question 29 of 106 What does multi-head latent attention do to cut the KV-cache? Choose one answer.
Check answer
Objective Explain how FlashAttention cuts memory traffic while staying exact, and why the saving is large in prefill and small in single-query decode.Question 30 of 106 How does FlashAttention's output compare with standard attention, and what does it change? Choose one answer.
Check answer
Question 31 of 106 A 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.
Check answer
Question 32 of 106 Which are consequences of FlashAttention's tiling and online softmax? Select all that apply. Choose all that apply.
Check answer
Objective Choose 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.Question 33 of 106 A 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.
Check answer
Question 34 of 106 An 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.
Check answer
Question 35 of 106 A 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.
Check answer
Question 36 of 106 A 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.
Check answer
Objective Say 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.Question 37 of 106 Activations 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.
Check answer
Question 38 of 106 Which description matches AWQ? Choose one answer.
Check answer
Question 39 of 106 Which of these are weight-only quantization methods? Select all that apply. Choose all that apply.
Check answer
Objective Design a validation gate for a quantized model, and explain why perplexity alone is not enough.Question 40 of 106 An 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.
Check answer
Question 41 of 106 Which belong in the validation gate for a quantized model? Select all that apply. Choose all that apply.
Check answer
Question 42 of 106 After 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.
Check answer
Objective Explain what CUDA graphs and kernel fusion remove, and why temperature-0 outputs can vary with batch composition.Question 43 of 106 At 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.
Check answer
Question 44 of 106 An 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.
Check answer
Question 45 of 106 The 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.
Check answer
Objective Compare static, dynamic and continuous batching by what changes at each iteration, and say what continuous batching needs from the KV-cache manager.Question 46 of 106 A 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.
Check answer
Question 47 of 106 Continuous batching has sequences starting and ending at arbitrary steps. What does this ask of memory management? Choose one answer.
Check answer
Question 48 of 106 Which are properties of continuous (iteration-level) batching? Select all that apply. Choose all that apply.
Check answer
Objective Explain 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.Question 49 of 106 A 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.
Check answer
Question 50 of 106 Streaming 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.
Check answer
Question 51 of 106 An operator raises the per-iteration token budget for chunked prefill from 1,024 to 8,192. What should they expect? Choose one answer.
Check answer
Question 52 of 106 Which statements about chunked prefill are correct? Select all that apply. Choose all that apply.
Check answer
Objective Use Little's law to bound sustainable load, and choose between queueing, priority, admission control and cancellation when demand exceeds capacity.Question 53 of 106 A 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.
Check answer
Question 54 of 106 Peak 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.
Check answer
Question 55 of 106 Which actions raise goodput when a service is overloaded? Select all that apply. Choose all that apply.
Check answer
Objective Compute 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.Question 56 of 106 Speculative decoding uses acceptance rate α = 0.6, draft length γ = 3 and draft cost ratio c = 0.1. What is the approximate speedup? Choose one answer.
Check answer
Question 57 of 106 What is true of the output distribution under speculative decoding with correct accept and reject sampling? Choose one answer.
Check answer
Question 58 of 106 On 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.
Check answer
Question 59 of 106 A 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.
Check answer
Objective Decide between chunked prefill on shared GPUs and separate prefill and decode pools using KV-transfer arithmetic and the cost of extra machines.Question 60 of 106 An 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.
Check answer
Question 61 of 106 A small team runs one model on two nodes and sees stuttering streams when long prompts arrive. Which step should come first? Choose one answer.
Check answer
Objective Choose between data, tensor, pipeline and expert parallelism for a model and an interconnect, and state the communication each one adds.Question 62 of 106 A 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.
Check answer
Question 63 of 106 A 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.
Check answer
Question 64 of 106 Which statements about parallelism strategies are correct? Select all that apply. Choose all that apply.
Check answer
Question 65 of 106 A 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.
Check answer
Objective Compute weights per GPU, the KV budget and the weights-only decode floor for a candidate layout, and decide whether it serves.Question 66 of 106 A 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.
Check answer
Question 67 of 106 The 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.
Check answer
Objective Explain why a mixture-of-experts model costs compute by active parameters but memory and bandwidth by total parameters as the batch grows.Question 68 of 106 A 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.
Check answer
Question 69 of 106 A 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.
Check answer
Question 70 of 106 A mixture-of-experts deployment shows p99 latency spikes while p50 is steady. What is the most likely cause to check first? Choose one answer.
Check answer
Objective Explain how one resident base model can serve many LoRA adapters, and size an adapter relative to the base.Question 71 of 106 How many parameters does a rank-8 LoRA adapter add to one 4,096 × 4,096 weight matrix? Choose one answer.
Check answer
Question 72 of 106 Which are real costs of serving many LoRA adapters on one resident base model? Select all that apply. Choose all that apply.
Check answer
Objective Choose 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.Question 73 of 106 A 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.
Check answer
Question 74 of 106 Your 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.
Check answer
Question 75 of 106 A 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.
Check answer
Question 76 of 106 A 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.
Check answer
Objective Plan 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.Question 77 of 106 Peak 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.
Check answer
Question 78 of 106 Arrival 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.
Check answer
Objective Choose autoscaling signals that lead rather than lag, account for cold start, and explain why you scale up fast and down slowly with a drain.Question 79 of 106 Which are autoscaling signals that lead rather than lag for an LLM service? Select all that apply. Choose all that apply.
Check answer
Question 80 of 106 A replica shows 95 percent GPU utilization, yet goodput is falling. Why can utilization mislead? Choose one answer.
Check answer
Question 81 of 106 A 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.
Check answer
Question 82 of 106 Every 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.
Check answer
Question 83 of 106 What should happen before a replica is terminated during scale-in? Choose one answer.
Check answer
Objective Choose a routing policy (least-loaded, prefix-aware, adapter-aware, priority tiers) and say which retries are safe and what hedging costs.Question 84 of 106 Request costs on a service vary by about 100 times between short and long ones. Which routing policy fits best? Choose one answer.
Check answer
Question 85 of 106 Which are sound practices for retries and hedging? Select all that apply. Choose all that apply.
Check answer
Objective Design a benchmark that reports goodput at the target on realistic traffic, and explain why closed-loop load and a hot cache mislead.Question 86 of 106 A 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.
Check answer
Question 87 of 106 Three identical benchmark runs against one running server show rising throughput each time. What is the likely cause, and the fix? Choose one answer.
Check answer
Question 88 of 106 Which belong in a trustworthy benchmark report? Select all that apply. Choose all that apply.
Check answer
Objective Work through a latency regression by symptom, alert on symptoms while dashboarding causes, and describe graceful degradation for the main failure modes.Question 89 of 106 After 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.
Check answer
Question 90 of 106 Inter-token latency rose while TTFT stayed flat. Which cause fits best? Choose one answer.
Check answer
Question 91 of 106 Which of these should page an on-call engineer first? Choose one answer.
Check answer
Question 92 of 106 A replica passes its HTTP health check while its GPU is hung and every request on it stalls. What is the fix? Choose one answer.
Check answer
Objective Explain 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.Question 93 of 106 Asked "why is decode memory-bound?", which opening answer is strongest in ninety seconds? Choose one answer.
Check answer
Question 94 of 106 Which is the strongest one-line answer to "what limits how many users one GPU serves"? Choose one answer.
Check answer
Question 95 of 106 Users 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.
Check answer
Objective Work 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.Question 96 of 106 A 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.
Check answer
Question 97 of 106 A 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.
Check answer
Question 98 of 106 Speculative decoding has acceptance rate α = 0.9, draft length γ = 3 and draft cost ratio c = 0.1. What is the speedup? Choose one answer.
Check answer
Question 99 of 106 A 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.
Check answer
Question 100 of 106 Peak 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.
Check answer
Objective Structure a 40-minute inference-platform design answer in seven parts and name the markers of a strong one.Question 101 of 106 In a 40-minute platform design round, which opening is strongest? Choose one answer.
Check answer
Question 102 of 106 Which are markers of a strong platform design answer? Select all that apply. Choose all that apply.
Check answer
Objective Diagnose a described serving symptom by phase and cause, and propose a fix together with its price.Question 103 of 106 After 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.
Check answer
Question 104 of 106 Every 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.
Check answer
Question 105 of 106 A 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.
Check answer
Question 106 of 106 A benchmark showed fine p95 TTFT, and production is four times worse. Which differences could explain it? Select all that apply. Choose all that apply.
Check answer