AZ-400 Question 124
Select 2You are configuring a multi-stage YAML pipeline in Azure DevOps to build and deploy your organization's web application to multiple environments. The team requests that deployments to the Production environment require manual approval from a designated business stakeholder to ensure compliance. Which two actions should you perform to implement manual approval for the Production environment?
- A
Define a dependsOn relationship in the pipeline YAML so that the Production stage only runs after the QA stage succeeds.
- B
Enable and configure 'Approvals and checks' for the Production environment in Azure DevOps, specifying the stakeholder as an approver.
- C
Include a manual intervention task in the Production stage, prompting the stakeholder to approve or reject the deployment before continuing.
- D
Grant the stakeholder Admin access on the pipeline to allow them to cancel or restart deployments at will.
Show answer and explanation
Correct answers: B, C
Explanation
To require manual approval prior to Production deployment in Azure DevOps, you can configure environment-based approvals by enabling �Approvals and checks� on the Production environment. You can also implement a manual intervention task in your YAML pipeline to pause the deployment and require a stakeholder� sign-off. For further details, refer to the Azure DevOps documentation on configuring environment approvals: https://learn.microsoft.com/azure/devops/pipelines/process/environments#approvals.
- A. Incorrect.
Option 1 is incorrect. A dependsOn relationship only ensures that the Production stage waits for QA to complete successfully. It does not enforce a manual approval step.
- B. Correct.
Option 2 is correct. Using 'Approvals and checks' in the environment settings is a built-in DevOps feature that allows you to specify who must approve a deployment before it proceeds.
- C. Correct.
Option 3 is correct. A manual intervention task embedded within the Production stage ensures that a designated user must confirm the deployment before the stage executes further steps.
- D. Incorrect.
Option 4 is incorrect. Granting Admin access to the stakeholder could give them broader privileges than necessary, and it does not inherently create a formal approval checkpoint.