Identity and Access Management
A role can read an S3 object through a public service endpoint but receives AccessDenied through a VPC endpoint. Its identity policies and the bucket policy are unchanged; which policy should be examined first?
Show the answer
Correct answerA. The VPC endpoint policy
AWhy this is right: The endpoint policy adds an authorization control specifically to requests traversing the VPC endpoint.
BWhy not this: A session policy limits the session's permissions across both paths rather than only requests through the endpoint.
CWhy not this: A permissions boundary limits the role across both paths and does not by itself explain the path-specific failure.
DWhy not this: A trust policy controls who can assume the role, not which network path an S3 request can use.
A VPC endpoint policy can restrict requests passing through that endpoint, explaining why only that path fails. A role trust policy controls role assumption, not an already assumed role's S3 requests.