A tool response from a web page contains hidden text telling the agent to email customer data elsewhere. What screens for this?
- Exam domain
- Securing and governing agentic workflows~15% of the exam
- Difficulty
- Medium
- In this mock
- 7 questions on this domainPractise this domain
Why the exam asks this
Implementing secure agent behavior and execution.
Objective in the exam guide: Designing appropriate safety frameworks and guardrails (e.g., Agent Gateway, Model Armor, and human-in-the-loop [HITL]).
Indirect prompt injection through tool output is a top agent risk.
Why C is the answer
Model Armor, which screens prompts and tool responses for injection
Model Armor scans user prompts and tool responses in real time to block prompt injection, sensitive data leakage and harmful content. It can be attached at Agent Gateway.
Remember: Screen tool responses as well as prompts.
How it works
Model Armor screens prompts and responses for threats such as prompt injection.
On a gateway it can screen traffic to and from tools.
Clues in the question
The words that point to the answer, and what each one tells you.
- hidden text telling the agent
- Prompt injection.
In detail
- Indirect injection arrives through tool results, not just user input.
- Pair it with least-privilege tools so a missed attack has little reach.
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. A higher model temperatureWrong
Temperature has no defensive effect.
B. A longer system instruction warning about attacksWrongMost tempting
Instructions alone can be overridden by injected text.
Why it tempts: The injected text can override instructions.
C. Model Armor, which screens prompts and tool responses for injectionRight
Screen tool responses as well as prompts.
D. A faster runtime with more replicasWrong
Speed has nothing to do with screening.
Use case
An illustrative scenario, not a real incident.
Illustrative: a research agent fetches a page with hidden instructions. Model Armor flags the tool response before the model reads it.
See it in different ways
sequenceDiagram participant P0 as Agent participant P1 as Agent Gateway participant P2 as Agent Registry participant P3 as Tool P0->>P1: call tool P1->>P2: is the tool registered P2-->>P1: yes, and IAM allows it P1->>P3: forward after Model Armor check P3-->>P1: response P1-->>P0: screened response
How to read this chart
- 1. Agent sends "call tool" to Agent Gateway.
- 2. Agent Gateway sends "is the tool registered" to Agent Registry.
- 3. Agent Gateway gets a reply from Agent Registry: "yes, and IAM allows it".
- 4. Agent Gateway sends "forward after Model Armor check" to Tool.
- 5. Agent Gateway gets a reply from Tool: "response".
- 6. Agent gets a reply from Agent Gateway: "screened response".
flowchart LR S0["User prompt"] --> S1["Model Armor"] --> S2["Agent"] --> S3["Tool response"] --> S4["Model Armor"] --> S5["Agent"]
How to read this chart
- Read it in order: User prompt, then Model Armor, then Agent, then Tool response, then Model Armor, then Agent.