AWS Certified SysOps Administrator – Associate — Question 64

A SysOps administrator is reviewing AWS Trusted Advisor warnings and encounters a warning for an S3 bucket policy that has open access permissions. While discussing the issue with the bucket owner, the administrator realizes the S3 bucket is an origin for an Amazon CloudFront web distribution.

Which action should the administrator take to ensure that users access objects in Amazon S3 by using only CloudFront URLs?

Answer options

Correct answer: B

Explanation

The correct action is to create an origin access identity and grant it permissions to read objects in the S3 bucket, which ensures that only CloudFront can access the S3 content. Encrypting the S3 bucket content (Option A) does not restrict access, and assigning an IAM user (Option C) or role (Option D) to the CloudFront distribution is not the best practice, as it is the origin access identity that directly interfaces with S3.