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?
- AA nested resource group must be created within the main resource group to house the West US virtual machines separately from the East US resources.
- 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.Cevap
- CAll 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.
- DThe ARM template must specify the precise step-by-step order of execution commands to create the resource group first before creating the virtual machines.
Cevap
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.
Adım Adım Çözüm
Anahtar Kavram
ARM template declarative nature and Resource Group location boundaries
Tahmini Süre:1m 15s