Microsoft DevOps Engineer Expert (AZ-400) · Section 3 · 53% of the exam
Design and implement a strategy for job execution order, including parallelism and multi-stage pipelines
One of the objectives of the Exam AZ-400: Designing and Implementing Microsoft DevOps Solutions exam, in the section “Design and implement build and release pipelines”. Here is what it covers, the points to remember and a question to try.
What it covers
How a YAML pipeline is structured, how stages and jobs are ordered and parallelised, how hybrid and self-hosted scenarios work, how templates, variable groups and task groups give reuse, and how environments enforce approvals and checks.
Points to remember
- Hierarchy: pipeline > stages > jobs > steps; stages run in order by default, jobs in a stage run in parallel.
- Macro $(x) at task runtime, template ${{ }} at compile time, runtime $[ ] for conditions and outputs.
- Output variables: isOutput=true, a step name, and dependencies / stageDependencies to read them.
- strategy.matrix expands variants, maxParallel limits concurrency; strategy.parallel slices identical copies.
- Deployment job strategies runOnce, rolling, canary; hooks preDeploy, deploy, routeTraffic, postRouteTraffic, on failure/success.
Try a question
A script step sets a variable at run time. A later step uses ${{ if eq(variables.mode, 'fast') }} to include an extra job, but the job is never included. Why?
- AVariables set by scripts are always empty
- BThe eq function is not available in template expressions
- CTemplate expressions are evaluated at compile time
- DThe agent pool is out of capacity
Show the answer
C. Use a condition on the job (evaluated at run time) instead of ${{ if }} when the decision depends on a value produced during the run.
Written for practice in the style of the exam: never a question from the real exam.
In the course
The lesson YAML pipelines: structure, ordering, reuse and environments teaches this objective (about 55 minutes), and 38 practice questions test it. The course has lessons, exam-style questions, timed practice exams and an AI tutor for every objective, and a pass prediction that tells you when you're ready to book.
More in this section
- Recommend package management tools including GitHub Packages and Azure Artifacts
- Design and implement package feeds and views for local and upstream packages
- Design and implement a dependency versioning strategy for code assets and packages, including semantic versioning (SemVer) and date-based (CalVer)
- Design and implement a versioning strategy for pipeline artifacts
- Design and implement quality and release gates, including security and governance
- Design a comprehensive testing strategy, including local tests, unit tests, integration tests, and load tests
- Implement tests in a pipeline, including configuring test tasks, configuring test agents, and integration of test results
- Implement code coverage analysis
- Select a deployment automation solution, including GitHub Actions and Azure Pipelines
- Design and implement a GitHub runner or Azure DevOps agent infrastructure, including cost, tool selection, licenses, connectivity, and maintainability
- Design and implement integration between GitHub repositories and Azure Pipelines
- Develop and implement pipeline trigger rules