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

  1. retaining access to historical build and release data for auditing,
  2. re-using the existing variable groups, and
  3. 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.

Microsoft DevOps Engineer Expert AZ-400
Design and implement build and release pipelines
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot