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?
- AAuthor 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.
- 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.Answer
- CNest the database and web tiers inside parent Resource Groups defined in the template, ensuring that subordinate resource groups isolate the environment layers.
- DCreate 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.
Answer
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.
Step-by-Step Solution
Key Concept
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.
Estimated Time:2m 0s