Designing and Implementing Microsoft DevOps Solutions — Question 67
You have an app that is deployed to two environments named Production-A and Production-B by using Azure Pipelines.
You need to configure a release pipeline that will mark the app as complete and ready for release into the Production-B environment. The solution must meet the following requirements:
• Ensure that there are no active Azure Monitor alerts in the Production-A environment before the app is marked as complete.
• Minimize administrative effort.
What should you do?
Answer options
- A. To the Production-B environment stage, add a pre-deployment gate that will query Azure Monitor.
- B. To the Production-A environment stage, add a post-deployment gate that will query Azure Monitor.
- C. To the Production-A environment stage, add a post-deployment approval.
- D. To the Production-A environment stage, add a pre-deployment gate that will query Azure Monitor.
Correct answer: B
Explanation
The correct answer is B because adding a post-deployment gate in Production-A allows you to check for active alerts after the deployment is complete, ensuring the environment is clear before proceeding. Options A and D incorrectly focus on pre-deployment checks, which do not satisfy the requirement of confirming the state post-deployment. Option C does not check for alerts and only requires approval, which does not meet the specified conditions.