Data Security and Governance
Which policy controls which S3 resources callers can access through an S3 gateway VPC endpoint?
Show the answer
Correct answerD. VPC endpoint policy
AWhy not this: A role trust policy controls who can assume a role, not resource access through a VPC endpoint.
BWhy not this: A Secrets Manager resource policy controls access to a secret, not S3 requests through an endpoint.
CWhy not this: Security group rules filter network traffic, not S3 resource permissions through a gateway endpoint.
DWhy this is right: An endpoint policy restricts principals, actions, and resources for requests passing through the endpoint.
A VPC endpoint policy limits access to resources through that endpoint; other applicable policies must also allow access. A role trust policy determines who can assume a role, not which S3 resources are accessible through an endpoint.