AWS Certified Security – Specialty — Question 156

A city is implementing an election results reporting website that will use Amazon CloudFront. The website runs on a fleet of Amazon EC2 instances behind an
Application Load Balancer (ALB) in an Auto Scaling group. Election results are updated hourly and are stored as .pdf files in an Amazon S3 bucket. A security engineer needs to ensure that all external access to the website goes through CloudFront.
Which solution meets these requirements?

Answer options

Correct answer: D

Explanation

Option D is correct because it uses an origin access identity (OAI) to control access to the S3 bucket, ensuring that only CloudFront can access the content. Additionally, associating the ALB with a security group that restricts access to CloudFront helps secure the application. Options A and C do not address the necessary security group configuration for the ALB, while option B fails to implement the OAI for securing S3 access.