An application's frontend is distributed globally using an Amazon CloudFront distribution, with an Application Load Balancer (ALB) configured as the origin. A SysOps administrator needs to configure the apex domain (example.com) to route traffic to the CloudFront distribution. The administrator also wants to secure the origin by restricting direct public access to the ALB while ensuring client-to-ALB communication functions correctly. Which configuration correctly satisfies these routing and security requirements?
- Create an Amazon Route 53 Alias record at the zone apex pointing to the CloudFront distribution. Configure the ALB security group to allow inbound HTTPS traffic from the CloudFront IP ranges, and ensure outbound rules allow responses to return to CloudFront.Answer
- BCreate an Amazon Route 53 CNAME record at the zone apex pointing to the CloudFront distribution domain name. Configure the ALB security group to allow inbound HTTPS traffic from the CloudFront IP ranges.
- CCreate an Amazon Route 53 Alias record at the zone apex pointing to the CloudFront distribution. Configure the stateless Network Access Control List (NACL) for the ALB subnets to allow inbound traffic from the CloudFront IP ranges on port 443, but block outbound traffic on ephemeral ports (1024-65535) to prevent unauthorized outbound connections.
- DCreate an Amazon Route 53 Alias record at the zone apex pointing to the CloudFront distribution. Configure the ALB target group health check port to require client-side SSL/TLS certificate authentication from CloudFront to verify origin integrity.
Answer
Create an Amazon Route 53 Alias record at the zone apex pointing to the CloudFront distribution, configure the ALB security group to allow inbound HTTPS traffic from CloudFront IP ranges, and ensure outbound rules allow responses to return to CloudFront.
The correct configuration uses a Route 53 Alias record to map the zone apex to the CloudFront distribution domain, resolving the DNS limitation of CNAME records. To secure the origin, the ALB's security group limits inbound traffic to CloudFront's IP ranges. Because security groups are stateful, return traffic is automatically allowed.
Step-by-Step Solution
Key Concept
Configuring CloudFront with an ALB origin requires combining DNS Alias records at the zone apex with correct security group and NACL configurations to ensure safe, routing-compliant traffic flow.