INSIGHTS
Certifications & Exams

Your Free Guide to AZ-400: Azure DevOps Certification Questions Explained

In this article
  1. Read the five-domain scope as one delivery system
  2. Scenario one: protect a production branch without stopping ordinary delivery
  3. Scenario two: a build succeeds but the artifact cannot be trusted
  4. Scenario three: choose a canary or blue-green release
  5. Scenario four: production deployment requires more than a human approval
  6. Scenario five: deploy infrastructure without leaking privileged credentials
  7. Scenario six: pipeline duration increases after adding tests
  8. Scenario seven: a clean pipeline does not explain a production incident
  9. Scenario eight: security policy belongs throughout the pipeline
  10. Turn scenario practice into real AZ-400 readiness

Editorial review date: October 23, 2026. Azure DevOps exam AZ-400 asks candidates to reason about reliable software delivery, source control, automation, security, monitoring and collaboration. The useful way to prepare is not to memorize an alleged pool of live examination questions. It is to understand why a pipeline, release strategy or governance control is the right response to an operational requirement. This guide uses original illustrative scenarios created for study; none is represented as an actual Microsoft exam question or an answer obtained from the live assessment.

Microsoft’s AZ-400 exam blueprint identifies the skills measured as of July 27, 2026. The exam is part of Microsoft Certified: DevOps Engineer Expert, but passing AZ-400 alone does not confer the Expert certification. Microsoft’s credential requirements also call for at least one eligible certification: Azure Administrator Associate or Azure Developer Associate. Verify the current prerequisites in your Learn profile and on the issuer page before making an exam plan.

Read the five-domain scope as one delivery system

The current English-language guide includes five assessed areas: processes and communications (10–15%), source control strategy (10–15%), build and release pipelines (50–55%), security and compliance planning (10–15%), and instrumentation strategy (5–10%). The ranges signal priorities but do not make smaller domains optional. A change that passed CI may still be unsafe because branch permissions allowed an unreviewed commit, deployment credentials are overprivileged or the team lacks evidence that the release improved production health.

AZ-400 expects experience with both GitHub and Azure DevOps solutions in the context of building a DevOps system. It is possible for individual teams to specialize, but the assessment spans strategy and implementation across the delivery lifecycle. Think in terms of dependencies: code changes enter a repository, checks produce evidence, build output becomes an artifact, identity permits deployment, environments enforce gates, and telemetry determines whether the change stays in production.

Scenario one: protect a production branch without stopping ordinary delivery

Practice question: A team deploys from its main branch. Developers sometimes push directly to main to correct urgent issues, and the last emergency fix bypassed tests. The team needs traceable approvals, automated validation and a controlled emergency path. Should it rely on a daily code-review meeting, restrict direct writes and require pull-request checks, or create a permanently unlocked ‘hotfix’ branch?

Preferred design: protect the production branch, restrict who can bypass its policies, require suitable pull-request reviews and build checks, and document a narrowly authorized emergency process. Ordinary changes should take the safe path by default. An emergency exception must have explicit ownership and a traceable follow-up; otherwise it becomes a parallel uncontrolled deployment system.

Why the alternatives fail: meetings are not automatically enforced against a direct push. An unrestricted hotfix branch relocates the same risk. Requiring the maximum possible number of reviewers on every change can also generate delays and incentives to bypass policies. The best design matches controls to branch criticality, change risk and team responsibilities. The detailed branch-protection model shows how ownership, policy bypass and automation fit together.

Scenario two: a build succeeds but the artifact cannot be trusted

Practice question: A service passes unit tests in CI, but operators cannot demonstrate which source commit produced the container currently running in production. Rebuilding the image after approval can pull different dependencies. What should the delivery team change?

Preferred design: produce a versioned immutable artifact once, capture its source and build provenance, scan and test that exact output, then promote the same artifact through controlled environments. Artifact lineage should tie the version to the commit, build definition, dependencies and approval evidence. If the environment requires distinct configuration, inject it through appropriate deployment controls rather than rebuilding application code from a moving branch.

Why the alternatives fail: a ‘green’ pipeline proves that a particular run completed its configured checks, not that the deployed binary is the same checked output. Rebuilding before production may introduce different transitive dependencies or container base layers. Manual copy procedures can obscure who promoted an artifact and when. AZ-400 reasoning links source control, dependency management, test evidence and release traceability into one system.

Scenario three: choose a canary or blue-green release

Practice question: A customer-facing service must expose a new version to a small share of traffic, measure errors and latency, then expand only if health remains acceptable. The database schema change must work with both old and new application versions during deployment. Is a one-step cutover sufficient?

Preferred design: use a deployment pattern that supports progressive exposure, with explicit health thresholds and a state-compatibility plan. A canary can introduce the release to a limited cohort and enlarge exposure as evidence improves. A blue-green approach can maintain two complete application versions to facilitate a traffic switch, but it still requires database and session compatibility. Azure services differ in how they implement traffic distribution, deployment slots and rollback.

Why the alternatives fail: a fast redeploy is not a complete rollback strategy when the database has already been irreversibly changed. A successful smoke test does not establish that a high-volume workload will behave well under real traffic. The blue-green and canary deployment trade-offs describe exposure control, compatible state and failure thresholds in more depth.

Scenario four: production deployment requires more than a human approval

Practice question: A regulated application requires code-review evidence, security scanning, deployment to the correct environment and a healthy error-rate signal before traffic increases. One engineer’s approval has allowed a release even after a vulnerability scan failed. What should the release workflow enforce?

Preferred design: encode independently verifiable checks for build provenance, source policy, test and security results, deployment identity, environment ownership and telemetry. Keep human approval for decisions that genuinely require human judgment, not as a replacement for missing automated evidence. The platform’s gate conditions should fail closed according to the organization’s policy and document any exceptional bypass.

Why the alternatives fail: a person cannot reliably inspect every dependency or reproduce every automated quality signal at deployment time. Conversely, a scanner’s success does not automatically mean a release is appropriate during a service incident. The release-gate design connects test evidence, platform checks and health signals to specific release decisions.

Scenario five: deploy infrastructure without leaking privileged credentials

Practice question: A team uses a pipeline to deploy Terraform-managed Azure resources. The pipeline stores a long-lived client secret in a YAML variable, and the Terraform state file is kept in an unrestricted storage location. The team wants automated deployments while reducing credential exposure and protecting state. What should change first?

Preferred design: use supported workload identity or federated authentication where available, scope deployment permissions narrowly, keep sensitive values in an appropriate secret-management system, and protect Terraform state with storage access controls, encryption, versioning or recovery features appropriate to its sensitivity. Plans and applies should have different approval and environment boundaries when the risk warrants it.

Why the alternatives fail: hiding a secret from the log does not make a long-lived broadly privileged credential safe. Terraform state can contain sensitive resource attributes; treating it as a harmless generated file can expose information even when the code repository is private. An alternate IaC technology does not automatically resolve permission design. The Bicep and Terraform lifecycle includes useful distinctions around state, preview and drift.

Scenario six: pipeline duration increases after adding tests

Practice question: Developers complain that their PR feedback now takes 40 minutes, but management wants all tests removed to restore the original build time. The team has no breakdown of queue delays, flaky tests, dependency downloads or agent saturation. What is the first useful change?

Preferred design: instrument the delivery system before deleting quality controls. Measure queue and execution time per stage, failure categories, repeated retries, agent capacity, cache effectiveness and the time from a change to actionable feedback. Then shorten the critical path by parallelizing independent tests, repairing flaky suites, improving caching or allocating appropriate runner capacity. Keep high-risk validations before promotion, even if some expensive tests move to a different stage.

Why the alternatives fail: removing tests may improve a dashboard number while increasing production defects and recovery time. Adding more agents does not solve serial dependencies or badly designed tests. This scenario assesses instrumentation and feedback as part of DevOps engineering, not as optional analytics after deployment.

Scenario seven: a clean pipeline does not explain a production incident

Practice question: A release’s pipeline reports success, but support tickets increase twenty minutes later. Operators cannot correlate the deployed commit with application error traces, and the release process advances automatically despite a rising failure rate. Which capabilities are missing?

Preferred design: correlate source, artifact and deployment events with application telemetry. Define service indicators relevant to the user experience, establish thresholds for pause or rollback decisions, and preserve observability across both the delivery system and the deployed workload. Incident response should use the same event record to determine what changed and whether reversing that change is safe.

Why the alternatives fail: the build’s success only indicates that configured pipeline stages ran successfully. It does not demonstrate that the system met production reliability objectives afterward. Monitoring based only on VM CPU or deployment completion also misses application errors and user-facing regressions. The design needs a feedback loop from production back into delivery.

Scenario eight: security policy belongs throughout the pipeline

Practice question: A repository contains a dependency with a known vulnerability and a developer has accidentally committed a token. The final deployment scan finds the problem, but the secret may already be in the repository history and artifacts. Is a single scan at the end of the pipeline enough?

Preferred design: apply secret detection and dependency analysis at appropriate early points, protect repository permissions and branch policies, enforce build and artifact checks, and design a response procedure that revokes and replaces exposed credentials. Validate container images and deployment identities before promotion while continuing to monitor runtime posture. Controls should produce actionable findings and assigned owners.

Why the alternatives fail: a final-stage scan may catch issues too late to prevent exposure. Deleting a token from the latest commit does not prove the token is absent from history or external logs. Tool installation without triage, policy ownership and incident response creates reassuring dashboards but weak protection. AZ-400 security and compliance planning connects software supply-chain risk to access, automation and operational recovery.

Turn scenario practice into real AZ-400 readiness

After choosing an answer, describe what would invalidate it. A canary might be unsuitable if the platform cannot direct traffic reliably. Federated authentication might be unsupported for a particular connection and require a carefully managed alternative. A branch rule may be too strict for a low-risk documentation repository but insufficient for production infrastructure code. This ability to reason about constraints matters more than merely remembering a tool’s name.

Create one small demonstration pipeline if you have a safe lab environment: enforce a pull-request build, test and package a simple application, publish an immutable artifact, deploy it to a nonproduction environment and capture a deployment event with health signals. Add a deliberately failing test and demonstrate that promotion stops. Document permissions and remove any secrets from the source. Avoid deploying against an employer’s live subscription without permission.

Microsoft provides a free practice assessment for relevant exams, but its own documentation distinguishes these examples from actual live exam questions. Use it to identify weak areas and recheck the July 2026 objectives. The published passing score is a scaled 700, not a guaranteed proportion of items you must answer correctly. Always confirm your exam booking conditions and certification prerequisites on current Microsoft pages.

The purpose of learning AZ-400 is to engineer a dependable flow from change request to running service. Explain the people, source protections, trusted artifacts, deployment identities, release gates and production feedback that make that flow safe. If your reasoning still works when a product name changes, you are preparing for more than a memorized question bank.

Filed under Certifications & Exams