AZ-401 build and release pipelines explained

Updated November 23, 2026

Build and release pipelines are 35-40% of AZ-401, the largest domain, and a candidate who is weak here is unlikely to reach 700. Microsoft’s beta outline splits it into six areas: package management, testing, pipelines and runners, deployments, infrastructure as code and pipeline maintenance. AI assistance appears as writing YAML with Copilot, implementing gates and tests with Copilot and MCP servers, and designing GitHub Agentic Workflows.

Package management

Know Azure Artifacts and GitHub Packages, how feeds and views separate pre-release from release packages, and how upstream sources let a feed proxy public registries. For versioning, SemVer (major.minor.patch, where a breaking change bumps major) suits libraries consumed by others, while CalVer (date-based) suits products released on a calendar. Pipeline artifacts need their own versioning so you can trace a deployment to the exact build.

Testing and gates

Design a strategy that puts fast tests early and slow ones later: local and unit tests on every commit, integration tests after build, load tests before release. Quality gates block a merge or a stage when coverage, test results or scan results miss a threshold; release gates check external conditions, such as monitoring alerts, before promotion. Copilot and MCP servers can help write tests and analyze coverage, but the gate itself must be deterministic, not a model’s opinion.

Pipelines, runners and reuse

TopicWhat to know
Platform choiceAzure Pipelines and GitHub Actions can integrate; pick by where the code and the team live
Agents and runnersMicrosoft-hosted or GitHub-hosted for simplicity; self-hosted for private networks, special hardware or cost control
TriggersCI, PR, scheduled and path filters decide when a pipeline runs
Execution orderStages, jobs, dependencies and parallelism; multi-stage YAML pipelines
ReuseYAML templates, task groups, variables and variable groups
ControlEnvironments with checks and approvals defined in YAML

For self-hosted infrastructure you weigh cost, licenses, connectivity and maintainability. GitHub Agentic Workflows are listed as a design and implement objective; the exam level is: what an agent in a workflow may do, with what permissions, and where a human approves.

Deployments

StrategyIdeaRollback
Blue-greenTwo identical environments; switch trafficSwitch back
CanarySmall share of users firstRoute away from the canary
RingProgressive audiences (internal, early, general)Stop the ring
Feature flagsDeploy dark, enable by flagTurn the flag off
Slot swapSwap staging and production slotsSwap again
RollingUpdate instances in batches behind a load balancerHalt and revert batches

Also expected: ordering dependent deployments reliably, a hotfix path that skips the slow route safely, resiliency (retries, health checks) and deploying containers, binaries, scripts and database changes.

Infrastructure as code and maintenance

Choose a declarative approach such as Bicep or Terraform with desired-state configuration, stored in source control and deployed through the same pipelines. For maintenance, watch failure rate, duration and flaky tests, optimize cost and time (caching, parallel jobs, right-sized runners) and set retention for artifacts and dependencies.

Common traps

  1. Choosing a big-bang release when the scenario asks for gradual exposure.
  2. Putting secrets in variables without protection instead of Key Vault or federation.
  3. Using a manual approval where an automated check would do, or the reverse for a production gate.
  4. Self-hosted runners for everything, when hosted ones meet the need.

Three practice questions

Question 1. A company wants to expose a new version to 5 percent of users, watch error rates, then increase gradually, with the ability to route everyone away quickly. Which strategy fits?

  • A. Blue-green with a single traffic switch
  • B. Canary release with progressive traffic increase
  • C. A big-bang release outside working hours
  • D. A nightly rebuild of production
Show answer

Answer: B

Canary releases expose a small share of traffic first and expand as health data allows, with rollback by routing away. Blue-green switches all traffic at once, a big-bang release has no gradual exposure, and a nightly rebuild is not a release strategy.

Want more questions like this? Full AZ-401 practice tests →

Question 2. Builds must reach an on-premises database that is not reachable from the internet. What is the most appropriate runner choice?

  • A. A Microsoft-hosted agent with the database opened to the internet
  • B. A GitHub-hosted runner with no network changes
  • C. Skip integration tests that need the database
  • D. A self-hosted agent or runner inside the private network
Show answer

Answer: D

A self-hosted agent or runner inside the network can reach the private database. Hosted runners run in the provider’s network and cannot reach it without extra connectivity, changing the database to be public is a security regression, and skipping the integration tests removes needed coverage.

Want more questions like this? Full AZ-401 practice tests →

Question 3. Several teams copy the same 60-line build job into dozens of pipelines, and every fix must be repeated. What should you introduce?

  • A. A shared YAML template referenced by each pipeline
  • B. A longer copy with extra comments
  • C. A separate variant for each team
  • D. A wiki page listing the steps
Show answer

Answer: A

A shared YAML template (or reusable workflow on GitHub) keeps the logic in one place and lets pipelines reference it with parameters. Copying more, adding comments or giving each team its own variant increases drift rather than removing it.

Want more questions like this? Full AZ-401 practice tests →

Next: security and compliance.