sagelearnai

AI Safety & Guardrails: Concepts

Questions covered

  1. What are guardrails in LLM applications?
  2. What is prompt injection and how do you defend against it?
  3. Direct vs indirect prompt injection?
  4. What is the "lethal trifecta" for AI agents?
  5. How do content moderation systems work for LLM apps?
  6. How do you prevent PII leakage?
  7. What is jailbreaking and how do you defend against it?
  8. How do you measure guardrail effectiveness?
  9. What is "excessive agency" and how do you limit it?
  10. How do you handle hallucination as a safety issue?
  11. What's the role of red-teaming?

This lesson is part of AI & ML Interview Prep. Unlock the full course to read it, take the quiz and track your progress.

See plans →

Last reviewed 2026-11-05.