A company hosts a web application behind an Application Load Balancer (ALB) that serves as the custom origin for an Amazon CloudFront distribution. A SysOps administrator must secure the architecture to ensure that the ALB only processes traffic originating directly from CloudFront. Additionally, during promotional events, the administrator must protect the origin backend from being overwhelmed by duplicate requests originating from different regional cache locations. Which combination of configurations will meet these requirements? (Select TWO.)
- Configure CloudFront to add a custom HTTP header to origin requests, and configure the ALB listener rules to forward requests to the target group only if this header is present with the correct secret value.Answer
- Enable CloudFront Origin Shield in the distribution's origin settings, selecting the optimal AWS Region close to the origin backend.Answer
- CConfigure an Amazon Route 53 CNAME record at the zone apex pointing to the CloudFront distribution domain name to restrict ALB origin traffic.
- DConfigure the ALB's subnet route tables to direct all outbound responses through an Internet Gateway using a static ephemeral port range target.
- EConfigure the ALB target group health checks to point to the CloudFront distribution domain name on port 443.
Answer
The correct configurations are to inject a custom HTTP header from CloudFront and verify it in the Application Load Balancer listener rules, and to enable CloudFront Origin Shield in the distribution's origin settings.
To secure the custom origin, configuring CloudFront to add a custom HTTP header with a secret value and configuring the Application Load Balancer (ALB) listener rules to only forward requests containing that custom header ensures that direct access to the ALB is blocked. To protect the origin from being overwhelmed by duplicate requests, enabling CloudFront Origin Shield creates a centralized caching layer that reduces origin requests during traffic spikes.
Step-by-Step Solution
Key Concept
Securing custom origins with CloudFront custom headers and optimizing cache hit ratios with Origin Shield.