What is asked in an LLM Inference Engineer interview?
- Authors
- Name
- Amit Shekhar
- Published on
An LLM Inference Engineer interview asks how we make a model answer faster and cheaper, with rounds on inference fundamentals, optimization depth, a practical build with a coding agent, serving system design, and how we prove that a speedup is real.
In this blog, we will learn about what is asked in an LLM Inference Engineer interview. We will also see the rounds in order, what the recruiter screen checks, how the practical build round works with a coding agent, what the fundamentals and optimization rounds test, how the serving system design round is judged, what the behavioral round looks for, and the common mistakes we must avoid.
We will cover the following:
- The rounds in order
- Recruiter screen
- Practical build round
- Inference fundamentals round
- Optimization depth round
- Serving system design round
- Behavioral round
- Common mistakes
I am Amit Shekhar, Founder @ Outcome School, I have taught and mentored many developers, and their efforts landed them high-paying tech jobs, helped many tech companies in solving their unique problems, and created many open-source libraries being used by top companies. I am passionate about sharing knowledge through open-source, blogs, and videos.
I teach AI and Machine Learning at Outcome School.
Let's get started.
The rounds in order
An LLM Inference Engineer makes model serving fast and cheap. Serving means running a trained model on a server so that many users can send prompts and get answers. So, every round in the interview checks one thing: can we make the same model answer more users, in less time, on fewer GPUs, without changing what the model says.
Most interviews follow this order: a recruiter screen, a practical build round, an inference fundamentals round, an optimization depth round, a serving system design round, and a behavioral round.
Recruiter screen
The recruiter screen is a short call of 20 to 30 minutes. It checks whether we have done inference work before, and whether we can talk about it in numbers. The recruiter is not an engineer, so the answers must be simple.
Sample question: "Tell me about a time you made a model serve faster."
Model answer: "We were serving a 7 billion parameter model to a chat product. The first response took 2 seconds and the server handled 4 requests at a time. We enabled continuous batching and quantized the model to 8-bit. After that, the first response took 400 milliseconds and the server handled 32 requests at a time on the same GPU."
Here, we can notice that the answer has a before number, an after number, and the method.
Practical build round
This is the coding round. The interviewer gives us a small serving setup, a coding agent such as Claude Code, and one goal: make it faster, and prove it.
A typical task: "Here is a script that serves a small model and answers one request at a time. Make it handle many requests at once, and show me the gain."
First, we run the setup as it is and measure it. We record tokens per second, which is how many tokens the server produces every second, and latency, which is how long one user waits for a response.
Then, we direct the coding agent to enable batching, which means grouping many requests together so that the GPU works on all of them in one pass instead of one by one. We tell the agent: "Switch the serving loop to continuous batching with a maximum batch size of 32. Do not change the model, the tokenizer, or the sampling settings."
After that, we review the diff that the agent produced, and we check that the output for a fixed prompt is still the same, because a change that alters the answers is not a valid speedup.
Finally, we run the same load test again and compare. We report: "Before: 18 tokens per second, 1.9 seconds to first token. After: 210 tokens per second, 350 milliseconds to first token, same outputs on all 20 test prompts."
A second common task is quantization, which means storing the model's weights in smaller numbers, such as 8-bit integers instead of 16-bit floating point, so that the model takes less memory. Here, we must show both the speed gain and the quality loss on a small evaluation set.
The interviewer watches how we work, not only what we produce: whether we measure before changing anything, whether we read the agent's code before trusting it, and whether we check correctness along with speed.
A quick note for you
No matter which tech domain you work in, get familiar with these topics:
- LLM
- RAG
- MCP
- Agent
- Fine-tuning
- Quantization
We put it all together in one video:
AI Engineering Explained: LLM, RAG, MCP, Agent, Fine-Tuning, and Quantization
No need to stop reading - bookmark it and watch later when you get time. Future you will thank you.
Now, let's get back to the topic.
Inference fundamentals round
This round is a conversation about how inference works inside.
Sample question: "What is the difference between prefill and decode?"
Model answer: "Prefill is the first phase, where the model reads the whole prompt at once and computes its attention state for every token in the prompt. Decode is the second phase, where the model generates one new token at a time, each one depending on all the earlier ones."
Sample question: "Why is decode memory bound?"
Model answer: "In every decode step, the GPU must read all the model weights from memory to produce one token. The arithmetic for one token is small, but the weights are huge, so most of the time goes into moving weights from memory to the compute units. Decode is limited by memory bandwidth, which is how fast data can move in and out of GPU memory. Batching helps because the same weight read now serves many tokens at once."
Sample question: "What is the KV cache and how big is it?"
Model answer: "During attention, every token produces a key vector and a value vector. The KV cache stores these vectors for all earlier tokens so that each new token does not recompute them. Its size per token is 2 * number of layers * number of key-value heads * head dimension * bytes per value. For a model with 32 layers, 8 key-value heads, a head dimension of 128, and 16-bit values, one token costs 128 KB. A 4000 token conversation then costs 512 MB for one user. With 64 such users, the cache is bigger than the model weights."
Sample question: "What is continuous batching?"
Model answer: "Static batching waits for a full batch, runs all of them, and returns only when the longest one finishes, so short requests sit idle. Continuous batching schedules at the token level. The moment one request finishes, a new one takes its slot in the next decode step."
Sample question: "What problem does paged attention solve?"
Model answer: "Each request's KV cache was stored as one continuous block sized for the maximum possible length, which wasted most of it. Paged attention splits the KV cache into small fixed-size pages and gives a request a new page only when it needs one. More requests fit on the GPU, and requests that share the same prefix can share the same pages."
Want to become an LLM Inference Engineer?
These are the skills this role needs, and we teach them in our AI and Machine Learning Program at Outcome School:
- KV Cache
- Paged Attention
- Continuous Batching
- Speculative Decoding
- Quantization and Optimizations
- vLLM
We take you from the fundamentals to building real AI systems, step by step.
Optimization depth round
This round tests whether we understand the trade-offs, not only the names.
Sample question: "What are the trade-offs of quantization?"
Model answer: "Lower bits means less memory and faster weight reads, so decode gets faster. The cost is a small quality loss, which grows as we go from 8-bit to 4-bit. We always run the evaluation set after quantizing and compare it to the baseline."
Sample question: "How does speculative decoding work and when does it fail?"
Model answer: "A small draft model guesses several next tokens quickly. The big model then checks all of those guesses in one forward pass, which costs about the same as producing one token. Every correct guess is accepted, and the first wrong one is replaced. It fails when the draft model guesses poorly, because then most guesses are rejected and the draft work is wasted."
Sample question: "Tensor parallelism versus pipeline parallelism?"
Model answer: "Tensor parallelism splits every layer across GPUs, so each GPU computes a slice of the same matrix multiplication and they exchange results after every layer. It cuts the latency of each step but needs a fast link between the GPUs inside one machine. Pipeline parallelism gives each GPU a group of whole layers, and the request flows through them one stage after another. It needs less communication, so it works across machines, but one request still waits for every stage in turn."
Sample question: "When is a custom CUDA or Triton kernel worth writing?"
Model answer: "A kernel is a small program that runs on the GPU. CUDA is the low level language for writing one, and Triton is a Python-like language that makes writing one easier. We write a custom kernel only after the profiler shows that one operation dominates the time and the existing libraries cannot fuse it, which means merging several small operations into one kernel so that data stays in fast on-chip memory between steps. We direct the coding agent to write the first version and test it against the reference implementation for correctness before we measure speed."
Sample question: "How do you read a profiler trace and a roofline?"
Model answer: "A profiler such as Nsight records what the GPU did at every microsecond. A roofline is a chart with arithmetic intensity on the x-axis, which is how many math operations we do per byte of memory we move, and achieved speed on the y-axis. The roof has a sloped part where we are memory bound and a flat part where we are compute bound. If our decode kernel sits under the sloped part, more compute will not help and we must cut memory traffic."
Stay updated: Subscribe to our newsletter to get our latest AI and Machine Learning blogs straight to your inbox.
Serving system design round
In this round, we design a serving system on a whiteboard.
Sample question: "Serve one 70 billion parameter model to 10,000 concurrent users with a time to first token under 500 milliseconds, and stay within a fixed GPU budget. Design it."
First, we work out the memory. A 70 billion parameter model in 16-bit needs about 140 GB for weights alone, so it does not fit on one GPU. We quantize to 8-bit to bring it to 70 GB, and we use tensor parallelism across the GPUs inside one machine. The remaining memory on each machine goes to the KV cache.
Then, we pick the serving engine, such as vLLM, with continuous batching and paged attention turned on. We set a maximum batch size that keeps the time to first token under the target, because a bigger batch raises throughput but also raises the wait for each user.
After that, we add caching. Prefix caching stores the KV cache for a shared system prompt, so every request that starts with the same instructions skips that part of its prefill.
Then, we add routing. A router in front of the machines sends each request to the machine that already holds its prefix in cache, and keeps the load even.
Finally, we add fallbacks. If a machine fails, the router retries on another one. If the queue grows beyond the latency target, we route the overflow to a smaller, cheaper model instead of making everyone slow.
When the interviewer halves the GPU budget, we answer with trade-offs: 4-bit quantization with a quality check, a smaller maximum context length, and a stricter rate limit per user.
Behavioral round
The behavioral round asks how we work, especially with coding agents and with numbers.
Sample question: "How do you use a coding agent for kernel and configuration work?"
Model answer: "We give the agent the exact shapes, the reference implementation, and the correctness test before it writes anything. For configuration, we ask it to change one setting at a time and to log each run. We review every diff."
Sample question: "How do you verify that a speedup is real?"
Model answer: "We run the same load test before and after on the same hardware, with the same prompts and sampling settings. We compare tokens per second, time to first token, and the tail latency, which is the wait of the slowest 1 percent of requests. We check that the outputs match the baseline on a fixed prompt set."
Sample question: "Tell me about a time an optimization broke correctness."
Model answer: "We fused two attention kernels and the throughput rose by 30 percent. But, on long prompts, the model started repeating itself. The fused kernel had a precision issue in the softmax on sequences above 4096 tokens. We rolled it back, added long sequence cases to the correctness test, fixed the kernel, and shipped it again."
Common mistakes
Most of the time, we do mistakes in these interviews in the same few places.
- Changing the code before measuring the baseline, so there is no proof of a gain.
- Reporting throughput alone. The interviewer always asks for latency next.
- Trusting the coding agent's output without reading the diff and running a correctness check.
- Saying "we need a custom kernel" before the profiler shows a hot spot.
- Calling a speedup real when the outputs changed.
Now we must have understood what is asked in an LLM Inference Engineer interview, what each round tests, and how we prepare for it.
Frequently Asked Questions
Can we use a coding agent in an LLM Inference Engineer interview?
Yes. In the practical build round, the interviewer gives us a small serving setup, a coding agent such as Claude Code, and one goal: make it faster and prove it. The interviewer watches whether we measure before changing anything, read the code of the agent before trusting it, and check correctness along with speed.
Should we suggest a custom kernel to show depth in the interview?
No. Saying that we need a custom kernel before the profiler shows a hot spot is a common mistake. A custom CUDA or Triton kernel is worth writing only after the profiler shows that one operation dominates the time and the existing libraries cannot fuse it.
Is a speedup valid if the model outputs change?
No. A change that alters the answers is not a valid speedup. Every round checks whether we can make the same model answer more users, in less time, on fewer GPUs, without changing what the model says. So, we check that the outputs for a fixed prompt set still match the baseline.
What do we say when the interviewer cuts the GPU budget in system design?
We answer with trade-offs. We can move to 4-bit quantization with a quality check, set a smaller maximum context length, and apply a stricter rate limit per user. The 4-bit quantization comes with a quality check because the quality loss grows as we go from 8-bit to 4-bit.
That's it for now.
Thanks
Amit Shekhar
Founder @ Outcome School
You can connect with me on:
Follow Outcome School on:
