nerdexam
MicrosoftMicrosoft

AZ-400 · Question #608

AZ-400 Question #608: Real Exam Question with Answer & Explanation

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, 2026

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

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-

Community Discussion

No community discussion yet for this question.

Full AZ-400 PracticeBrowse All AZ-400 Questions