Question

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

An enterprise operations team is adopting Infrastructure as Code (IaC) to deploy and manage their cloud infrastructure in a repeatable manner. They are evaluating the use of Azure Resource Manager (ARM) templates. Which two of the following statements about ARM templates are correct?

  1. They use a declarative syntax, which allows you to define the desired state of your deployment without writing the sequence of programming commands to create it.Answer
  2. They allow you to define dependencies between resources, ensuring they are deployed in the correct sequence.Answer
  3. C
    They act as imperative scripts that execute sequential programming commands and require manual instructions to rollback changes.
  4. D
    They enable the creation of nested resource groups within a single target resource group to build a multi-tiered organizational structure.

Answer

The correct statements are that ARM templates use a declarative syntax to define the desired state of deployment without sequence programming commands, and they allow defining dependencies between resources to ensure they are deployed in the correct sequence.
The correct statements reflect the core benefits of Azure Resource Manager templates. First, they are declarative, meaning the deployment defines the desired state of resources without specifying the individual command-line steps to achieve it. Second, they support dependencies, ensuring resources that rely on others are deployed in the correct order.

Step-by-Step Solution

1
Analyze the nature of ARM templates and Bicep deployment models.
Identify that ARM templates are declarative configurations where you define the end state, not step-by-step imperative scripts.
This helps rule out options that treat ARM templates as imperative scripting engines.
2
Evaluate the capabilities regarding resource groups and dependencies.
Recognize that resource groups cannot be nested, and that dependencies can be explicitly declared to guide the sequence of parallel deployments.
This rules out nesting resource groups and confirms how dependencies are handled.

Key Concept

Azure Resource Manager (ARM) and ARM Templates/Bicep
Rate this question