A company plans to deploy a web application and an Azure SQL database using Azure Resource Manager (ARM) templates. The operations team wants to define the resources and their relationships in a configuration file, allowing Azure to determine the optimal deployment order. The resource group for this deployment is created in the East US region, but the SQL database must be located in the West US region for compliance.
Which of the following describes the capabilities of ARM templates and resource groups for this scenario?
- AARM templates are imperative scripts that require the team to write the exact step-by-step sequence of deployment, and resources can be deployed to a different region than the resource group.
- ARM templates are declarative, allowing Azure to determine the deployment sequence, and resources can be deployed to a different region than the resource group.Answer
- CARM templates are declarative, allowing Azure to determine the deployment sequence, but all resources must reside in the East US region to match the resource group's location.
- DARM templates are declarative, but to deploy the database to West US, you must nest a secondary West US resource group inside the primary East US resource group.
Answer
ARM templates are declarative, allowing Azure to determine the deployment sequence, and resources can be deployed to a different region than the resource group.
The correct option states that ARM templates are declarative and that resources can reside in a different region than their resource group. This is because ARM templates define the desired state rather than execution steps, and resource groups only store metadata in their designated region, allowing the actual resources to reside in any supported location.
Step-by-Step Solution
Key Concept
Azure Resource Manager templates are declarative configuration tools, and resources in a resource group can be deployed across different Azure regions.