1. Guardrails Concepts2. Policy Testing and Failure Modes
Policy Testing and Failure Modes
๐ Safety and Guardrailsโฑ 10 minโญ 75 XPโจ Hands-on lab
Policy Quality Is Measurable
Safety quality requires regression testing. Build a repeatable suite that includes allowed, risky, and prohibited requests, then score guardrail behavior over time.
Measure false negatives (unsafe content allowed).
Measure false positives (safe content blocked).
Track drift after prompt or model changes.
โจ HANDS-ON LABBuild a Safety Regression Set
โญ +150 XP
Create a red-team style prompt suite and validate expected block/allow outcomes.
1Create a CSV of test prompts and expected outcomes.
2Document block-rate and false-positive metrics.
lab-sandbox โ simulated environment
INFINITY LAB SANDBOX v2.6 โ simulated shell
Type the command for the current objective. Helpers: "hint", "solution", "clear".
$
OBJECTIVE 1 / 2 โ type "hint" if stuck
๐งช Knowledge Check
Press 1-4 to select1 of 2
Which metric is most dangerous in regulated environments?
False negatives on unsafe content
UI load time
Icon size
Git commit frequency
Policy Testing and Failure Modes Tutorial | Safety and Guardrails โ AWS Bedrock Academy