AWS Certified SysOps Administrator – Associate (legacy) — Question 56

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 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 answer is B because creating an origin access identity allows CloudFront to securely access the S3 bucket while restricting direct access from users. Option A is incorrect as encryption does not control access. Options C and D are also incorrect because linking IAM users or roles does not provide the necessary permissions for CloudFront to access the S3 bucket directly.