Chapter 4 of 10 · Microsoft AZ-400

Pipelines: testing strategy

Quality and release gates, a layered test strategy, test tasks and agents, load tests and code coverage analysis.

  • 2topics
  • 10 minfast track

Topics in this chapter

Take them in order, or jump to the one you need.

  1. 1Quality Gates and Release GatesAZ-400 gates: quality gates in builds and pull requests, classic release gates, YAML environment checks, GitHub protection rules…5 min
  2. 2Testing Strategy, Test Tasks and Code CoverageAZ-400 testing: the test pyramid, Azure Load Testing, test tasks and agents in pipelines, publishing results, flaky tests and…5 min

About this chapter

What this chapter covers

A pipeline that deploys without testing is only a faster way to break production. This chapter is part of the build and release pipelines domain, worth 50 to 55 percent of the exam in total. It covers the gates that stop bad changes, the test types a good strategy includes, how to run tests and publish results in a pipeline, and how to measure code coverage.

The key skill is placing the right test or gate at the right point: fast checks early, expensive checks later, and human or automated approvals before production.

How the topics fit together

Commitfast feedbackUnit testsand coverageIntegration and UI testson a test stageLoad and securitybefore releaseGateapprove or block
  • Quality gates and release gates covers the checks that decide whether a change may continue.
  • Testing strategy, test tasks and code coverage covers test types, running tests in pipelines and coverage.
Exam tip

Put the cheapest, fastest tests first. A unit test failure should stop the run before a slow environment is created.

How to use these pages

Each topic page has the same shape, so you can skim for what you need.

  • What it is: the idea in plain words.
  • How it works: the mechanism, with examples and tables.
  • What to remember for the exam: the facts to memorise and how questions are phrased.
  • Common mistakes: the classic traps.
  • Check yourself: three questions to test your understanding.

Ready for more practice?

The full Microsoft AZ-400 question bank has 766 questions, with timed practice exams and an explanation for every answer.

This study guide is independent and is not affiliated with, endorsed by, or sponsored by Microsoft. Vendor names, certification names and exam codes are trademarks of their respective owners and are used for identification only.