You have an Azure Web App that uses the URL contoso.azurewebsites.net…..
/ Interview Question Microsoft Azure • Azure App Services – Web Apps 70 532 / by admin / Leave a comment
HOTSPOT
You have an Azure Web App that uses the URL contoso.azurewebsites.net. The virtual IP address of the web app is subject to change.
Users must be able to navigate to a custom domain name to access the Web App. You set up the DNS records for a custom domain at a third party registrar.
You need to configure the web app to use the custom domain name. For each mapping, which DNS record type should you create? To answer, select the appropriate DNS record type from each list in the answer area. Hot Area:
Answer: Explanation:
https://azure.microsoft.com/en-gb/documentation/articles/web-sites-custom-domain-name/ Comments:
Answer should be wrong. A record maps IP address and IP is here subject to change. From the documentation: “Some domain registrars only allow you to map subdomains when using a CNAME record, such as http://www.contoso.com, and not root names, such as contoso.com”.
So, CNAME can be used for root domains as well, in general.
The answer given is correct.
Generally we apply A record to root domain. As the IP subject to change, we can login the DNS register to change it later. No point to put CNAME for root domain here.
https://docs.microsoft.com/en-us/azure/app-service/app-service-web-tutorial-custom-domain
https://docs.microsoft.com/en-us/azure/cloud-services/cloud-services-custom-domain-name#understand-cname-and-a-records