Question

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

Which term describes the syntax style used by Azure Resource Manager (ARM) templates, where you define the desired state of your infrastructure rather than the sequence of programming commands to create it?

  1. A
    Imperative scripting
  2. B
    Resource group nesting
  3. Declarative syntaxAnswer
  4. D
    Location inheritance

Answer

Declarative syntax
The correct answer is declarative syntax. With declarative syntax, you define the target state of the resources (such as virtual machines, storage accounts, or virtual networks) you want to create, along with their properties, and Azure Resource Manager manages the orchestration and deployment steps. You do not need to write procedural code or sequence commands.

Step-by-Step Solution

1
Analyze the requirements described in the question.
The question asks for the deployment approach where the user defines the desired final state of resources rather than sequencing step-by-step commands.
This establishes the fundamental distinction between declarative and imperative models of infrastructure management.
2
Identify the configuration model utilized by Azure Resource Manager (ARM) templates.
ARM templates (and Bicep templates) use declarative syntax, letting the orchestration engine handle the deployment mechanics.
Identifying declarative syntax directly matches the scenario requirements.

Key Concept

Azure Resource Manager (ARM) templates use declarative syntax to define infrastructure.
Rate this question