Courses / AI Engineering: LLMs, RAG and Agentic System Design / Chapter 1
Module 1 · The interview · Chapter 1 of 24
The AI engineering interview
Start here. Next up: Generative AI and how LLMs work.
Part 1 · How the rounds run
Two sources, both self-published
An AI engineering hiring loop tests whether you can build and judge systems that call language models. This chapter describes the rounds public preparation material talks about, how this course scores an answer, a method for design answers and a plan for using the rest of the course.
Two public pages were read for this chapter on 22 November 2026, and both are self-published, so their strength should be stated plainly. The first is a post on techinterview.org, partly first-person advice. It describes a loop of four or five rounds, names round types and themes, takes one company's published process as its reference point, and cites no candidate reports. The second is a resource page on prachub.com. It says its question records are practice material, "not leaked questions or predictions of your exact interview", labels its question sets as candidate-reported, and says formats vary by employer and level. It also describes its own answer framework as a synthesis, not an employer's rubric.
Neither page, as read, shows a scoring sheet from a real hiring process, and this chapter names no company's loop and makes no claim about what any company asks. What the two pages do agree on is a set of round types and themes, and that overlap is the useful part. The scoring in the next lesson is this course's own, built from what a good answer has to show.
The round types
The pages use different words for the same few kinds of round. The table merges them, and adds where this course prepares you.
| Round | What it tests | Where the course helps |
|---|---|---|
| Model-API coding or debugging | Calling a model from code, handling failures, fixing a broken integration or an agent that loops | The model APIs, application patterns and agents chapters; the first and third mock prompts |
| LLM or agentic system design | Turning a vague product need into components, data flow, limits and an evaluation plan | The application patterns and agent design chapters, the case chapters; the second and fourth mock prompts |
| Evals and judging | Deciding whether a change helped, validating a judge, reading a pass rate | The evaluation chapter; the fifth mock prompt |
| Project deep dive | Explaining a system you shipped: your decisions, numbers and mistakes | No chapter can supply this; lesson 3's method works for your own project |
| Product and behavioural | Turning a fuzzy complaint into something measurable you would build | Framing and evaluation in every case chapter |
One round in the first source's table needs a note: a take-home, where you build a small question-answering system over documents, write an evaluation set and report retrieval and faithfulness numbers. It is the whole course in miniature, which is why the RAG and evaluation chapters carry runnable code for it.
The same source says the onsite leans on system design, and that the customer round quietly rejects a large share of people who cleared the coding stages. That is the author's opinion, not a measured rate. It still points at a fair rule for preparation: do not spend all your time on code.
Themes that recur
Reading both pages side by side, these themes appear in each, usually as the first thing a round probes.
- Retrieval: chunking, how many results to fetch, when retrieval is the wrong tool, and measuring it with recall at k and ranking scores.
- Evals: judge models, their biases, and checking a judge against human labels before trusting it.
- Agents: tracing a multi-step run, hard limits on steps and spend, replaying a failed run, and choosing between an agent and a fixed workflow.
- Cost and latency: a stated latency target, smaller models for easy steps, caching, running tool calls in parallel.
- Contracts: structured output, schema validation and what to do when the model breaks the schema.
- Production and security: incidents after a prompt or model change, permissions for tool-using agents, and shipping with weak evidence.
Each theme has a chapter in this course. None of them is a trick question. A prompt such as "an agent loops forever on some inputs" is a request to see how you find a cause from a trace, fix it and prove the fix, which is the same loop as in any debugging round.
Why does this chapter say what the two sources are and are not?
- Both are self-published. One cites no candidate reports and the other calls its questions practice material, so they show themes, not what any company asks.
- Stating that keeps the preparation from resting on claims nobody can check.
Which round does no chapter in the course supply, and what do you do about it?
- The project deep dive, because it is about a system you built.
- Prepare your own project with the design method: its numbers, trade-offs and what you would change.
What does the overlap between the two pages give you?
Part 2 · What each round scores
A six-criterion rubric
An answer is more than its conclusion. Whoever listens is watching for evidence of a way of working, and six things cover most of it. This course uses them as its own rubric, and the final chapter uses the same six, with the same names, to score its prompts. Each criterion is scored 0 (missing), 1 (partly shown) or 2 (clearly shown), so a prompt is worth 12 points.
| Criterion | Weak sounds like | Strong sounds like |
|---|---|---|
| Framing | "I would use a vector database and an agent." | "Who asks, how many questions a day, and what counts as a good answer?" |
| Design | A diagram of every fashionable component | The smallest design that meets the stated need, and a fixed workflow where no agent is needed |
| Grounding | "It would be fast and cheap." | A rough estimate with its assumptions, or a number you measured, and "I do not know" for what you did not |
| Trade-offs | One option presented as the only one | At least one alternative for each big choice and what it costs in quality, latency, money or complexity |
| Failure handling | "The model might sometimes be wrong." | What fails, how you would notice, and what the system does: timeouts, bad output, injected text, permissions, approval |
| Evaluation | "We would try it and see." | A test set from real failures, a metric with its uncertainty, a validated judge and a gate before release |
The weak column is not about being wrong. Each weak answer may be true. It gives the listener nothing to check, nothing to challenge and nothing that shows how you would behave when the situation changes.
What each round weighs
Every round uses all six, but each leans on two. The table states how this course weights them. It is a study aid, not a statement about any employer's process.
| Round | Leans on | Why |
|---|---|---|
| Model-API coding | Failure handling, Grounding | The code must run, and it must survive bad input, which you show by running it |
| System design | Framing, Trade-offs | The problem is open, so the first minutes and the alternatives matter most |
| Evals and debugging | Evaluation, Grounding | You are asked to prove a claim from numbers or a trace |
| Project deep dive | Grounding, Trade-offs | Your own numbers and your own rejected options |
| Product and behavioural | Framing, Evaluation | A fuzzy complaint becomes a metric and a way to measure it |
Two consequences follow. First, a strong design answer that never names a number or a metric loses points in the criteria the round leans on, however good the diagram is. Second, a coding answer that works on the happy path and says nothing about empty, malformed or slow responses loses most of what the round is for.
Using the rubric on yourself
The rubric is most useful when you score your own answers. Say an answer aloud against a timer, record it if you can, then go through the six criteria and give each 0, 1 or 2 with one sentence of evidence. A 1 means you said something but not enough to check. A score of 0 on a criterion tells you which chapter to reread.
Be strict about evidence. "I would evaluate it" earns 1 at most. A 2 needs the test set, the metric and what result would change your mind. Also score the order. A design that arrives before any question has been asked has framing of 0 even if the design is good.
The totals are for you. This course does not claim that any score corresponds to passing a real round, because no public source gives such a threshold. Treat anything below two points on a criterion as a prompt to practise that criterion, and watch the trend across mock attempts, not a single total.
Why can a weak answer be true?
- The weak examples are vague, not false. They give a listener nothing to test and show no method.
- The rubric rewards checkable specifics: estimates, alternatives, failure paths, metrics.
A candidate presents a good design before asking any question. Which criterion suffers, and how much?
- Framing, which scores 0 or at most 1 because the design came before the problem was clarified.
- The design itself can still score well, since the criteria are scored separately.
Why does the rubric avoid giving a passing total?
- No public source reviewed here publishes a passing threshold or a scoring sheet from a real process.
- A number invented for the purpose would look like evidence and would not be.
Part 3 · A method for agentic design answers
Eight stages in forty-five minutes
A design prompt is open on purpose, so the first risk is not a wrong answer but an unfinished one: twenty minutes on the model call and none on failures or evaluation. A fixed order protects you from that. The method below has eight stages and a time budget for a 45-minute round. It follows the order in which a real design decision depends on the previous one: you cannot choose limits before you know the tools, or measure before you know what success is.
| Stage | Minutes | What you say | Earns |
|---|---|---|---|
| 1. Clarify | 4 | Restate the task. Ask who uses it, how many tasks a day, what data it touches and what a wrong answer costs. Say your assumptions aloud | Framing |
| 2. Metric | 3 | One success metric a user would recognise, and one guard metric such as cost per task or latency, and how each is measured | Framing, Evaluation |
| 3. Design | 8 | Start with a fixed workflow and justify any step where the model must choose. Name the data, retrieval and model calls, with a rough estimate | Design, Grounding |
| 4. Parts | 8 | Tools with their risk tier, memory, and which orchestration pattern, only if the task needs it | Design, Trade-offs |
| 5. Guards | 7 | Permissions, approval before risky actions, untrusted input, limits on steps and spend, and what each failure looks like | Failure handling |
When the requirement changes
The listener will usually change something midway: more users, a stricter latency target, a new data source, a rule that a human must approve. The method handles this with a back edge. You return to the earliest stage the change touches, say so, and redo only the stages that depend on it. A change to the metric goes back to stage 2. A new requirement on the design goes back to stage 3.
Watch for the answer returning to design when a requirement changes
Read it as steps
The scene shows one change. The requirement arrives at stage 5, so the answer goes back to design, adds an approval step, and then runs the later stages again. It does not restart from the beginning. Saying "that changes the design, so let me redo the tools and the guards" tells the listener that you can adapt, and it is quicker than defending the first design.
An answer skeleton
Keep this skeleton on paper, or in your head, and fill it as you speak. It has one line per decision, and an empty line is a reminder that a stage is missing.
CLARIFY Task: Users: Volume/day:
Data touched: Wrong answer costs:
METRIC Success: Guard (cost or latency):
DESIGN Workflow or agent: Because:
Flow: input -> ... -> output
PARTS Tools (tier): Memory: Pattern:
GUARDS Needs approval: Untrusted input:
Limits: steps ..., spend ...
Failure -> behaviour:
EVALS Test set from: Checks: Judge:
Gate before release:
COST Tokens per task: Tasks per day:
Latency target: One saving:
WRAP Riskiest assumption: First test:An answer skeleton to copy. Blanks are for your own answers.
Two habits make it work. Say the stage name aloud before you start it, so the listener can follow and can interrupt at the right point. And put a number in stages 3, 5 and 7: a request rate, a limit and a token count. A rough number with its assumption scores as Grounding. A confident adjective does not.
Why does the method put guards and evals before cost?
- A system that is unsafe or unmeasured is not ready for a cost discussion, and these are the stages candidates most often run out of time for.
- Cost still gets five minutes, with a number.
The listener adds a requirement while you are on stage 5. What do you do?
- Say what it changes, go back to the earliest stage it touches, and redo only the stages that depend on it.
- Do not restart, and do not defend the first design.
Why start with a fixed workflow instead of an agent?
- A fixed workflow is simpler to test, cheaper and more predictable, so a model-driven step has to earn its place.
- The design stage asks you to justify each step where the model chooses.
Part 4 · Common mistakes
Mistakes that cost points
Most lost points in practice answers come from a short list of habits. Each one below names the criterion it costs and what to do instead. Several are measured in later chapters of this course, and the examples point to those runs: come back to them once you have read the chapters.
| Mistake | Costs | Instead |
|---|---|---|
| Naming tools before asking a question | Framing | Spend the first four minutes on users, volume and the cost of a wrong answer |
| Reaching for an agent when a fixed workflow works | Design, Trade-offs | Draw the workflow first and add model-chosen steps only where the path cannot be fixed |
| Giving no numbers | Grounding | Estimate. In the assistant case, 125 messages a day is 0.31 a minute at the busiest hour, so the design effort goes elsewhere |
| Quoting a figure you did not measure | Grounding | Call it an assumption, give its source or say you would measure it |
| Treating the prompt as a guard | Failure handling | Put limits in code. In the assistant case the model followed a planted instruction in 5 of 5 runs, one model and one page |
| Trusting a pass rate or a judge unchecked | Evaluation | Report the interval. In the evaluation chapter, 20 passes in 20 cases still allowed a true rate near 84 per cent |
| Listing failures without behaviour | Failure handling | For each failure say how it is noticed and what the system does next |
Habits that help
The opposite of each mistake is a habit, and a few are worth practising until they are automatic.
- Say the assumption. "I will assume 5,000 documents and a few hundred users" gives the listener something to correct.
- Name the alternative. For each big choice, one sentence: "I would use X, not Y, because of Z, at the cost of W."
- Name the unknown. "I do not know the latency of that provider here. I would measure it with a small run." is a strong sentence, not a weak one.
- Close the loop on failure. Every failure you raise gets a detection and a response, even if short.
- Finish. A complete answer at modest depth beats a deep answer to half the problem.
Practising these means saying answers aloud. Reading chapters builds knowledge, and speaking builds the habit of ordering it under time pressure, which is the difficult part of the round.
Recovering from a slip is a skill of its own. If you realise you skipped a stage, say so and go back: "I have not covered failures yet, so let me do that now." If you gave a wrong number, correct it aloud and say what changes downstream. If you are stuck, state what you know, name the assumption you will make to move on, and carry on. A visible correction shows the checking habit that the Grounding and Failure handling criteria are about, so it earns points and does not lose them.
Why is "I do not know, and here is how I would measure it" a strong answer?
- It separates what you know from what you assume, and it shows a method, which scores in Grounding.
- Inventing a figure risks a challenge you cannot answer.
What should you say when you cite a result from a run in this course?
- That it is one model, one set of runs and one data set, not a general rate.
- The listener can then weigh it correctly.
Part 5 · A study plan
A day-by-day plan
This plan reads every chapter in course order, in 14 days of about an hour of reading each, then ends with a full mock attempt on day 15. Reading time is 751 minutes in all, about 12.5 hours, taken from the minutes each chapter declares. Running and changing the code takes longer than reading, so treat the minutes as a floor. At five study days a week, the 15 days take 3 weeks.
Each day also has a drill of about 20 minutes. The drills rotate through five kinds: explain a trade-off aloud, break an example with a bad input, estimate a system, give a timed design answer, and review the day before. A mock prompt is added on the first day after the chapters named behind it in the mock's first lesson have been read. Security and evaluation come late in the course, so the last reading day carries four prompts: split them over two days if you need to. This plan is computed from the chapter minutes and is recomputed whenever they change.
| Day | Read | Reading min | Practice |
|---|---|---|---|
| 1 | this chapter, fundamentals | 61 | Explain it: say the main trade-off aloud in five minutes, without notes. |
| 2 | prompting, model APIs | 61 | Break it: rerun one example with a bad input, predicting the result first. |
| 3 | vector databases, application patterns | 58 | Estimate it: one back-of-envelope estimate for a system from the chapter. |
| 4 | RAG, fine-tuning | 66 | Design it: a 20-minute timed answer with the eight stages, scored with the rubric. |
The rest of the plan
| Day | Read | Reading min | Practice |
|---|---|---|---|
| 9 | web agent case | 37 | Design it: a 20-minute timed answer with the eight stages, scored with the rubric. |
| 10 | multimodal build | 38 | Review it: reread yesterday's answer and fix its weakest criterion. |
| 11 | image case, diagnosis case | 67 | Explain it: say the main trade-off aloud in five minutes, without notes. |
| 12 | assistant case | 45 | Break it: rerun one example with a bad input, predicting the result first. |
| 13 | evaluation, security | 62 | Estimate it: one back-of-envelope estimate for a system from the chapter. |
| 14 | production | 39 | Mock prompts 2 to 5, timed. Design it: a 20-minute timed answer with the eight stages, scored with the rubric. |
| 15 | none | 0 | All five mock prompts back to back, 110 minutes timed, scored with the rubric |
Readweb agent case
Reading min
A one-week plan
With a week, work from the mock outwards. Attempt the five mock prompts cold on day 1, and score yourself honestly. Then read only the chapters behind the criteria you scored lowest, and retake the mock on the last day.
| Day | Do |
|---|---|
| 1 | Read this chapter. Attempt all five mock prompts, timed, and score each with the six criteria |
| 2 to 5 | Read the chapters from the table below for your two lowest criteria, then redo the prompts where those criteria scored 0 or 1 |
| 6 | Retake the whole mock, timed, and compare scores |
| 7 | Rest, or reread one chapter you still find weak |
| If this criterion is low | Read |
|---|---|
| Framing | Agent design, and the requirements lesson of the assistant and parking cases |
| Design | Agent design, agents, RAG |
| Grounding | Model APIs for usage and cost, vector databases for memory sizing, production for latency |
| Trade-offs | Fine-tuning, RAG, production |
| Failure handling | Agents, security, and the web agent case for guards |
| Evaluation | Evaluation, and the retrieval measures in RAG |