Launch price: every exam for $29.99 a year, for the first 300 buyers. See the price

CertStreak
Menu

Design and implement a strategy for job execution order, including parallelism and multi-stage pipelines

A worked example

Multiple answers

An Azure DevOps organization has a YAML pipeline with three jobs in the same stage: BuildWeb, BuildApi and BuildDocs. None of the jobs has a dependsOn value, and none uses a matrix strategy. All three jobs use a self-hosted agent pool named BuildPool, which contains one agent. The organization has one self-hosted parallel job.

When the pipeline runs, the three jobs run one after another. You need all three jobs to run at the same time. The three jobs must remain separate jobs.

Which two actions should you perform? Each correct answer presents part of the solution.

Choose 2 answers.
Why

The jobs are in the same stage and have no dependencies, so they are already eligible to run in parallel; the limit is capacity. An agent runs only one job at a time, and each job consumes a parallel job, so with one agent and one parallel job the jobs queue and run sequentially. Adding two agents and raising the self-hosted parallel jobs to three removes both limits.

Practise this topic until it's automatic.

Ten questions a day, every answer explained, and misses that come back until you beat them.

Start free