LeetQuiz Logo
Privacy Policy•contact@leetquiz.com
© 2025 LeetQuiz All rights reserved.
AWS Certified Developer - Associate

AWS Certified Developer - Associate

Get started today

Ultimate access to all questions.


In a scenario with multiple Amazon VPC endpoints within a single VPC, how should a developer configure an S3 bucket policy to restrict access to the bucket exclusively through these endpoints?

Exam-Like



Explanation:

The correct answer is D. This option specifies creating a single S3 bucket policy that lists multiple aws:SourceVpce conditions using StringNotEquals for all relevant VPC endpoint IDs. This approach is the closest to ensuring that users can only access the S3 bucket through specified VPC endpoints, as it explicitly states the acceptable VPC endpoints. Using StringNotEquals helps in denying access if the requests come from any endpoints not listed. The other options either do not comprehensively cover all VPC endpoints or are not appropriately configured to meet the requirements.

Powered ByGPT-5