Configure Cloud DNS so the apex domain, the www host name, and the home host name resolve to your Google Cloud load balancer IP. What should you do?
Choose an answer
Tap an option to check your answer.
Correct answer: Create an A record for the apex domain to the load balancer IP and CNAMEs for the www and home host names pointing to the apex domain..
Why this is the answer
The correct approach is to create an A record for the apex domain (e.g., example.com) that points directly to the load balancer's IP address. This is because CNAME records cannot be used for the apex domain due to RFC specifications; doing so would interfere with other essential records like MX or NS records. For subdomains like www.example.com and home.example.com, CNAME records are appropriate. They can point to the apex domain, example.com, which in turn resolves to the load balancer's IP via its A record. This configuration efficiently routes traffic for all specified hostnames to the load balancer.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed