DVA-C02 · Question #333
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
The correct answer is A. Create a new origin access control (OAC) in CloudFront. Configure the CloudFront distribution's. https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content- restricting-access-to-s3.html
Question
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?
Options
- ACreate a new origin access control (OAC) in CloudFront. Configure the CloudFront distribution's
- BUpdate the S3 bucket settings. Enable the block all public access setting in Amazon S3.
- CUpdate the S3 bucket's static website settings. Enable static website hosting and specifying index
- DUpdate the CloudFront distribution's origin to send a custom header. Update the S3 bucket policy
How the community answered
(30 responses)- A77% (23)
- B3% (1)
- C13% (4)
- D7% (2)
Explanation
https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content- restricting-access-to-s3.html
Community Discussion
No community discussion yet for this question.