Microsoft DevOps Engineer Expert AZ-400 Practice Question
Your organization uses a classic build pipeline that triggers on each push to the main branch and a separate classic release pipeline with two sequential stages (Test and Production). Internal compliance rules now mandate that all new pipelines must be defined as code in the repository. You are asked to migrate to a single multi-stage YAML pipeline while
retaining access to historical build and release data for auditing,
re-using the existing variable groups, and
keeping the current manual approval before deployment to Production.
Which action should you perform first to satisfy these requirements?
Create a new azure-pipelines.yml file that defines the build and both deployment stages, references the existing variable groups, and specifies an environment with an approval gate for the Production stage.
Run the Azure DevOps Pipeline Migration wizard to automatically convert the classic build and release pipelines into one YAML file and migrate the run history.
Rename the classic build definition to azure-pipelines.yml in the web portal; Azure DevOps will treat the definition as a YAML pipeline and preserve all settings and history automatically.
Use the classic pipeline designer's View YAML option to export each build task, paste the snippets into a single YAML file, and then delete the classic pipelines to avoid duplicates.
The classic build and release definitions cannot be automatically converted or overwritten. The recommended approach is to author a new multi-stage YAML pipeline in the repository. In that YAML definition you can re-use existing variable groups with the variables section and configure an environment that includes an approval check for the Production stage. Leaving the original classic pipelines in place (but disabled) preserves all past run and release records. Renaming or exporting the classic definitions does not create an end-to-end YAML pipeline, and there is no tool that performs a one-click migration while maintaining history.
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.
How does a multi-stage YAML pipeline differ from classic pipelines in Azure DevOps?
Open an interactive chat with Bash
What is the role of variable groups in YAML pipelines?
Open an interactive chat with Bash
How do you configure manual approvals in a YAML pipeline?
Open an interactive chat with Bash
What is a multi-stage YAML pipeline in Azure DevOps?
Open an interactive chat with Bash
Why is it important to preserve historical build and release data during migration?
Open an interactive chat with Bash
How do variable groups work in Azure DevOps 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 .