Soru

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

An organization plans to automate the deployment of a web application tier, a database tier, and network security groups. The IT team needs to ensure that the deployment is repeatable, prevents configuration drift, automatically handles resource dependencies in the correct order, and validates the configuration structure before any resources are actually provisioned.

Which deployment strategy should the organization implement to meet these requirements?

  1. A
    Author an Azure CLI script that executes commands sequentially, relying on the CLI's native capability to automatically parse step-by-step commands and convert them into declarative configurations.
  2. Define the infrastructure in a Bicep or Azure Resource Manager (ARM) template to utilize declarative syntax, allowing the platform to determine dependencies and validate the deployment beforehand.Cevap
  3. C
    Nest the database and web tiers inside parent Resource Groups defined in the template, ensuring that subordinate resource groups isolate the environment layers.
  4. D
    Create separate templates for each region because all resources defined within a single template must reside in the same Azure region as the target Resource Group.

Cevap

Define the infrastructure in a Bicep or Azure Resource Manager (ARM) template to utilize declarative syntax, allowing the platform to determine dependencies and validate the deployment beforehand.
Defining the infrastructure in a Bicep or Azure Resource Manager (ARM) template is correct because templates use declarative syntax. This means you define the target state of the resources, and Azure Resource Manager automatically evaluates dependencies, validates the configuration structure before deployment, and executes it in an idempotent way.

Adım Adım Çözüm

1
Analyze the requirements for declarative deployment, pre-flight validation, and automatic dependency handling.
Identify that Azure Resource Manager (ARM) templates and Bicep are the standard tools designed for declarative infrastructure as code (IaC) in Azure.
ARM/Bicep templates allow you to define the desired end-state of your resources. The platform handles the deployment sequence automatically.
2
Evaluate why imperative scripting options do not meet the criteria.
Recognize that sequential Azure CLI or PowerShell scripts do not natively perform pre-flight validation or automated dependency tracking.
Imperative scripts execute step-by-step instructions and are prone to partial failures without built-in state management.
3
Evaluate the architectural constraints of Resource Groups.
Verify that Resource Groups cannot be nested and that resources are not restricted to the region of their Resource Group.
This rules out options suggesting nested Resource Groups or region-segregated templates due to resource location inheritance.

Anahtar Kavram

Azure Resource Manager (ARM) templates and Bicep use a declarative syntax to define infrastructure, allowing pre-flight validation, automated dependency management, and idempotent deployments, while operating within flat Resource Group boundaries that support multi-region resources.
Tahmini Süre:2m 0s
Bu soruyu puanla