AZ-400 · Question #120
AZ-400 Question #120: Real Exam Question with Answer & Explanation
This simulation tests your ability to create a reusable virtual machine template in Azure DevTest Labs that is pre-configured with a specific OS image and tools (Selenium and Chrome), enabling consistent test environments for development teams.
Question
SIMULATION You need to create a virtual machine template in an Azure DevTest Labs environment named az400- 9940427-dtl1. The template must be based on Windows Server 2016 Datacenter. Virtual machines created from the template must include the selenium tool and the Google Chrome browser. To complete this task, sign in to the Microsoft Azure portal. Answer: 1. Open Microsoft Azure Portal 2. Select All Services, and then select DevTest Labs in the DEVOPS section. 3. From the list of labs, select the az400-9940427-dtl1 lab 4. On the home page for your lab, select + Add on the toolbar. 5. Select the Windows Server 2016 Datacenter base image for the VM. 6. Select automation options at the bottom of the page above the Submit button. 7. You see the Azure Resource Manager template for creating the virtual machine. 8. The JSON segment in the resources section has the definition for the image type you selected earlier. References: https://docs.microsoft.com/bs-cyrl-ba/azure//lab-services/devtest-lab-vm-powershell
Explanation
This simulation tests your ability to create a reusable virtual machine template in Azure DevTest Labs that is pre-configured with a specific OS image and tools (Selenium and Chrome), enabling consistent test environments for development teams.
Approach. The correct approach is to navigate to the target DevTest Labs instance (az400-9940427-dtl1), add a new VM using the Windows Server 2016 Datacenter base image, then use 'Automation options' to export the underlying Azure Resource Manager (ARM) template. This ARM template (JSON) can be saved and reused as a custom artifact-enabled template. To include Selenium and Google Chrome, you would add the corresponding DevTest Labs artifacts (pre-built install scripts available in the artifact repository) during the VM configuration step before exporting — this embeds the artifact definitions into the JSON template so every VM created from it automatically installs those tools.
Concept tested. Azure DevTest Labs VM template creation using ARM templates and artifacts — specifically, how to define a reusable, pre-configured environment image (base OS + software artifacts) that enforces consistency across developer/tester machines in a CI/CD pipeline context (relevant to AZ-400 DevOps Engineer certification).
Reference. https://docs.microsoft.com/bs-cyrl-ba/azure/lab-services/devtest-lab-vm-powershell
Community Discussion
No community discussion yet for this question.