Question

Difficulty: MediumAzure Resource Manager (ARM) and ARM Templates/Bicep

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?

  1. A
    ARM 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.
  2. 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
  3. C
    ARM 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.
  4. D
    ARM 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

1
Analyze the deployment execution model of Azure Resource Manager (ARM) templates.
ARM templates are declarative configurations where you specify the desired state, rather than imperative scripts where you define sequential steps.
This allows Azure to automatically resolve dependencies and determine the optimal order to deploy resources.
2
Analyze the location requirements of resources within an Azure resource group.
Resources do not inherit or require the location of their resource group.
The resource group's location is only used to store metadata about the resources, meaning individual resources like the SQL database can be deployed to a different region (West US) than the group itself (East US).
3
Analyze the structural hierarchy of resource groups.
Resource groups cannot be nested inside other resource groups.
All resource groups exist directly under an Azure subscription, meaning hierarchical nesting is not supported.

Key Concept

Azure Resource Manager templates are declarative configuration tools, and resources in a resource group can be deployed across different Azure regions.
Rate this question