Soru

Zorluk: OrtaAzure Resource Manager (ARM) and ARM Templates/Bicep

A company is planning to automate their environment provisioning using Azure Resource Manager (ARM) templates. During the planning phase, the team evaluates the rules and characteristics governing resource group deployments. Which of the following statements is correct regarding ARM templates and resource group deployments?

  1. A
    Templates are written as imperative scripts, specifying the exact sequence of CLI or PowerShell commands that Azure must execute.
  2. Resources defined in a template can be deployed to a different Azure region than the resource group hosting the deployment.Cevap
  3. C
    Templates allow you to create nested resource groups within a parent resource group to isolate different application layers.
  4. D
    All resources defined in a template must reside in the same Azure region as the resource group that contains the deployment.

Cevap

Resources defined in a template can be deployed to a different Azure region than the resource group hosting the deployment.
Azure resources do not have to reside in the same geographic region as the resource group that contains them. A resource group's location is primarily used to store its deployment metadata, while the resources themselves can be deployed to any supported Azure region specified in the template.

Adım Adım Çözüm

1
Evaluate the syntax style of ARM templates.
Identify that templates are declarative rather than imperative scripts.
This rules out the option stating templates are imperative scripts.
2
Examine the hierarchy of Azure Resource Groups.
Recognize that resource groups cannot contain other resource groups.
This rules out the option describing nested resource groups.
3
Compare location constraints between resources and resource groups.
Confirm that resources can be placed in different regions than their containing resource group, which only stores metadata.
This shows that resources do not need to share the group's location, verifying the correct option and ruling out the location restriction option.

Anahtar Kavram

Azure Resource Manager (ARM) template deployments and resource group boundaries
Bu soruyu puanla