Microsoft DevOps Engineer Expert AZ-400 Practice Question
You are defining a multi-stage YAML pipeline in Azure DevOps. All deployments that target the Production environment must wait for approval from the Operations security group and must also satisfy an Azure Monitor alert gate that is evaluated during deployment. You want these requirements to apply no matter which pipeline deploys to Production. What is the correct way to implement the approvals and gates?
Set the approval: true attribute on the deployment job and reference an Azure Monitor service connection in the YAML.
Create an organization-wide policy that restricts deployments to Production and attach the Azure Monitor alert as a variable group permission.
Add an approvals: block under the environment property in the YAML file and list both the Operations group and the Azure Monitor gate.
Configure the manual approval and Azure Monitor gate directly on the Production environment in the Azure DevOps portal so every pipeline that references that environment inherits the checks.
Approvals and checks such as group-based manual approval and Azure Monitor alert gates are properties of the environment itself. They are configured once on the Production environment (through the Azure DevOps portal or by using the REST API). Any YAML pipeline that references that environment automatically inherits those checks. YAML does not include syntax to declare or override environment approvals or gates inside a pipeline file, so attempting to add approvals: or similar keys to the YAML will be ignored or cause an error. Organization-level policies and variable group permissions do not provide deployment gating for an environment.
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 are Azure DevOps environments?
Open an interactive chat with Bash
How do approval gates work in Azure DevOps?
Open an interactive chat with Bash
What is an Azure Monitor alert gate?
Open an interactive chat with Bash
What is an Azure DevOps environment in the context of pipelines?
Open an interactive chat with Bash
What is an Azure Monitor alert gate, and how is it evaluated during deployment?
Open an interactive chat with Bash
Can approvals and gates for environments in Azure DevOps be configured using YAML pipelines?
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 .