AZ-104 · Question #663
Hotspot Question You purchase a new Azure subscription. You create an Azure Resource Manager (ARM) template named deploy.json as shown in the following exhibit. You connect to the subscription and…
The correct answer is Three resource groups are created when you run the script. = No; A resource group named RGroup5 is created. = No; All the resource groups are created in the East US Azure region. = Yes. The ARM template uses a 'copy' loop to create resource groups iteratively. Based on typical ARM template copy loop syntax, the template creates resource groups named RGroup1 through RGroup4 (4 resource groups, not 3), which means the first statement (three resource groups) is…
Question
Exhibits
Answer Area
- Three resource groups are created when you run the script.No
- A resource group named RGroup5 is created.No
- All the resource groups are created in the East US Azure region.Yes
Explanation
The ARM template uses a 'copy' loop to create resource groups iteratively. Based on typical ARM template copy loop syntax, the template creates resource groups named RGroup1 through RGroup4 (4 resource groups, not 3), which means the first statement (three resource groups) is No and the second statement (RGroup5 exists) is No. The 'location' property in the ARM template for all resource groups is set to 'eastus', so all resource groups are indeed created in the East US region regardless of the '-Location westus' parameter used in New-AzDeployment (which only specifies the metadata location for the subscription-level deployment, not the resource group locations).
Topics
Community Discussion
No community discussion yet for this question.

