Question

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

An administrator is planning the deployment of a web application to Azure. The deployment must create a resource group in the East US region. However, due to compliance requirements, the virtual machine resources must be located in the West US region. Additionally, the administrator wants to define the entire infrastructure as a declarative configuration file rather than writing step-by-step execution commands.

Which of the following statements correctly describes how Azure Resource Manager (ARM) templates and resource groups support this scenario?

  1. A
    A nested resource group must be created within the main resource group to house the West US virtual machines separately from the East US resources.
  2. ARM templates allow resources to be deployed to a different region than the resource group containing them, using a declarative file that defines the target end-state.Answer
  3. C
    All resources defined within the ARM template must be deployed to the East US region because resources automatically inherit the location of their parent resource group.
  4. D
    The ARM template must specify the precise step-by-step order of execution commands to create the resource group first before creating the virtual machines.

Answer

ARM templates allow resources to be deployed to a different region than the resource group containing them, using a declarative file that defines the target end-state.
The correct option is correct because ARM templates use declarative syntax, where you describe what resources you want to deploy without writing the sequence of programming commands to create them. Furthermore, resources inside a resource group can be located in different regions than the resource group itself.

Step-by-Step Solution

1
Analyze the requirement for region alignment between resources and their resource group.
Identify that Azure allows resources to be deployed in any supported region, regardless of the resource group's location.
The resource group location is primarily used for storing deployment metadata, not restricting resource locations.
2
Evaluate the deployment methodology requirement (declarative vs. imperative).
Confirm that ARM templates and Bicep files use declarative syntax to describe the desired target state.
Declarative templates let Azure Resource Manager orchestrate the creation and ordering of resources automatically without requiring imperative step-by-step scripting.

Key Concept

ARM template declarative nature and Resource Group location boundaries
Estimated Time:1m 15s
Rate this question