exam questions

Exam AWS Certified Solutions Architect - Professional All Questions

View all questions & answers for the AWS Certified Solutions Architect - Professional exam

Exam AWS Certified Solutions Architect - Professional topic 1 question 619 discussion

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?

  • A. Assign an endpoint policy to the endpoint that restricts access to a specific S3 bucket. Attach a bucket policy to the S3 bucket that grants access to the VPC endpoint. Add the gateway prefix list to a NACL of the instances to limit access to the application EC2 instances only.
  • B. Attach a bucket policy to the S3 bucket that grants access to application EC2 instances only using the aws:SourceIp condition. Update the VPC route table so only the application EC2 instances can access the VPC endpoint.
  • C. Assign an endpoint policy to the VPC endpoint that restricts access to a specific S3 bucket. Attach a bucket policy to the S3 bucket that grants access to the VPC endpoint. Assign an IAM role to the application EC2 instances and only allow access to this role in the S3 bucket's policy.
  • D. Assign an endpoint policy to the VPC endpoint that restricts access to S3 in the current Region. Attach a bucket policy to the S3 bucket that grants access to the VPC private subnets only. Add the gateway prefix list to a NACL to limit access to the application EC2 instances only.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Nemer
Highly Voted 3 years, 8 months ago
C. S3 endpoint policy to restrict access to specific bucket, bucket policy to grant access to specific VPC endpoint + specific role.
upvoted 20 times
kirrim
3 years, 7 months ago
C is the best answer, I'm not crazy about the wording though. "Only allow access to this role in the S3 bucket's policy" ignores that the very same answer also says the the VPCE needs to be permitted in the bucket policy, too.
upvoted 2 times
...
...
Konnon
Highly Voted 3 years, 8 months ago
The answer is C. Bucket policy allows VPCE. VPCE policy restrict to specific bucket. IAM allows the user to use S3.
upvoted 14 times
...
cldy
Most Recent 3 years, 5 months ago
C is correct.
upvoted 1 times
...
Ni_yot
3 years, 5 months ago
C for me. https://docs.aws.amazon.com/vpc/latest/privatelink/vpc-endpoints-access.html
upvoted 1 times
...
AzureDP900
3 years, 6 months ago
This question is in Neal Davis Practice test 5
upvoted 1 times
...
vramchn
3 years, 6 months ago
C. Role + policy
upvoted 2 times
...
AzureDP900
3 years, 6 months ago
Selected Answer: C
Adrian Cantrill explained very well about Gateway endpoint policy , It is C
upvoted 1 times
...
AzureDP900
3 years, 6 months ago
Selected Answer: C
I will go with C
upvoted 1 times
...
andylogan
3 years, 7 months ago
It's C
upvoted 1 times
...
tgv
3 years, 7 months ago
CCC ---
upvoted 1 times
...
WhyIronMan
3 years, 7 months ago
I'll go with C
upvoted 3 times
...
Waiweng
3 years, 7 months ago
it's C
upvoted 4 times
...
kiev
3 years, 7 months ago
Bucket policy +Role #C
upvoted 1 times
...
Ebi
3 years, 7 months ago
I will go with C
upvoted 6 times
...
petebear55
3 years, 7 months ago
C: Remember best practice when it comes to difficult questions like this lads !!! "ROLE"
upvoted 2 times
...
Bulti
3 years, 7 months ago
C is correct.
upvoted 2 times
...
T14102020
3 years, 7 months ago
Correct is C. without NACL + without aws:SourceIp
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...