An agent can issue refunds. Which design follows layered safety?
- Exam domain
- Introduction to AI agents
- Difficulty
- Medium
- In this mock
- 5 questions on this domainPractise this domain
Why D is the answer
Validate input, cap the tool, and ask a human above a limit
Layered safety means several independent checks: validate inputs, limit what each tool can do, require human approval for risky actions, and check outputs. One prompt is not a control.
Remember: Layers, not one prompt.
In detail
- Several independent layers.
- Human approval for high-impact actions.
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. Hide the refund tool description so the model uses it lessWrong
A hidden description makes the tool unreliable, not safe.
B. Trust the system prompt alone to stop large refundsWrong
A prompt can be overridden or ignored; it is not a hard limit.
C. Give the agent admin rights so its tools never failWrong
Broad rights make mistakes and attacks worse.
D. Validate input, cap the tool, and ask a human above a limitRight
Layers, not one prompt.
Use case
An illustrative scenario, not a real incident.
Illustrative: refunds under a set amount go through automatically, and larger ones wait for a supervisor.
See it in different ways
flowchart LR S0["Input check"] --> S1["Tool permission limits"] --> S2["Human approval for risky actions"] --> S3["Output check"]
How to read this chart
- Read it in order: Input check, then Tool permission limits, then Human approval for risky actions, then Output check.
flowchart TD
Q{"Is the amount over the limit?"}
Q -->|"No"| A0["Agent refunds"]
Q -->|"Yes"| A1["A human approves first"]How to read this chart
- At "Is the amount over the limit?": if "No", go to "Agent refunds"; if "Yes", go to "A human approves first".