nerdexam
Microsoft

AZ-400 · Question #608

You have an infrastructure as code (IaC) solution that is managed by using Bicep files and Azure Pipelines. You need to ensure that pipeline actions that significantly affect the existing infrastructu

The correct answer is C. a build pipeline with a Bicep file that performs a what-if operation. To effectively review pipeline actions in Azure Pipelines, especially when managing infrastructure as code with Bicep, you need to integrate your Bicep deployments with a CI/CD pipeline and implement robust validation and testing practices. This includes using linting, preflight

Submitted by wei.xz· Mar 6, 2026Design and implement build and release pipelines

Question

You have an infrastructure as code (IaC) solution that is managed by using Bicep files and Azure Pipelines. You need to ensure that pipeline actions that significantly affect the existing infrastructure are reviewed before they are run. What should you configure?

Options

  • Aa release pipeline that performs a repository build validation
  • Ba branch policy that performs a repository check for comment resolution
  • Ca build pipeline with a Bicep file that performs a what-if operation
  • Da build pipeline with a Bicep file that performs a deploy operation

How the community answered

(62 responses)
  • A
    3% (2)
  • B
    5% (3)
  • C
    82% (51)
  • D
    10% (6)

Explanation

To effectively review pipeline actions in Azure Pipelines, especially when managing infrastructure as code with Bicep, you need to integrate your Bicep deployments with a CI/CD pipeline and implement robust validation and testing practices. This includes using linting, preflight validation, and "what-if" operations to ensure your changes are valid before deployment, and testing resources after each deployment. What-if Operation: Employ the az deployment what-if command to simulate the changes that would be made to your infrastructure without actually deploying them, allowing you to review the impacts. https://learn.microsoft.com/en-us/azure/azure-resource-manager/bicep/add-template-to-azure-

Topics

#Bicep#what-if operation#IaC review#pipeline gates

Community Discussion

No community discussion yet for this question.

Full AZ-400 Practice