SOA-C02 Question 249
Select 3A company has a website hosted on an EC2 instance behind an Application Load Balancer (ALB) in a single AWS Region. The company wants to create a custom domain name (www.example.com) for the website and ensure it is accessible globally. They have registered their domain with a third-party domain registrar. As a SysOps Administrator, what steps should you take to configure Route 53 to meet this requirement?
- A
Create a public hosted zone in Route 53 for the domain example.com.
- B
Set up an alias A record in the Route 53 hosted zone pointing to the ALB DNS name.
- C
Set up a CNAME record in the Route 53 hosted zone pointing to the EC2 instance's public IP address.
- D
Update the name servers for the domain in the third-party registrar to point to the Route 53 name servers.
- E
Create a private hosted zone in Route 53 for the domain example.com.
Show answer and explanation
Correct answers: A, B, D
Explanation
To configure Route 53 for a custom domain hosted on an ALB, you need to create a public hosted zone for the domain and set up an alias record pointing to the ALB DNS name. Additionally, you must update the name servers in the third-party registrar to Route 53's name servers to route traffic correctly. A private hosted zone or a CNAME record pointing to the EC2 instance is not applicable in this case, as the domain should be publicly accessible and traffic is managed through the ALB.
- A. Correct.
Correct: A public hosted zone is required in Route 53 to manage DNS records for the domain and make it accessible over the internet.
- B. Correct.
Correct: An alias A record should be created in the hosted zone to route traffic to the ALB, which will distribute traffic to the EC2 instance.
- C. Incorrect.
Incorrect: A CNAME record pointing to the EC2 instance's public IP address is not required, as the ALB handles traffic distribution. Using an alias record is the recommended approach.
- D. Correct.
Correct: The name servers for the domain must be updated in the third-party registrar to point to the Route 53 name servers, so that Route 53 can manage DNS queries for the domain.
- E. Incorrect.
Incorrect: A private hosted zone is used for internal DNS resolution within a VPC and is not suitable for a publicly accessible domain.