Microsoft · Practice Exam · Expert · Updated for 2026

AZ-400: DevOps Engineer Expert Practice Exam

Cover every domain on Microsoft’s current AZ-400 skills outline — processes and communications, source control, the pipelines domain (now 50–55%, including IaC), security and compliance, and instrumentation — with scenario-based questions, source-linked explanations to Microsoft Learn, and full timed simulation in Exam mode.

Start 24-hour free trial →
990+
Practice questions
5
Objective domains
2
Study modes
24h
Free trial

AZ-400 exam at a glance

Vendor
Microsoft
Exam code
AZ-400
Certification
Microsoft Certified: DevOps Engineer Expert
Level
Expert (role-based)
Blueprint
Skills Measured outline updated April 24, 2026; verify current edition before publish
Format
40–60 questions; multiple choice, multiple response, drag-and-drop, and case studies (occasional labs)
Duration
Approximately 120 minutes seat time
Passing score
700 of 1000 (scaled)
Delivery
Pearson VUE test center or online proctored (OnVUE)
Prerequisites
To earn the Expert designation you must hold an active AZ-104 (Azure Administrator) or AZ-204 (Azure Developer) certification. You can sit AZ-400 without it, but the badge requires it.
Cost (USD)
$165 USD (regional pricing varies)
Validity
1 year; renew free via an online assessment on Microsoft Learn

Sources: Microsoft — DevOps Engineer Expert certification · AZ-400 Study Guide (Skills measured, updated April 24, 2026). Microsoft periodically updates this exam, so verify the current outline and logistics before scheduling.

About the AZ-400 DevOps Engineer Expert certification

AZ-400 earns the Microsoft Certified: DevOps Engineer Expert badge — the top of Microsoft’s Azure role-based ladder for engineers who unify development and operations. It validates that you can design and implement the whole delivery flow: processes and traceability, source-control strategy, CI/CD pipelines, infrastructure as code, security and compliance, and instrumentation across both Azure DevOps and GitHub. If AZ-104 is about operating Azure and AZ-305 is about designing it, AZ-400 is about automating it — at scale, with quality and security built in.

Two things to get right before you commit a study plan. First, the pipelines domain now carries 50–55% of the exam on Microsoft’s current outline (it absorbed infrastructure as code), so YAML pipelines, GitHub Actions, deployment strategies, and IaC are more than half of your score. Second, to actually earn the Expert designation you must hold an active AZ-104 or AZ-204 — you can pass AZ-400 alone, but the badge (and most of the resume value) requires the prerequisite.

Every PowerKram practice question maps to one of the five current domains and links to the specific Microsoft Learn page it was derived from, so your weak spots become a reading list rather than a guess. For broader context on the DevOps skills AZ-400 tests, see our IT certification study guides in the Learning Hub.

AZ-400 exam domains and weights (April 2026 outline)

Five domains, dominated by build and release pipelines. The ranges are Microsoft’s; actual exam composition varies within the bands. Because pipelines is more than half the exam, weight your study time there first.

Design and implement build and release pipelines

Package management (Azure Artifacts, GitHub Packages); pipeline testing and quality/security gates; authoring YAML pipelines, templates, and runner/agent infrastructure; deployment strategies (blue-green, canary, ring, feature flags); infrastructure as code (Bicep, DSC, Deployment Environments); and pipeline maintenance, including classic-to-YAML migration.

50–55%Dominant — incl. IaC
Design and implement processes and communications

Traceability and flow of work (GitHub Flow, GitHub issues, Azure Boards); DevOps metrics and dashboards (cycle time, lead time, time to recovery); and collaboration via wikis, webhooks, and Azure Boards / GitHub / Microsoft Teams integration.

10–15%
Design and implement a source control strategy

Branching strategies (trunk-based, feature, release); pull-request workflows with branch policies and protection rules; and repository management — large files (Git LFS), scaling (Scalar), permissions, tags, and sensitive-data removal.

10–15%
Develop a security and compliance plan

Authentication and authorization (Entra service principals and managed identities, GitHub Apps/tokens, service connections); secret management (Key Vault, workload identity federation/OIDC); and security/compliance scanning (GitHub Advanced Security, Defender for Cloud DevOps Security, Dependabot, CodeQL).

10–15%
Implement an instrumentation strategy

Monitoring for a DevOps environment (Azure Monitor and Logs, Application Insights, Container/VM Insights, GitHub insights); and analyzing telemetry — performance indicators, distributed tracing, and basic Kusto Query Language (KQL).

5–10%Weight reduced

Source: Microsoft AZ-400 Study Guide — skills measured, updated April 24, 2026. Relative to older outlines, the pipelines domain rose to 50–55% (it now includes infrastructure as code) and the instrumentation domain eased to 5–10%.

Who AZ-400 is for

AZ-400 is aimed at practising DevOps engineers — developers or infrastructure administrators who also own the flow of work, automation, and delivery. Microsoft expects experience with both Azure DevOps and GitHub, and requires an AZ-104 or AZ-204 for the Expert badge:

  • DevOps and platform engineers building CI/CD across Azure Pipelines and GitHub Actions, plus IaC with Bicep or Terraform.
  • Site reliability engineers owning instrumentation, deployment resilience, and feedback loops.
  • Release and build engineers designing branching, artifact, and deployment strategies for teams at scale.
  • Cloud administrators and developers moving into DevOps who already hold AZ-104 or AZ-204 and want to formalize automation skills.

Because the Expert badge requires it, most candidates hold AZ-104 or AZ-204 before sitting AZ-400. For the roles AZ-400 carries genuine resume value in — including salary ranges and progression paths — see our DevOps engineer career paths in the Career Hub.

What this AZ-400 practice exam delivers

Learn mode

Get the correct answer, the reasoning, and a direct link to the exact Microsoft Learn page each question was derived from — immediately after each question. Weighted toward the pipelines domain, where multi-stage YAML, deployment strategy, and IaC are the main testing patterns.

Exam mode

Scenario-based questions on a timer that mirrors the real 120-minute AZ-400 format. Build the pacing for case studies and trade-off questions where more than one answer looks right.

Source-linked explanations

Every answer cites the exact Microsoft Learn / Azure DevOps documentation page it was built from — so you can verify and dig deeper across both Azure DevOps and GitHub, not just memorize.

Score by AZ-400 domain

Results break down by the five current domains — Pipelines, Processes, Source control, Security, and Instrumentation — so practice tells you exactly which area to revisit.

Sample AZ-400 practice questions

Ten free questions across the five current AZ-400 domains, with full explanations and source links to the Microsoft Learn pages each is derived from. The complete bank is available with the 24-hour trial.

Question 1 · Design and implement build and release pipelines (50–55%)

A development team needs to build and deploy a .NET application to Azure App Service every time code is merged to the main branch, with automated tests in the flow. Which pipeline configuration should be implemented?

  1. A manual build triggered by the team lead after reviewing each merge
  2. A YAML multi-stage pipeline with a CI trigger on main, plus build, test, and deploy stages
  3. A classic release pipeline that deploys the latest commit without test stages
  4. Scheduled nightly builds only
Show answer & explanation

Correct: B — a YAML multi-stage pipeline with a CI trigger. A CI-triggered multi-stage YAML pipeline automates build, test, and deploy on every merge, giving fast feedback and continuous delivery.

Why not the others: nightly builds (D) delay feedback by up to a day; manual triggers (A) slow delivery and depend on availability; a classic pipeline without tests (C) risks deploying broken code.

Source: Microsoft Learn — Azure Pipelines key concepts → Further reading: PowerKram — CI/CD pipeline design →
Question 2 · Design and implement build and release pipelines (50–55%)

A team’s Azure Pipelines must deploy to Azure without storing long-lived credentials in the pipeline. Security wants no secret in the service connection that could leak or expire silently. Which authentication approach should be used?

  1. Store an Azure service principal client secret in a pipeline variable marked secret
  2. Use a personal access token (PAT) with a one-year expiry stored in a variable group
  3. Configure a workload identity federation (OIDC) service connection so the pipeline exchanges a short-lived token with Microsoft Entra ID — no stored secret
  4. Embed the credentials in the YAML file and restrict who can read the repository
Show answer & explanation

Correct: C — a workload identity federation (OIDC) service connection. Workload identity federation lets the pipeline obtain a short-lived token from Microsoft Entra ID with no stored secret to leak or expire, which is Microsoft’s recommended secretless pattern.

Why not the others: a stored client secret (A) or PAT (B) is a long-lived credential that can leak and expires silently; credentials in YAML (D) are readable by anyone with repo access.

Source: Microsoft Learn — pipeline auth & secrets →
Question 3 · Design and implement build and release pipelines (50–55%)

A team deploys weekly but had three rollback incidents last month from undetected issues. They need to reduce deployment risk. Which deployment strategy should the team adopt?

  1. Deploy to a staging environment and promote manually after a one-week observation period
  2. Implement canary deployments with progressive traffic exposure and automated health rollback
  3. Use blue-green deployment switching between environments without runtime health monitoring
  4. Deploy directly to all production servers simultaneously during a scheduled off-hours window
Show answer & explanation

Correct: B — canary deployments with automated health rollback. Canary routes a small traffic percentage to the new version and rolls back automatically on error detection before full exposure.

Why not the others: direct full deployment (D) has no safety net; blue-green without monitoring (C) can promote a faulty version; a one-week staging hold (A) delays delivery and cannot simulate real production traffic.

Source: Microsoft Learn — deployment strategies → Further reading: PowerKram — deployment patterns →
Question 4 · Design and implement build and release pipelines (50–55%)

A mobile team builds iOS, Android, and backend services from a single repo. Each component has different build requirements and toolchains. Which pipeline architecture should be used?

  1. Three completely separate repositories each with an independent build pipeline
  2. Template-based YAML pipelines using shared stages with platform-specific template extensions
  3. A single monolithic YAML pipeline running all platform steps sequentially in one job
  4. A classic UI-based release pipeline configured individually for each platform
Show answer & explanation

Correct: B — template-based YAML with shared and platform-specific templates. Templates enable reuse while cleanly handling different build toolchains per platform.

Why not the others: a single sequential pipeline (C) is slow and wasteful; separate repos (A) fragment the codebase and complicate cross-component versioning; classic UI pipelines (D) lack version control and template reuse.

Source: Microsoft Learn — pipeline templates →
Question 5 · Design and implement build and release pipelines (50–55%)

An organization wants no code to reach production without security scanning, and high-severity vulnerabilities must block the deployment. Which pipeline enhancement should be added?

  1. Manual security review by the AppSec team after each production deployment
  2. Security scans scheduled monthly in a separate assessment process
  3. Security requirement notes added to each pull-request description template
  4. SAST and dependency scanning integrated as pipeline gates with severity-based fail rules
Show answer & explanation

Correct: D — SAST and dependency scanning as pipeline gates. Gates that fail on high-severity findings block vulnerable code before production; this is where GitHub Advanced Security and Defender for Cloud DevOps Security fit.

Why not the others: post-deployment review (A) finds issues after exposure; monthly standalone scans (B) miss vulnerabilities introduced between cycles; PR notes (C) have no enforcement mechanism.

Source: Microsoft Learn — release gates → Further reading: PowerKram — pipeline security scanning →
Question 6 · Design and implement build and release pipelines (50–55%)

A DevOps team manages 20 microservices. When one service changes, only the affected service should rebuild and deploy, not all 20. Which pipeline feature enables this selective triggering?

  1. Configure all 20 pipelines to trigger on every commit regardless of path
  2. Disable CI for all pipelines and rely on manual triggers exclusively
  3. Use path-based CI triggers in YAML that filter on each service-specific directory subtree
  4. Maintain a single unified pipeline that rebuilds everything on each change
Show answer & explanation

Correct: C — path-based CI triggers. Path filters fire a pipeline only when files change within its configured directory scope, enabling targeted per-service builds.

Why not the others: triggering everything on every commit (A) wastes build resources; manual-only triggers (B) remove CI benefits; a single pipeline for all services (D) forces unnecessary full rebuilds.

Source: Microsoft Learn — pipeline triggers & path filters →
Question 7 · Design and implement a source control strategy (10–15%)

A team of 15 developers works on a shared codebase. They need parallel feature development, code reviews, and a stable main branch. Which branching strategy should they adopt?

  1. GitHub Flow with short-lived feature branches requiring pull-request reviews before merging
  2. Individual developer branches that accumulate changes and merge in bulk once per month
  3. A single long-lived develop branch where all developers push without PR reviews
  4. All 15 developers committing directly to main with no code-review requirement
Show answer & explanation

Correct: A — GitHub Flow with short-lived feature branches and PRs. It keeps main stable while enabling parallel work with mandatory code review.

Why not the others: direct main commits (D) risk breaking the shared branch; a develop branch without PRs (C) lacks review gates; monthly bulk merges (B) create large, risky integration events.

Source: Microsoft Learn — Git branching guidance → Further reading: PowerKram — branching strategies →
Question 8 · Design and implement a source control strategy (10–15%)

A regulated company needs every code change traceable to a work item and approved by at least two reviewers before merging. Which branch policy should be configured?

  1. Email-based approval chains requiring manager sign-off before each commit
  2. Post-merge audits reviewing commit history at the end of each sprint
  3. Branch policies requiring linked work items and a minimum of two reviewer approvals on main
  4. No branch policies — trust developers to follow the documented review process
Show answer & explanation

Correct: C — branch policies requiring linked work items and two reviewers. Policies enforce work-item linking and minimum reviewer counts as mandatory prerequisites for merge completion.

Why not the others: no-policy trust (D) relies on voluntary compliance; post-merge audits (B) are reactive and cannot prevent non-compliant merges; email approvals (A) are manual, unenforceable in the pipeline, and slow.

Source: Microsoft Learn — branch policies →
Question 9 · Design and implement processes and communications (10–15%)

A project team needs to visualize sprint work, track burndown, and identify blockers across their Azure DevOps project. Which Azure DevOps feature provides this visibility?

  1. Azure Pipelines run history showing build success rates and deployment frequencies
  2. Azure Boards with sprint planning, burndown charts, and work-item tracking
  3. Azure Artifacts feed statistics showing package download counts and versions
  4. Azure Repos commit-history graph showing code change frequency and contributors
Show answer & explanation

Correct: B — Azure Boards. Boards provides sprint planning, task boards, burndown charts, and work-item status tracking for agile project management.

Why not the others: Repos (D) shows code history, not sprint progress; Artifacts (C) tracks package distribution; Pipelines (A) shows build/deploy history, not sprint-level work.

Source: Microsoft Learn — Azure Boards & Scrum →
Question 10 · Develop a security and compliance plan (10–15%)

A company stores pipeline secrets like database connection strings and API keys. Secrets must be accessible to pipelines but hidden from developers in logs. Which approach should be used?

  1. Variable groups linked to Azure Key Vault, with automatic secret masking in pipeline logs
  2. Secret values stored in a committed text file in the repository root
  3. Secret values stored directly as plain-text variables in the pipeline YAML
  4. Secrets passed as visible command-line arguments to build and deploy scripts
Show answer & explanation

Correct: A — variable groups linked to Azure Key Vault. Key Vault-linked variable groups mask secrets in logs and provide centralized lifecycle management and rotation.

Why not the others: plain-text YAML variables (C) expose secrets to anyone reading the pipeline; command-line arguments (D) appear in process listings and logs; repository files (B) expose secrets to every developer with read access.

Source: Microsoft Learn — link secrets from Key Vault → Further reading: PowerKram — secret management →

Keep going: Learning & Career resources

AZ-400 sits at the intersection of two paths — DevOps and platform engineering, and broader cloud-automation careers. Both PowerKram hubs back this exam.

Related Microsoft Azure exams

Deep dive: AZ-400 format, scoring, prerequisites, and what the current outline emphasizes

Exam format and scoring

AZ-400 delivers roughly 40–60 questions in about 120 minutes, in multiple choice, multiple response, drag-and-drop, and case-study formats, with occasional interactive labs. It is scored on a 1000-point scale with 700 to pass, and you do not need to pass each domain separately — overall performance determines the result. Expect trade-off questions where several answers are technically correct and the best one balances security, speed, and cost. Read the certification study guides →

The prerequisite that trips people up

You can sit and pass AZ-400 on its own, but to earn the DevOps Engineer Expert designation you must hold an active AZ-104 or AZ-204. Most of the resume value is in the Expert badge, so plan the prerequisite into your path — developers usually come via AZ-204, infrastructure people via AZ-104. Read the AZ-104 path →

What the current outline emphasizes

On Microsoft’s current outline the pipelines domain is 50–55% of the exam — it absorbed infrastructure as code, so Bicep, desired-state configuration, and Deployment Environments now sit alongside YAML pipelines, GitHub Actions, and deployment strategies. Two recurring blind spots: candidates who know Azure DevOps but not GitHub lose points on GitHub Actions and GitHub Advanced Security, and supply-chain security (dependency, secret, and code scanning) is weighted heavier than its 10–15% domain size suggests. Read about pipeline security →

Realistic study path

AZ-400 rewards building over reading. With your AZ-104 or AZ-204 foundation in place, work the official Microsoft Learn AZ-400 paths, then build real pipelines in both Azure DevOps and GitHub — multi-stage YAML, IaC with Bicep, security scanning gates, and monitoring with Application Insights and KQL. Drill scenario questions in PowerKram Learn mode by domain, starting with pipelines, and finish with full timed Exam-mode runs. Most candidates need 12–16 weeks after meeting the prerequisite. Read the DevOps skills path →

Cost, renewal, and career outlook

The exam costs $165 USD (regional pricing varies), delivered through Pearson VUE at a test center or online with OnVUE. The certification is valid for one year and renews through a free online assessment on Microsoft Learn, available six months before expiry. AZ-400 is among the highest-paid Azure credentials, and it pairs naturally with AZ-500 (security) and AZ-305 (architecture). For salary ranges and role-specific paths, see the Career Hub. Career Hub — DevOps Engineer →

Frequently asked questions

What are the AZ-400 exam domains and weights?
Per Microsoft’s April 2026 outline: Design and implement build and release pipelines (50–55%, including infrastructure as code), Design and implement processes and communications (10–15%), Design and implement a source control strategy (10–15%), Develop a security and compliance plan (10–15%), and Implement an instrumentation strategy (5–10%). Pipelines is more than half the exam.
Did the AZ-400 blueprint change recently?
Yes. On the current outline the pipelines domain is 50–55% (it now includes infrastructure as code) and the instrumentation domain eased to 5–10%. Microsoft periodically updates this exam, so verify the current skills outline before building a study plan.
Do I need AZ-104 or AZ-204 before AZ-400?
To take the AZ-400 exam, no. To earn the Microsoft Certified: DevOps Engineer Expert designation, yes — you must hold an active AZ-104 (Azure Administrator) or AZ-204 (Azure Developer) certification. Most of the resume value is in the Expert badge, so plan the prerequisite in.
What is the AZ-400 passing score and format?
700 of 1000 (scaled). The exam has roughly 40–60 questions in about 120 minutes, in multiple choice, multiple response, drag-and-drop, and case-study formats, with occasional interactive labs. You don’t need to pass each domain separately.
How much does AZ-400 cost and how do I renew?
$165 USD list price (regional pricing varies). The certification is valid for one year and renews via a free online assessment on Microsoft Learn, available starting six months before expiry.

Start your free 24-hour AZ-400 practice trial

Full access to 990+ questions, both study modes, source-linked explanations, and score-by-domain. No credit card required.

Start free trial →