AWS Certified Solutions Architect – Professional — Question 979

A medical company is running a REST API on a set of Amazon EC2 instances. The EC2 instances run in an Auto Scaling group behind an Application Load
Balancer (ALB). The ALB runs in three public subnets, and the EC2 instances run in three private subnets. The company has deployed an Amazon CloudFront distribution that has the ALB as the only origin.
Which solution should a solutions architect recommend to enhance the origin security?

Answer options

Correct answer: A

Explanation

Option A is correct because using a custom HTTP header injected by CloudFront and verified by AWS WAF on the ALB ensures that only requests originating from the CloudFront distribution are permitted, with AWS Secrets Manager and Lambda handling the secure rotation of the secret key. Option B is incorrect because an ALB facing CloudFront must remain in public subnets to receive traffic. Option C is incorrect because Systems Manager Parameter Store does not support automatic rotation natively, and AWS WAF is required to properly inspect and block requests based on custom headers at the ALB.