CertLumen

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

Design and implement quality and release gates, including security and governance

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 to block bad changes with branch policies, environment checks, release gates and security controls, how to layer local, unit, integration and load tests, how to run and publish tests and results in pipelines, and how to measure code coverage.

Points to remember

  • Gates sit before merge (branch policies, branch protection), before deploy (checks, approvals, protection rules) and after deploy (monitor alerts).
  • YAML approvals and checks belong to the resource and are not editable from the YAML; check order is static, pre-approvals, dynamic, post-approvals, exclusive lock.
  • Classic release gates: Invoke Azure Function, Invoke REST API, Query Azure Monitor alerts, Query work items.
  • Branch control + Required template + Evaluate artifact are the governance checks; Business Hours limits the deployment window.
  • Test pyramid: many unit tests, fewer integration tests, few UI and load tests; shift left and shift right.

Try a question

A pipeline publishes coverage and the pull request shows a failed code coverage status, yet reviewers can still complete the pull request. The team wants low coverage to block merges. What should they do?

  1. ASwitch to PublishCodeCoverageResults@1
  2. BIncrease the diff target to 100% in azurepipelines-coverage.yml
  3. CMark the pipeline as classic
  4. DRequire the coverage status in a branch policy
Show the answer

D. Code coverage status posted from the pipeline follows the genre/name pattern and can be added as a status policy under the branch policies of the target branch.

Written for practice in the style of the exam: never a question from the real exam.

In the course

The lesson Quality gates, testing strategy and code coverage teaches this objective (about 50 minutes), and 26 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 →