You are configuring Cloud DNS. You want to create DNS records to point home.mydomain.com, mydomain.com, and www.mydomain.com to the IP address of your Google Cloud load balancer. What should you do?
A.
Create one CNAME record to point mydomain.com to the load balancer, and create two A records to point WWW and HOME to mydomain.com respectively.
B.
Create one CNAME record to point mydomain.com to the load balancer, and create two AAAA records to point WWW and HOME to mydomain.com respectively.
C.
Create one A record to point mydomain.com to the load balancer, and create two CNAME records to point WWW and HOME to mydomain.com respectively.
D.
Create one A record to point mydomain.com to the load balancer, and create two NS records to point WWW and HOME to mydomain.com respectively.
Record name | Type | Value
mydomain.com | A | load balancer IP
www.mydomain.com | CNAME | mydomain.com
home.mydomain.com | CNAME | mydomain.com
https://cloud.google.com/dns/docs/records-overview#supported_dns_record_types
Selected Answer: C
Simply, you can't create cname for thr root domain (mydomain.com). When you refe to other GCP services, it is a best practice to use cname/alais for the other records
Option C strikes the right balance between direct mapping with an A record for the root domain and using CNAME aliases for subdomains. This aligns with DNS best practices and simplifies management.
C because the A record which points a domain name to an IPv4 address is used for the main domain (mydomain.com), the other two for www and home are aliases (CNAME) that can be pointed to the main domain of mydomain.com.
Option A suggests creating one CNAME record to point mydomain.com to the load balancer, which is incorrect because CNAME records cannot coexist with other record types on the same domain/subdomain. In this case, you need to use an A record instead.
Option B suggests creating two AAAA records, which are used for IPv6 addresses. Unless you specifically have an IPv6 address for your load balancer, using AAAA records would not be appropriate.
Option D suggests creating two NS records, which are used for specifying the authoritative name servers for a domain. NS records are not used to point subdomains to IP addresses or load balancers.
Therefore, option C is the correct answer, as it correctly suggests creating one A record to point mydomain.com to the load balancer, and two CNAME records to point WWW and HOME to mydomain.com respectively.
You can only associate A(IP) record to a domain.
https://cloud.google.com/dns/docs/set-up-dns-records-domain-name#create_a_record_to_point_the_domain_to_an_external_ip_address
upvoted 1 times
...
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
scanner2
Highly Voted 1 year, 2 months agoyehia2221
Most Recent 4 months agoPiperMe
8 months, 4 weeks agoCaptain1212
1 year, 2 months ago3arle
1 year, 3 months agojuliorevk
1 year, 3 months agoMrJkr
1 year, 5 months agogeorgesouzafarias
1 year, 5 months ago