An agent reads web pages, and one page contains hidden text telling it to email customer data elsewhere. Which control addresses this?
- Exam domain
- Agentic AI17% of the exam
- Difficulty
- Medium
- In this mock
- 9 questions on this domainPractise this domain
Why the exam asks this
Objective in the exam guide: Safety controls, including guardrails, output filters, prompt-injection defenses, and hallucination reduction.
Safety controls are named twice in the agentic domain.
Why A is the answer
Input and output rails plus tool permissions
This is prompt injection. Rails that inspect inputs and outputs, plus least-privilege tool permissions, stop untrusted content from steering the agent into harmful actions.
Remember: Defend against injection with rails and least privilege.
How it works
Prompt injection hides instructions in data the agent reads. Guardrails such as NeMo Guardrails, output filters and tool limits reduce the risk.
In detail
- Treat retrieved content as untrusted.
- Limit what tools can do.
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. Input and output rails plus tool permissionsRight
Defend against injection with rails and least privilege.
B. A larger model with a longer context windowWrongMost tempting
Model size does not stop injection.
Why it tempts: Bigger models feel smarter and so safer.
C. Raising the temperature for more varied repliesWrong
Temperature changes randomness, not safety.
D. Turning off tracing so fewer logs are keptWrong
Tracing helps find failures, so turning it off hurts.
Use case
An illustrative scenario, not a real incident.
Illustrative: rails block any outbound email to a domain not on the allow list.
See it in different ways
sequenceDiagram participant P0 as Web page participant P1 as Agent participant P2 as Guardrails participant P3 as Email tool P0->>P1: content with hidden instruction P1->>P2: proposed action P2-->>P1: blocked not allowed P1->>P3: nothing sent
How to read this chart
- 1. Web page sends "content with hidden instruction" to Agent.
- 2. Agent sends "proposed action" to Guardrails.
- 3. Agent gets a reply from Guardrails: "blocked not allowed".
- 4. Agent sends "nothing sent" to Email tool.
mindmap
root(("Safety"))
n1["Rails"]
n2["Input checks"]
n3["Output checks"]
n4["Permissions"]
n5["Least privilege tools"]
n6["Oversight"]
n7["Human approval"]
n8["Visibility"]
n9["Tracing"]How to read this chart
- The centre is "Safety".
- "Rails" covers "Input checks", "Output checks".
- "Permissions" covers "Least privilege tools".
- "Oversight" covers "Human approval".
- "Visibility" covers "Tracing".