QuestionQ39

VerifiedSecurity

A company has multiple Amazon VPC endpoints in the same VPC. A developer needs to configure an Amazon S3 bucket policy so users can access an S3 bucket only by using these VPC endpoints.

Which solution will meet these requirements?

Explanation

The bucket policy must explicitly deny S3 actions unless the request originates from allowed VPC endpoints. This requires a Deny statement with StringNotEquals condition and specific VPC endpoint IDs listed in an array. Using wildcards (vpce*) would deny legitimate traffic from endpoints outside the pattern. A single policy with multiple endpoint IDs is more maintainable and efficient than creating separate policies.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!