An application role must invoke Amazon Bedrock only through a designated VPC endpoint, even if its credentials are used elsewhere; other roles must retain public-endpoint access. Private DNS and a restrictive endpoint policy are already configured, but the application VPC must retain internet egress. Which additional control meets these requirements?
Show the answer
Correct answerB. Deny the application role's inference requests unless aws:SourceVpce matches the designated endpoint.
AWhy not this: A conditional allow does not cancel an existing broad allow, so requests outside the endpoint could remain authorized.
BWhy this is right: The explicit deny enforces the required endpoint path for the application role without affecting other roles.
CWhy not this: An endpoint policy cannot restrict requests sent directly to a public service endpoint.
DWhy not this: An organization-wide denial would also prevent other roles from retaining public-endpoint access.
An explicit deny scoped to the application role blocks inference requests outside the designated endpoint, overriding other allows without restricting other roles. An endpoint policy governs traffic through that endpoint; it cannot block requests that bypass it.