AWS Certified Solutions Architect – Professional — Question 233

A company hosts an application on Amazon EC2 instance and needs to store files in Amazon S3. The files should never traverse the public internet, and only the application EC2 instances are granted access to a specific Amazon S3 bucket. A solutions architect has created a VPC endpoint for Amazon S3 and connected the endpoint to the application VPC.
Which additional steps should the solutions architect take to meet these requirements?

Answer options

Correct answer: C

Explanation

The correct option C is valid because it combines the use of an endpoint policy to restrict access to a specific S3 bucket and a bucket policy that allows access for that VPC endpoint. The other options either incorrectly limit access based on IP or do not adequately address both endpoint and bucket policies necessary for securing access to S3.