Skip to content
Inference Academy

LLM inference engineering interview questions

66 questions that come up in inference, ML infrastructure and LLM serving interviews, each with a model answer, the numbers to back it up and the follow-ups an interviewer is likely to ask next. Free to read, with links to the lessons that teach each topic in depth.

Free13 topicsModel answers and follow-ups

Prefill vs decode

5 questions

All prefill vs decode questions →

KV cache

5 questions

All kv cache questions →

Roofline maths

5 questions

All roofline maths questions →

Batching and continuous batching

5 questions

All batching and continuous batching questions →

PagedAttention

5 questions

All pagedattention questions →

Quantisation

5 questions

All quantisation questions →

Speculative decoding

5 questions

All speculative decoding questions →

Multi-GPU serving

5 questions

All multi-gpu serving questions →

Engine internals: vLLM, SGLang, llama.cpp

5 questions

All engine internals: vllm, sglang, llama.cpp questions →

Benchmarking latency vs throughput

5 questions

All benchmarking latency vs throughput questions →

FlashAttention and attention kernels

4 questions

All flashattention and attention kernels questions →

Structured output

6 questions

All structured output questions →

Mixture of experts

6 questions

All mixture of experts questions →

How to use these

Read the question, answer it out loud or on paper first, then compare with the model answer. The follow-ups are where interviews separate people who have memorised terms from people who can reason about the system, so practise those too. For the full background, work through the inference engineering roadmap or the Inference Engineering course.