Interviews

LLM System Design Interview: How to Prepare (2026)

The LLM system design interview looks like a normal system design round until about minute five, when you realise the load balancer isn't the hard part. You're designing around a probabilistic component that can be wrong, slow, and expensive all at once — and the interviewer wants to see whether you've internalised that or whether you're going to sketch a database and call it done.

I've sat on both sides of this. The candidates who do well aren't the ones who name-drop the most vector databases. They're the ones who treat retrieval, evaluation, and cost as first-class parts of the design instead of afterthoughts. Below is how the round actually differs, a framework you can reuse under pressure, a worked example, and the stuff people forget until the interviewer drags it out of them.

How this differs from a classic system-design interview

In a classic round, the model of computation is deterministic. You reason about queries per second, sharding, replication, consistency, caches. Given the same input, the system returns the same output, and correctness is basically a given — you're optimising for scale and availability.

An LLM system design interview keeps all of that and then hands you a component that's probabilistic. Same prompt, different day, different answer. It can hallucinate a confident wrong answer. Its "latency" is measured in tokens generated, not just a round-trip. And every call costs real money that scales with input and output length. So the design questions shift:

If you walk in treating the LLM as a black box that "just answers," you'll design a system that works in the demo and falls over in production. Interviewers know this, and it's exactly what they're probing.

A framework you can reuse

Under pressure, having a script beats improvising. Here's the seven-step spine I'd walk through out loud for almost any LLM design question. Say the steps, then go deep where the interviewer leans in.

You won't spend equal time on all seven, and you shouldn't. But naming them signals that you know the whole surface, and then you can dive where it matters.

A worked example: design a RAG chatbot over a company's docs

Let's walk the framework on the most common prompt you'll get: design a chatbot that answers employee questions from an internal documentation set. If retrieval feels shaky, my RAG interview questions guide drills the retrieval half harder than I can here.

Clarify first. I'd ask: how many docs, and how often do they change? How many users and queries per day? What's the latency budget — is a two-second answer fine? What's the accuracy bar, and what's the cost of a wrong answer (an HR policy mistake is worse than a cafeteria-menu mistake)? Should it say "I don't know" rather than guess? Say the docs are tens of thousands of pages, updated daily, a few thousand queries a day, and wrong answers are costly. That shapes everything.

Data and retrieval. Offline ingestion: pull docs, chunk them along natural structure (headings, sections) at a few hundred tokens with slight overlap, embed each chunk, store vectors plus source text in a vector database. Online: embed the question, retrieve top-k, run a re-ranker so the best chunk isn't buried at position eight, and pass the survivors to the model. I'd go hybrid — dense vectors plus keyword search — because internal docs are full of exact terms (error codes, system names) that dense retrieval alone whiffs on.

Model and prompt. A capable hosted model, prompted to answer only from the retrieved context and to say it doesn't have the information when the context doesn't cover the question. Include citations to source chunks so answers are verifiable. For volume I'd consider routing easy questions to a cheaper model and escalating hard ones.

Serving. Stream the answer so it feels instant. Cache question embeddings and cache answers for common, stable questions (with a short TTL so a doc update doesn't serve stale policy). Wrap the model call in a timeout with a graceful fallback message.

Evaluation. Build a golden set of question → correct-source pairs. Measure retrieval hit rate (is the right chunk even showing up?) and generation faithfulness (did the answer stick to the sources or invent?). Wire up thumbs-up/down in the UI and funnel every thumbs-down into the golden set. Now I can change chunking or swap a model and watch a number move instead of arguing about vibes.

Cost and monitoring. Track cost per query, token usage, p50/p95 latency, retrieval hit rate, and the rate of "I don't know" responses (a spike means retrieval or ingestion broke). Alert on cost and latency, not just errors.

Safety and failure modes. Strip and filter user input to blunt prompt injection, never let retrieved content override the system instruction blindly, and moderate output. If retrieval returns nothing relevant, the bot says so instead of hallucinating. If the model is down, a friendly fallback and a logged incident — never a fabricated policy.

Notice I never had to invent a fictional benchmark or company. Every claim is a design decision you can defend, which is exactly the tone that lands.

The things candidates forget

These are the gaps I watch people fall into, in rough order of how often it happens:

You don't need to cover all five in depth. But leaving all of them out is how a fine-sounding design quietly fails the round.

How to practice

Reading a framework isn't the same as producing one at a whiteboard while someone interrupts you. A few things that actually move the needle:

Here's a compact prompt set you can run against yourself or a friend:

Sample prompts to rehearse aloud

Design a chatbot over 50,000 internal support docs that must cite its sources.

Design an agent that can read a user's calendar and book meetings. Where does it break?

Your RAG bot's answers got worse after a model upgrade. Walk me through diagnosing it.

Cut the cost of this system by half without wrecking quality. What do you touch first?

The goal isn't a perfect answer — it's showing you reason about a probabilistic system like an engineer.

FAQ

What's the difference between an LLM system design interview and a normal one?
The core difference is the probabilistic model at the centre. A normal round is about scaling a deterministic system — QPS, sharding, caching, consistency. An LLM round keeps all that but adds correctness you can't assume (so you design evaluation), knowledge that has to be sourced (retrieval or tools), token-shaped latency (streaming), and per-query cost that's fair game to ask about. If you treat the model as a black box, you'll miss most of what's being tested.
Do I need to memorise specific vector databases or frameworks?
No. Interviewers care that you understand the pipeline — chunking, embeddings, retrieval, re-ranking, evals — not that you can recite product names. Frameworks and databases are swappable details you can mention as options. Betting your prep on one specific tool is risky because they change fast and you'll look shallow if you can't reason underneath the tool.
What do candidates get wrong most often?
They forget evaluation and cost. Most people design an elegant retrieval pipeline and never say how they'd measure whether it works or what one query costs. Bringing up a golden set, faithfulness metrics, and a rough cost-per-query model unprompted is the fastest way to sound senior instead of like someone who read a tutorial.
How long should I spend on each part of the framework?
Clarify requirements fast, then let the interviewer steer. Name all seven steps so they know you see the whole surface, but go deep only where they lean in — usually retrieval quality, evaluation, or cost. Spending twenty minutes on load balancing while ignoring how you'd know the answers are correct is a classic way to run out of time on the parts that matter.
How is this different from a RAG interview?
A RAG interview drills the retrieval half in depth — chunking strategies, hybrid search, re-rankers, faithfulness. An LLM system design interview zooms out to the whole system: model choice, serving and streaming, cost, monitoring, and safety, with RAG as one component. Strong retrieval knowledge is a prerequisite, but system design asks you to assemble and defend the entire architecture.

Open-source companion: Awesome AI Engineer Interview Questions — 105 curated questions on GitHub, free.