Microsoft Certified: Azure AI Engineer AssociatePlan and manage an Azure AI solutionMedium
A manufacturing company is deploying an Azure AI solution for predictive maintenance, using Azure Machine Learning to train and deploy models that analyze sensor data from factory equipment. The solution needs to be deployed across multiple production environments (development, staging, production) with consistent configurations and automated updates. The company wants to ensure that infrastructure changes are auditable, repeatable, and version-controlled. Which deployment strategy should they adopt?
- AUsing Azure Pipelines with Infrastructure as Code (IaC) templates.
- BManual deployment via Azure portal for each environment.
- CScripting deployments using Azure CLI commands in a local environment.
- DCreating custom PowerShell scripts for each environment's configuration.
Show answer & explanationAnswer & explanation
Correct answer: A. Using Azure Pipelines with Infrastructure as Code (IaC) templates.
Using Azure Pipelines with Infrastructure as Code (IaC) templates (like ARM templates or Bicep) ensures consistent, automated, auditable, and version-controlled deployments across multiple environments. This approach aligns with DevOps best practices for managing infrastructure and application configurations.
Why the other options are wrong
- B. Manual deployment is prone to human error, inconsistent, and not easily auditable or repeatable, failing to meet the requirements.
- C. While Azure CLI scripting offers automation, managing complex configurations across multiple environments can become unwieldy without proper IaC and pipeline integration, and it lacks inherent version control for the infrastructure definition itself.
- D. Custom PowerShell scripts, similar to Azure CLI scripts, can automate tasks but lack the structured, declarative nature of IaC templates for defining infrastructure, making them harder to manage consistently and less auditable across environments.
Infrastructure as Code (IaC) with Azure Pipelines
A deployment strategy that uses declarative definition files (IaC) stored in version control and automated pipelines (Azure Pipelines) to provision and manage infrastructure consistently and repeatably.
- Enables consistent deployments across environments.
- Infrastructure definitions are version-controlled and auditable.
- Automates deployment processes, reducing manual errors.
Memory trick: IaC in Pipelines 'Paves' the way for perfect deployments.