AIF-C01 Practice Question 50: Agent Tool Authorization
AWS Certified AI Practitioner (AIF-C01) · Test 5 · question 10 of 10
A bank's AI agent calls tools through Amazon Bedrock AgentCore Gateway, including one that issues refunds. The security team worries that a manipulated or confused agent could issue refunds above the approved limit, even though the system prompt tells it not to. The team wants rules, outside the agent's code, that are checked deterministically on every tool call before it runs. What should it use?
Show answer and explanation
Answer:
Policy in AgentCore creates a protective boundary around agent actions. It intercepts all agent traffic through AgentCore Gateways and evaluates each request against defined policies before allowing tool access. Policies are written in Cedar, AWS's open-source authorization language, or in natural language, and they can use tool input parameters, such as a refund amount, and user identity. Enforcement happens outside the agent's code, so it is deterministic and harder to bypass by manipulating the agent. Every decision is logged for audit (option C).
- A is wrong because prompt instructions are exactly what a manipulated or confused agent might ignore. They are guidance to the model, not an enforced control. - B is wrong because invocation logging *records* prompts and responses after the fact. It gives an audit trail but doesn't block a refund before it happens. - D is wrong because temperature reduces randomness in generated text. It can't guarantee that an agent will never call a tool with an out-of-policy amount.
Reference: Policy in Amazon Bedrock AgentCore: Control Agent Interactions