Tell me about a time you significantly cut inference costs. What was the approach and the tradeoff?
Type it the way you would explain it to an interviewer. A few sentences is enough; you can't break anything.
Model answer: the part to lead with
What they're probing: whether you treat cost as an engineering dimension with measurement and tradeoffs, or discovered it when finance escalated. LLM features are often margin-negative as first shipped; the ability to fix that without quality collapse is directly bankable, and they want proof you verified quality didn't collapse.
Full worked answer with diagram
What they're probing: whether you treat cost as an engineering dimension with measurement and tradeoffs, or discovered it when finance escalated. LLM features are often margin-negative as first shipped; the ability to fix that without quality collapse is directly bankable, and they want proof you verified quality didn't collapse.
Strong answer structure: the baseline (cost per request/user/month - knowing these numbers cold is half the signal) → where the money actually went, from measurement not guessing → interventions in order of effort-to-impact → quality verification via evals → final numbers and what you traded away.
Example sketch: "Our assistant ran ~$0.11 per conversation; at growth projections that was untenable. Token accounting first: 70% of spend was input tokens, and most of that was re-sending a bloated system prompt plus full history every turn. Cheap wins first: prompt caching on the static prefix and trimming a 3k-token prompt to 1.1k - that alone cut ~40% with zero quality change on our 400-case eval. Then routing: a lightweight classifier sent the ~60% of queries that were simple lookups to a model roughly 10x cheaper, keeping the frontier model for multi-step reasoning. The router's misroutes cost us about 2 points on eval scores for complex queries initially; tightening the routing threshold traded some savings back for quality. Landed at ~$0.03 per conversation - a 70%+ reduction - with eval scores within a point of baseline. The eval suite is what made this safe; without it every optimisation is a gamble."
Pitfalls: no baseline numbers ("it was expensive... we made it cheaper"); optimising without a quality gate - "we switched to a cheaper model" without evals is the story of a silent regression; jumping to exotic fixes (fine-tuning, self-hosting) before free ones (caching, prompt hygiene); not knowing the input/output token cost asymmetry.
Worth sketching. The order is the answer: it shows you measured before cutting and did the free things first.
flowchart TD
A["$0.11 per conversation"] --> B["Token accounting:<br/>70% is input tokens"]
B --> C["Cache the static prefix,<br/>trim prompt 3k to 1.1k"]
C -->|"-40%, eval flat"| D["Route 60% of queries<br/>to a 10x cheaper model"]
D --> E{"Eval within 1 point<br/>of baseline?"}
E -->|"no, complex queries -2"| F["Tighten routing threshold,<br/>trade savings back"]
F --> E
E -->|"yes"| G["$0.03 per conversation"]
What a good answer covers
- What they're probing: whether you treat cost as an engineering dimension with measurement and tradeoffs,…
- LLM features are often margin-negative as first shipped; the ability to fix that without quality…
- Strong answer structure: the baseline (cost per request/user/month - knowing these numbers cold is half…
- Example sketch: "Our assistant ran ~$0.11 per conversation; at growth projections that was untenable
- Token accounting first: 70% of spend was input tokens, and most of that was re-sending a bloated system…
Key terms: What they're probing · Strong answer structure · Example sketch · Pitfalls
In the glossary: Prompt caching · Router · Fine-tuning
Interviewer follow-ups to expect
At what scale does self-hosting beat API pricing?
What would you try next for another 50%?
Worked answer from AI-Engineer-Interview-Questions by Om (MIT), reformatted for LLM Prep · answer text last updated 6 November 2026 · scoring and review schedule by LLM Prep