Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam AWS Certified Developer - Associate DVA-C02 All Questions

View all questions & answers for the AWS Certified Developer - Associate DVA-C02 exam

Exam AWS Certified Developer - Associate DVA-C02 topic 1 question 319 discussion

A developer is creating a publicly accessible enterprise website consisting of only static assets. The developer is hosting the website in Amazon S3 and serving the website to users through an Amazon CloudFront distribution. The users of this application must not be able to access the application content directly from an S3 bucket. All content must be served through the Amazon CloudFront distribution.

Which solution will meet these requirements?

  • A. Create a new origin access control (OAC) in CloudFront. Configure the CloudFront distribution's origin to use the new OAC. Update the S3 bucket policy to allow CloudFront OAC with read and write access to access Amazon S3 as the origin.
  • B. Update the S3 bucket settings. Enable the block all public access setting in Amazon S3. Configure the CloudFront distribution's with Amazon S3 as the origin. Update the S3 bucket policy to allow CloudFront write access.
  • C. Update the S3 bucket's static website settings. Enable static website hosting and specifying index and error documents. Update the CloudFront origin to use the S3 bucket's website endpoint.
  • D. Update the CloudFront distribution's origin to send a custom header. Update the S3 bucket policy with a condition by using the aws:RequestTag/tag-key key. Configure the tag-key as the custom header name, and the value being matched is the header's value.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Saudis
1 week, 3 days ago
Selected Answer: A
the access to S3 Always by two ways OAC or OAI In cloud front we access by OAC
upvoted 1 times
...
65703c1
5 months, 3 weeks ago
Selected Answer: A
A is the correct answer.
upvoted 1 times
...
DeaconStJohn
7 months, 3 weeks ago
Selected Answer: A
Think back to every beginner cloud project you have completed/read about/ignored.
upvoted 3 times
...
Abdullah22
8 months, 1 week ago
Selected Answer: B
why not B
upvoted 1 times
Abdullah22
8 months, 1 week ago
changing to A. Origin access identity is now considered a legacy solution. The official AWS documentation now recommends that Origin Access Control is used instead.
upvoted 2 times
...
...
nder
8 months, 2 weeks ago
Selected Answer: A
https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-restricting-access-to-s3.html
upvoted 4 times
...
monishvster
8 months, 2 weeks ago
Selected Answer: C
We don't want to provide write access to CloudFront since it's a static website. S3 should suffice
upvoted 1 times
DeaconStJohn
7 months, 3 weeks ago
Option C requires public access to the bucket to be allowed. "The users of this application must not be able to access the application content directly from an S3 bucket. All content must be served through the Amazon CloudFront distribution." OAC allows us to turn this feature off and still access the bucket contents via cloudfront.
upvoted 1 times
...
...
CrescentShared
8 months, 3 weeks ago
Selected Answer: A
While enabling the block all public access setting in Amazon S3 is a good security practice and necessary for this scenario, simply allowing CloudFront "write access" is not relevant since the scenario involves serving static assets, not writing to the S3 bucket. This option also doesn't specify using an OAC or a similar method to ensure exclusive access through CloudFront.
upvoted 3 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 ...