Microsoft DevOps Engineer Expert AZ-400 Practice Question
You are migrating an existing classic release pipeline that deploys a web app to Dev, Test, and Production stages in sequence. In the classic pipeline, a designated Approvers security group must manually approve before any deployment to Production. During migration to a multi-stage YAML pipeline you want to keep the approval policy configurable outside of the YAML file so that operations engineers can modify approvers without changing source control. Which approach should you use in the YAML pipeline to meet the requirement?
Use the dependsOn keyword to create an explicit dependency from Test to Production and set a hold condition with runOnce strategy.
Add a pre-deployment gate that references an Azure Monitor alert rule for the Production resource group.
Define an environment resource named Production and configure an approval check on that environment via the Azure DevOps portal.
Insert a ManualValidation@0 task in the Production stage and specify the Approvers group in the YAML definition.
Environment resources in Azure DevOps can be referenced from a YAML pipeline but are administered in the project portal. By creating a Production environment and adding an approval check, the pipeline automatically pauses and waits for the designated approvers, while the list of approvers and other check settings remain editable in the UI with no change to the YAML file itself.
A ManualValidation task would work but the list of approvers is written directly in YAML, so any change would require a code update. The dependsOn keyword only expresses stage ordering and cannot enforce manual approval. Azure Monitor-based gates can be added as checks, but they evaluate monitoring metrics rather than request human approval, so they do not satisfy the requirement.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is an environment resource in Azure DevOps?
Open an interactive chat with Bash
How can approval checks on environments be configured via the Azure DevOps portal?
Open an interactive chat with Bash
Why doesn’t the ManualValidation task meet the requirement for configurable approvals?
Open an interactive chat with Bash
Microsoft DevOps Engineer Expert AZ-400
Design and implement build and release pipelines
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .