CertLumen

Microsoft DevOps Engineer Expert (AZ-400) · Section 3 · 53% of the exam

Develop and implement complex pipeline scenarios, such as hybrid pipelines, VM templates, and self-hosted runners or agents

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

In GitHub Actions workflow A (same organization) calls reusable workflow B with secrets: inherit, and B calls reusable workflow C without passing secrets. A repository secret API_KEY exists. Does C receive API_KEY?

  1. ANo; B must pass the secret on to C
  2. BNo, because reusable workflows cannot be nested
  3. CYes, secrets: inherit flows down the entire call chain
  4. DYes, but only as an environment variable
Show the answer

A. Reusable workflows can nest up to ten levels, permissions can only stay equal or be reduced, and each caller decides which secrets to pass to its callee.

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

← Previous objective · All 86 objectives · Next objective →