AWS Certified SysOps Administrator – Associate — Question 124

A company’s web application is available through an Amazon CloudFront distribution and directly through an internet-facing Application Load Balancer (ALB). A SysOps administrator must make the application accessible only through the CloudFront distribution and not directly through the ALB. The SysOps administrator must make this change without changing the application code.

Which solution will meet these requirements?

Answer options

Correct answer: D

Explanation

Option D is correct because it effectively restricts access to the application by requiring a specific custom HTTP header that only CloudFront would provide. The other options either involve unnecessary changes to the ALB type or setup or do not adequately restrict access since they don't ensure that only CloudFront can reach the ALB.