Skip to Content

Microsoft AZ-400: How Many Stages and Jobs Does the Azure DevOps Pipeline Contain?

Analyze an Azure DevOps pipeline YAML output to determine the number of stages and jobs it contains. Prepare for the Microsoft AZ-400 certification exam with this detailed explanation.

Table of Contents

Question

You company uses Azure DevOps to deploy infrastructures to Azure.

Pipelines are developed by using YAML.

You execute a pipeline and receive the results in the web portal for Azure Pipelines as shown in the following exhibit.

You execute a pipeline and receive the results in the web portal for Azure Pipelines as shown in the following exhibit.

Use the drop-down menus to select the answer choice that completes each statement based on the information presented in the graphic.

NOTE: Each correct selection is worth one point.

The pipeline contains:

  • one stage
  • two stages
  • three stages
  • four stages
  • five stages

Build_vm contains:

  • one job
  • two jobs
  • three jobs
  • four jobs
  • five jobs

Answer

Based on the information shown in the Azure Pipelines output, the pipeline contains:

two stages

The exhibit displays an “Overview” section that lists two items: “initialize build” and “deploy to dev”. These represent the two stages in the pipeline.

The build_vm stage contains:

seven jobs

Explanation

Under the “initialize build” stage, there are 7 jobs listed:

  1. initialize build
  2. Initialize job
  3. Checkout
  4. CmdLine
  5. Post-job: Checkout
  6. Finalize job
  7. Finalize build

Therefore, the build_vm stage contains a total of 7 jobs that are executed as part of that stage in the pipeline.

In summary, the Azure DevOps YAML pipeline shown in the exhibit is composed of two main stages, with the first stage “build_vm” containing seven jobs that carry out the build and initialization tasks. Carefully analyzing pipeline outputs like this is crucial for understanding the structure and execution flow when working with Azure Pipelines.

Microsoft AZ-400 certification exam practice question and answer (Q&A) dump with detail explanation and reference available free, helpful to pass the Microsoft AZ-400 exam and earn Microsoft AZ-400 certification.