ExamQuestions.com

Register
Login
AWS Certified Solutions Architect Professional Exam Questions

Amazon

AWS Certified Solutions Architect Professional

254 / 465

Question 254:

An IT company owns a web product in AWS that provides discount restaurant information to customers. It has used one S3 Bucket (my-bucket) to store restaurant data such as pictures, menus, etc. The product is deployed in VPC subnets. The company’s Cloud Architect decides to configure a VPC endpoint for this S3 bucket to enhance the performance. To be compliant with security rules, it is required that the new VPC endpoint is only used to communicate with this specific S3 Bucket. On the other hand, the S3 bucket allows the read/write operations to come from this VPC endpoint. Which two options should the Cloud Architect choose to meet the security needs?

Answer options:

A.Use a VPC Endpoint policy for Amazon S3 to restrict access to the S3 Bucket “my-bucket” so that the VPC Endpoint is only allowed to perform S3 actions on “my-bucket”.
B.Modify the security group of the EC2 instance to limit the outbound actions to the VPC Endpoint by denying the outgoing traffic to the destination S3 bucket “my-bucket”.
C.In the S3 bucket “my-bucket”, add an S3 bucket policy in which all actions are denied if the source IP address is not equal to the EC2 public IP (use “NotIpAddress” condition).
D.For the S3 bucket “my-bucket”, use an S3 bucket policy that denies all actions if the source VPC Endpoint is not equal to the endpoint ID that is created.
E.Create an S3 bucket policy in the S3 bucket “my-bucket” which denies all actions unless the source IP address is equal to the EC2 public IP (use “IpAddress” condition).