AZ-401 study notes · 35–40% of the exam

Design and implement build and release pipelines

First draft for review. Check details against Microsoft Learn before relying on them.

What this area covers

The biggest domain: packages, testing, pipeline design, deployments, infrastructure as code and keeping pipelines healthy.

Packages and versioning

  • Azure Artifacts feeds and GitHub Packages. Upstream sources cache public packages. Views (such as @Release) promote packages.
  • SemVer (major.minor.patch) or CalVer (date-based). Give pipeline artifacts a clear version too.

Testing and gates

  • Test layers: local, unit, integration and load tests.
  • Quality gates block a stage on test results or coverage. Release gates check conditions before a deployment.
  • Publish test results and code coverage from the pipeline. Copilot and MCP servers can help write tests and pipeline steps.

Pipelines

  • Azure Pipelines or GitHub Actions. Azure Pipelines can build GitHub repositories.
  • Microsoft-hosted agents or GitHub-hosted runners need no upkeep. Self-hosted agents or runners suit private networks or special tools, but you maintain them.
  • YAML triggers run on pushes, PRs, schedules or other pipelines.
  • Stages, jobs and dependsOn set order. Matrix strategies run jobs in parallel.
  • Reuse with YAML templates, variable groups and task groups.
  • Environments carry approvals and checks before a deployment runs.
  • GitHub Agentic Workflows (public preview) are Markdown files with frontmatter, compiled to a .lock.yml that runs in GitHub Actions.

Deployments

  • Blue-green, canary, ring and progressive exposure. Feature flags separate deploy from release. A/B tests compare versions.
  • Order dependent deployments with stage dependencies.
  • Cut downtime with load balancing, deployment slots and swap, and rolling updates.
  • Plan a fast hotfix path and a rollback.

Infrastructure as code and upkeep

  • Bicep, ARM templates or Terraform for infrastructure. Configuration tools such as Azure App Configuration or DSC for settings.
  • Watch failure rate, duration and flaky tests. Cut cost and time with caching and parallel jobs.
  • Set retention for runs, artifacts and packages.