Question

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

A development team is preparing to deploy an application consisting of a Web App, an Azure SQL Database, and a Storage Account. A developer suggests writing a step-by-step PowerShell script to create the resources in a specific sequence to prevent dependency conflicts during deployment.

Which of the following describes how Azure Resource Manager (ARM) templates or Bicep files handle this requirement?

  1. A
    ARM templates act as imperative scripts, executing each resource block in the exact top-to-bottom sequence written in the file.
  2. B
    ARM templates resolve execution order by requiring all deployed resources to reside in the same location as the target resource group.
  3. ARM templates are declarative, allowing ARM to analyze defined dependencies and deploy resources in parallel or the correct order automatically.Answer
  4. D
    ARM templates resolve dependencies by nesting the resource groups of dependent resources inside each other.

Answer

ARM templates are declarative, allowing ARM to analyze defined dependencies and deploy resources in parallel or the correct order automatically.
The correct option is correct because ARM templates and Bicep use a declarative syntax. You define the desired end state of the infrastructure, and Azure Resource Manager determines the correct order to deploy the resources, utilizing parallel execution where possible and resolving dependencies dynamically.

Step-by-Step Solution

1
Identify the core deployment model of ARM templates and Bicep.
They are declarative rather than imperative, meaning you specify the desired end state rather than step-by-step commands.
This establishes that sequential scripts are not required for provisioning order.
2
Analyze how ARM manages resource orchestration.
ARM evaluates dependencies (explicitly defined or implicitly derived) to build a dependency graph.
This enables ARM to safely deploy independent resources in parallel and dependent resources in their correct sequence.

Key Concept

Declarative nature and dependency orchestration of Azure Resource Manager (ARM) templates
Estimated Time:1m 0s
Rate this question