Safety, Security & Responsible AI·Question 24 of 70Intermediate

How do you treat hallucination as a safety and product risk rather than just a quality issue?

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

Hallucination - confident, fluent fabrication - becomes a safety issue the moment a wrong answer causes real harm: a chatbot inventing a refund policy the company must then honour (Air Canada was held liable), lawyers sanctioned for filing model-fabricated case citations, or medical/legal/financial misinformation acted on by a user. OWASP lists it as LLM07:2026 Misinformation (LLM09 in 2025) for exactly this reason. So you engineer against it as a risk, not just polish it as a quality metric.

Full worked answer

Hallucination - confident, fluent fabrication - becomes a safety issue the moment a wrong answer causes real harm: a chatbot inventing a refund policy the company must then honour (Air Canada was held liable), lawyers sanctioned for filing model-fabricated case citations, or medical/legal/financial misinformation acted on by a user. OWASP lists it as LLM07:2026 Misinformation (LLM09 in 2025) for exactly this reason. So you engineer against it as a risk, not just polish it as a quality metric.

The reason it happens matters for the fix: models are trained (and benchmarks scored) to reward a confident guess over an honest "I don't know," so they're miscalibrated toward fabrication under uncertainty. Countermeasures push the other way:

  • Grounding - RAG with an explicit instruction to answer only from retrieved context and to say when the context doesn't contain the answer. Reduces, doesn't eliminate (the model can still misread context).
  • Citations you verify - require the model to cite source spans, then programmatically check the cited text exists and supports the claim before showing it. Unverified citations are theatre.
  • Abstention / "I don't know" - make refusal-to-answer a first-class, low-friction option in prompts and product flows; some labs specifically train and reward calibrated abstention.
  • Post-hoc groundedness checks - a second model or classifier verifies the answer is entailed by the sources (NLI-style), gating or flagging ungrounded output.
  • Product framing - surface uncertainty, show sources, and keep a human in the loop for high-stakes decisions rather than presenting the model as an oracle.

The interview point: hallucination can't be driven to zero, so responsible design is about bounding its consequences - high-stakes claims get grounding + verification + human oversight, low-stakes ones can tolerate more. Treating it purely as "make the model smarter" misses that the fix is largely systemic.

What a good answer covers

  • Hallucination - confident, fluent fabrication - becomes a safety issue the moment a wrong answer causes…
  • OWASP lists it as LLM07:2026 Misinformation (LLM09 in 2025) for exactly this reason
  • So you engineer against it as a risk, not just polish it as a quality metric
  • The reason it happens matters for the fix
  • Grounding - RAG with an explicit instruction to answer only from retrieved context and to say when the…

Key terms: miscalibrated toward fabrication · Grounding · Citations you verify · Abstention / "I don't know" · Post-hoc groundedness checks · Product framing · bounding its consequences

Interviewer follow-ups to expect

  1. Why does verifying citations require checking the source text, not just that a citation exists?

  2. How would you train or prompt a model to abstain?

  3. Which is safer for a medical FAQ: a fluent guess or an "I can't answer that"?

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