Case study
Mix QuestionsAZ-104 Mix Questions IN THIS CASE STUDYThis section contains standalone questions (no shared case-study scenario) covering all five AZ-104 exam domains: identity and governance, storage, compute, networking, and monitoring/backup. Every question has been independently verified against current Microsoft Learn documentation.
You plan to automate the deployment of a virtual machine scale set that uses the Windows Server 2016 Datacenter image.
You need to ensure that when the scale set virtual machines are provisioned, they have web server components installed.
Which two actions should you perform? Each correct answer presents part of the solution.
NOTE Each correct selection is worth one point.
Show answer
Answer: A, E
Explanation
Installing web server components (e.g., IIS) automatically at provisioning time on scale set VMs is done through a VM extension — typically the Custom Script Extension — declared in the scale set's ARM template extensionProfile section (option A). That extension must reference an actual script (e.g., a PowerShell script) that performs the installation, which needs to be uploaded somewhere accessible, such as a storage account blob (option E); the extensionProfile then points to that script's URI. Creating the scale set manually in the Azure portal (B) contradicts the stated goal of automating the deployment and provides no mechanism to run installation logic. An Azure Policy (C) enforces/audits configuration compliance but does not install software, and an automation account/runbook (D) is not wired into VMSS instance provisioning by default. The correct pairing is A and E.
Official Reference
Custom Script Extension for Windows — https://learn.microsoft.com/en-us/azure/virtual-machines/extensions/custom-script-windows




