Walking Through an LLM Feature You Shipped Responsibly
BehavioralModel answerLast updated
Describe a project where you built or shipped an ML or LLM component, covering evaluation, safety nets, failure handling, and where the model's authority ends.
Question
Pick a project you led, or contributed to in a major way, that relied on machine learning or a large language model. The interviewer is not interested in how novel the model was. They want to hear how you made it dependable enough for production.
Cover the following in your answer:
- Why a model at all. What was the problem, what did the non-ML approach achieve (give a number), and why did it stop being enough?
- How you measured quality. What did you evaluate offline, how did you connect it to real-world outcomes, and how did you check that a good-looking score was trustworthy?
- Safety nets. How did you contain bad, slow, or out-of-distribution outputs? What happened when the model was unavailable?
- The boundary. Which decisions did the model influence, and which stayed in deterministic code? Why?
- Cost and latency. What budgets did you work under, and what did you change to meet them?
- What went wrong. Describe a real failure or near miss, how you found it, and what you changed afterward.
- Your role. Which decisions were yours specifically?
Expect follow-ups such as how you would detect drift over time and how the system should behave during a partial outage or a latency spike.
What a good answer looks like
A concise story of roughly five to seven minutes with concrete numbers, a clear personal contribution, and an honest account of a failure. It should treat the model as an unreliable component that needs validation, not as a trusted oracle.
Hints
Hint 1
Open with a measurable baseline for the pre-model approach (accuracy, handle time, cost, error rate) so the improvement has something to be compared against.
Hint 2
Separate what the model proposes from what the system executes: any action that moves money, safety, or irreversible state should pass through deterministic validation or policy code.
Hint 3
Be ready to explain a gap between an offline score and what you saw on shadow or live traffic, and what you changed in your evaluation set because of it.
Hint 4
Pick a failure story with a specific trigger, the layer that caught it, the monitoring signal that surfaced it, and the lasting change you made.
Model answer
Hard Try it yourself first — then compare your approach, complexity and edge cases.
What the interviewer is really testing
This is not a model-architecture question. The interviewer wants to see whether you treat a probabilistic component as untrusted infrastructure. At scale, a 1% error rate means thousands of bad outcomes per day, so they listen for:
- Judgment: you used ML because simpler methods demonstrably plateaued.
- Measurement discipline: offline metrics tie to online outcomes, and you distrust numbers that look too good.
- Defensive design: model output is validated and never has unchecked authority over money, safety, or irreversible actions.
- Operational ownership: you know your tail latency, unit cost, what broke, and what you changed.
- Honesty: you share specific failures, not a flawless launch.
Suggested structure
| Section | Share of time |
|---|---|
| Problem, baseline, why ML | ~10% |
| Constraints and your role | ~10% |
| Evaluation | ~25% |
| Guardrails and the boundary | ~25% |
| A concrete failure | ~15% |
| Results and reflection | ~15% |
Example answer (illustrative)
Situation. "Our support operation received roughly 40k daily contacts about missing or wrong items. A keyword-and-rules classifier routed them and pre-filled refund suggestions. Routing accuracy was about 71%, and free-text like 'got someone else's bag but kept the drinks' broke it. Agents spent a median of 6.5 minutes per ticket, with inconsistent refunds."
Why a model. "We spent a quarter adding rules, and each one fixed one pattern while breaking another. The core difficulty was understanding unstructured language, where an LLM is strong. Crucially, we did not let it decide refunds."
Constraints and role. "I was tech lead on the classification service. Requirements: P99 under 800 ms because it sat in the ticket-open path, a cost ceiling of a few tens of cents per thousand tickets, and zero tolerance for the model directly authorizing money."
Evaluation.
- Golden set: about 3,000 tickets labeled by senior agents, stratified by category, language, and order complexity, double-labeled. Inter-annotator agreement (kappa around 0.8) told us the realistic ceiling.
- Per-class metrics: precision and recall per category, not just accuracy. A false positive on "entire order missing" triggers a large refund, so that class had a high precision floor (for example 97%).
- Offline to online: two weeks of shadow mode, logging model output beside the rules engine without acting on it, then a small A/B test (around 5%) measuring handle time, refund dollars per ticket, re-contact rate, and agent override rate. Override rate became the primary live quality signal.
- Skepticism: an early prompt scored 94% offline but 86% on shadow traffic, because the golden set underrepresented Spanish and mixed-language tickets. We added several hundred such examples and treated the set as a living artifact.
Guardrails and the boundary.
- Output contract: structured JSON with a fixed category enum, item IDs, and a confidence score. Schema failures, or item IDs not present in the real order, were rejected, which removed hallucinated items.
- Deterministic policy engine: the model proposed a category and items. Rules code computed the refund from order data, customer history, and fraud signals, enforced hard caps, and sent anything above a threshold to manual review.
- Confidence gating: low-confidence or "other" results fell back to the legacy router and were flagged to the agent.
- Resilience: a timeout (about 600 ms), a circuit breaker that switched to rules after a sustained error rate, rate limits, and caching by ticket hash so reloads did not re-bill.
- Cost and latency: a small distilled model handled roughly 80% of tickets, with only low-confidence cases escalated to a larger one. P99 landed near 640 ms at roughly $0.31 per 1k tickets.
Failure story. "Two weeks in, a merchant had a combo called 'Entire Family Meal.' The model began labeling 'missing the Entire Family Meal' as ENTIRE_ORDER_MISSING with high confidence. The policy engine compared the claim to the order and saw only one disputed line item, so it routed to manual review. Separately, an alert fired when that category's share rose from 4% to 7% in an hour. No wrong full refunds went out. We fixed it by grounding prompts with the actual line items and adding a 'name collision' slice to the golden set."
Results. Routing accuracy rose from 71% to 91%, handle time fell from 6.5 to 4.8 minutes, agent override rate stayed under 6%, and refund dollars per ticket stayed flat, which we treated as a guardrail metric rather than a goal.
Reflection. "I would build the shadow-mode harness first. It surfaced more real problems than any offline metric."
Follow-ups
How do you detect drift? Monitor three signal types:
- Input drift: language mix, ticket length, new merchants or menu patterns.
- Output drift: category distribution, confidence histograms, schema-rejection rate.
- Outcome proxies: agent override rate and re-contact rate.
Re-label a weekly sample (around 200 tickets) and score the current model. Pin model versions, since a silent vendor update is itself a drift event.
What if latency degrades or the provider has a partial outage? The timeout plus circuit breaker routes traffic to the rules engine automatically, so accuracy drops but nothing blocks. Classifying asynchronously at ticket creation means most tickets are already labeled before an agent opens them. Hedged requests to a secondary region or provider are worth considering if the cost is acceptable.
Common mistakes
- Spending the time on prompts and model choice instead of engineering around them.
- Quoting one accuracy figure with no per-class or cost-of-error breakdown.
- Letting model output trigger irreversible actions directly.
- Having no baseline, so improvement cannot be judged.
- Presenting a flawless rollout, which reads as inexperience or concealment.
- Saying "we" throughout without naming your own decisions.
- Inventing metrics you cannot defend under follow-up questions. Use real numbers or clearly approximate ones.