AZ-104 exam dumps

AZ-104 practice question 186 of 289

Microsoft Certified: Azure Administrator Associate. Associate level, Microsoft. Free question with the correct answer and a full explanation.

AZ-104 Question 186

Single answer

You manage an Azure App Service named contosoapp.azurewebsites.net. You have a custom domain named contoso.com, purchased from a third-party registrar. You want to map www.contoso.com so that it resolves to contosoapp.azurewebsites.net. Which step must you perform to properly complete this configuration?

  1. A

    Create a CNAME record for www.contoso.com pointing to contosoapp.azurewebsites.net, then add this custom domain in the Azure App Service Custom domains page.

  2. B

    Enable forced HTTPS in the Azure App Service settings to ensure the domain mapping is accepted.

  3. C

    Create and verify a TXT record for contoso.com in Azure DNS, linking it to the default *.azurewebsites.net domain.

  4. D

    Purchase an SSL certificate from Azure, then configure a new custom domain binding.

Show answer and explanation

Correct answer: A

Explanation

To map an existing custom DNS name to an Azure App Service, you must add a CNAME record on the domain registrar for the subdomain pointing to the default *.azurewebsites.net domain and then add the custom domain within the App Service settings. This ensures both DNS resolution and ownership verification are completed correctly.

  • A. Correct.

    Creating a CNAME record for your subdomain and adding the custom domain in the App Service is the correct approach to map the domain and confirm ownership.

  • B. Incorrect.

    Enabling forced HTTPS is optional for secure connections but not a mandatory step for mapping a custom domain.

  • C. Incorrect.

    A TXT record alone is used to verify domain ownership in some contexts, but specifically mapping www.contoso.com requires a CNAME record and configuration in the App Service.

  • D. Incorrect.

    Purchasing an SSL certificate is only required if you plan to enable HTTPS on the custom domain, but it does not directly map the domain to the App Service.

Timed practice exam

Take a AZ-104 practice test under exam conditions

60 questions in 60 minutes, drawn from this bank, with a score report and a per-question review when you finish.

Start timed exam