Security, Compliance, and Governance

An agent running in Amazon Bedrock AgentCore Runtime uses its execution role to retrieve documents from Amazon S3. Users may invoke the agent, but it must read only an approved S3 prefix even if prompted to retrieve other objects. Which design enforces this boundary?

Show the answer

Correct answerC. Restrict the execution role's S3 permissions to the approved object prefix.

AWhy not this: Model instructions guide behavior but do not enforce S3 authorization.

BWhy not this: Caller authentication does not restrict which objects the agent's execution role can retrieve.

CWhy this is right: Resource-scoped IAM permissions constrain S3 retrieval even when the model requests an unauthorized object.

DWhy not this: Denied topics filter content; they do not establish an authorization boundary for S3 API calls.

The execution role's IAM permissions enforce which S3 objects the agent can retrieve, independently of model behavior. Inbound token validation authenticates callers but does not constrain the execution role's downstream S3 access.