Microsoft Certified Azure Administrator Associate · Free Practice Question Medium
Question 22
You are setting up a custom domain for your Azure Web App and plan to use Azure DNS. What type of record should you establish in Azure DNS to point to the hostname of your Azure Web App?
- A A Record
- B CNAME Record
- C MX Record
- D TXT Record
Reveal correct answer
Correct answer: B
A. An A Record is used to map a domain name to an IPv4 address. While it is commonly used for pointing to the IP address of a web server, it is not the correct record type for pointing to the hostname of an Azure Web App.
B. A CNAME Record, also known as Canonical Name Record, is used to alias one domain name to another. In the context of setting up a custom domain for an Azure Web App, a CNAME Record is the appropriate choice to point to the hostname of the Web App.
C. An MX Record, or Mail Exchange Record, is used to specify the mail servers responsible for receiving email on behalf of a domain. It is not the correct record type for pointing to the hostname of an Azure Web App.
D. A TXT Record is used to store arbitrary text data in a DNS record. While it can be used for various purposes such as domain verification or SPF records, it is not the correct record type for pointing to the hostname of an Azure Web App.
Discussion
Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.
