5.1 — Guardrails, Safety Controls, and the Surface a Risk Belongs To
CCAR-P Domain 5 · Task 5.1
What You Need to Know
A guardrail is a control that stops a Claude system causing harm. Each risk belongs on the one surface that can hold it.
Five Control Surfaces
- Input controls — screen what enters (injection, PII, out-of-scope)
- Instruction-layer — system prompt scope, refusal policy, escape hatch
- Capability controls — which tools exist, credentials, second-party approval
- Output controls — schema/policy checks, blocked claims, citations, redaction
- Architectural removal — decline to build the capability at all
Key Principles
- An instruction is not an access control. If a capability is wired, a prompt not to use it is only a request.
- Untrusted input is everything the system did not author — retrieved docs, tool results, uploads (indirect injection).
- A guarantee has only two homes: the output gate, or a capability you never built.
- Defence in depth — layers independent so one failing does not put harm in front of a user. Removal still wins for irreversible external actions.
Structural Mitigations for Untrusted Input
- Untrusted content arrives inside tool results with declared origin
- System prompt states tool content is data, not commands
- Tool output screened before the model acts
- Access scoped so a successful injection has somewhere small to go
Exam Traps
- Strengthening the system prompt to forbid a behaviour the system remains wired to perform
- Moving to a more capable model to stop policy violations or resist injection
- Logging / periodic review against a “must never reach a user” requirement
- Adding confirmation/approval in front of a capability the role never needs
Check your understanding
Practice Scenario
🔒 This practice scenario is part of Skillmarked Pro
The lessons stay free. Pro unlocks the other 32 CCAR-P practice scenarios and the 63-question timed mock exam, plus everything for every other exam.
Cancel anytime. Or €199 a year, which saves 17%.
Not sure yet? Try 10 free mock exam questions.
Already Pro? Log in.
Sources
- Mitigate jailbreaks and prompt injections, Claude Platform Docs
- Reduce prompt leak, Claude Platform Docs
- Increase output consistency, Claude Platform Docs
- Configure permissions, Claude Code Docs