SOA-C02 Question 247
Select 2Your company has a website hosted on Amazon EC2 instances behind an Application Load Balancer (ALB). You are tasked with improving the website's performance for global users and configuring DNS to point to the ALB. How can you achieve this using AWS services?
- A
Use Amazon CloudFront with the ALB as the origin and configure an alias record in Route 53 to point to the CloudFront distribution.
- B
Use Amazon Route 53 to create a CNAME record that points directly to the ALB DNS name.
- C
Use Amazon CloudFront with the EC2 instances as the origin and configure an alias record in Route 53 to point to the CloudFront distribution.
- D
Use Amazon Route 53 to create an alias record that points directly to the ALB DNS name.
- E
Use Amazon CloudFront with the ALB as the origin and configure a CNAME record in Route 53 to point to the CloudFront distribution.
Show answer and explanation
Correct answers: A, D
Explanation
To improve performance for global users, Amazon CloudFront can be used with the ALB as the origin. CloudFront caches content at edge locations, reducing latency for users worldwide. Route 53 alias records are the preferred method for pointing DNS to both CloudFront distributions and ALBs, as they are natively supported and avoid additional costs associated with CNAME records. Option 1 addresses global performance improvement, and option 4 ensures proper DNS configuration for the ALB.
- A. Correct.
Correct: Using Amazon CloudFront with the ALB as the origin improves website performance for global users by caching content at edge locations, reducing latency. Configuring an alias record in Route 53 to point to the CloudFront distribution simplifies DNS management and avoids additional costs associated with CNAME records.
- B. Incorrect.
Incorrect: Route 53 does not support creating CNAME records for ALB DNS names, as ALBs are supported natively in Route 53 using alias records.
- C. Incorrect.
Incorrect: While you can use CloudFront with EC2 instances as the origin, it is not recommended when an ALB is already in place to handle load balancing and scaling. Also, this option does not directly address the task of connecting CloudFront to the ALB.
- D. Correct.
Correct: Route 53 natively supports creating alias records for ALB DNS names. This is a valid configuration for directing traffic to the ALB without needing a CloudFront distribution.
- E. Incorrect.
Incorrect: Configuring a CNAME record in Route 53 is not recommended when using CloudFront, as alias records are more efficient and cost-effective for AWS resources.