AZ-104 Question 180
Single answerYou are creating a new Azure Web App in the Azure portal for an internal line-of-business application. The application requires a Windows-based hosting environment and must allow scaling out to multiple instances when needed. Additionally, your organization wants to assign a custom domain to the Web App. Which of the following is the correct approach to ensure these requirements are met during the creation of the Azure Web App?
- A
During creation, choose Linux as the OS, set the SKU to Free, and use the default *.azurewebsites.net domain.
- B
During creation, choose Windows as the OS, set the SKU to at least Basic (B1) or higher, and configure a custom domain in the 'Custom domains' blade.
- C
Use the ‘Create Resource Group’ blade to define scaling rules, then create an App Service on Linux with a Standard plan.
- D
Create an App Service with Docker as the publish method, choose any OS, and scale out after deployment.
Show answer and explanation
Correct answer: B
Explanation
To meet the requirements, Windows-based hosting, the ability to scale out, and binding a custom domain, the Web App must be created on a Windows OS with at least a Basic tier. Only Basic or higher supports custom domains and allows multiple instance scaling.
- A. Incorrect.
Selecting Linux and the Free tier does not satisfy the requirement for a Windows-based environment or allow custom domain support.
- B. Correct.
Choosing Windows with a Basic or higher tier provides the necessary environment for scaling and supports custom domains.
- C. Incorrect.
Setting up scaling in the Resource Group blade first and then choosing a Linux-based environment does not align with the requirement for a Windows-based App Service.
- D. Incorrect.
Using Docker as the publish method and 'any OS' does not specifically address the Windows hosting requirement or immediate custom domain support needs.