Open the app

Free Microsoft DevOps Engineer Expert (AZ-400) practice questions

10 free sample questions for the Microsoft DevOps Engineer Expert (AZ-400) exam, each with an explanation that starts with why a wrong answer is wrong. No account needed. Try the first one now.

DevOps Engineer Expert sample10 free questions
A multi-stage YAML pipeline has a Deploy stage and a Rollback stage. Rollback should run only when Deploy fails. How is that expressed?

Why that one is wrong. Stages run in order of dependencies, and with no dependsOn they follow the order written, top to bottom.

Why that one is wrong. trigger: manual makes the Deploy stage wait for a person; it does not run another stage on failure.

Why that one is wrong. An empty dependsOn makes the stage start in parallel with no dependency and ignores failures.

Why A is right. A stage normally runs only after dependencies succeed; failed() makes it run when the preceding stage fails.

Stage conditions such as failed() or succeeded() with dependsOn control execution paths like rollback.

What the exam covers

  • Design and implement processes and communications (12.8%)
  • Design and implement a source control strategy (12.8%)
  • Design and implement build and release pipelines (53.9%)
  • Develop a security and compliance plan (12.8%)
  • Implement an instrumentation strategy (7.7%)

A few more sample questions

Sample question 1. An Azure DevOps Services organization uses the Agile system process. Support leads want a required Customer Impact picklist on the Bug work item type in one project only, without changing any other project. What should the administrator do?

  1. Edit the Agile system process, add the field to Bug, and hide it from the other projects with permissions
  2. Export the Bug type definition as XML, add the field, and import it back with witadmin importwitd
  3. Create an inherited process from Agile, add the field to Bug, then move only this project to it
  4. Add the field on the team settings page for the Bug backlog level of that project

Sample question 2. A repository requires code owner review on main. CODEOWNERS contains, in order: "* @org/leads", then "/infra/terraform/ @org/platform", then "*.tf @org/network". Pull requests that change /infra/terraform/vpc.tf are reviewed only by the network team, but the platform team must own everything under /infra/terraform/, including .tf files, while network keeps .tf files elsewhere. How should the file be fixed?

  1. Add @org/platform to the *.tf line, so that both the network and platform teams own every Terraform file in the repository
  2. Move the /infra/terraform/ line below the *.tf line, so it is the last pattern that matches files in that folder
  3. Move the "* @org/leads" line to the bottom of the file, so the default owner is checked last and settles every conflict
  4. Change "/infra/terraform/" to "/infra/terraform/**" in place, because patterns without a double asterisk do not match nested files

Sample question 3. A workflow only creates issues when a build fails, but its GITHUB_TOKEN carries broader access than needed. How should the permissions be reduced?

  1. Replace GITHUB_TOKEN with a classic personal access token with repo scope
  2. Set a permissions key in the workflow or job granting only issues: write
  3. Store GITHUB_TOKEN in a repository secret and reference it from there on each run
  4. Give each workflow file a unique name so that the tokens issued to them are distinct

Answer them with explanations

Get the DevOps Engineer Expert Cert Pass

$19.99 once. No subscription.

  • 278 practice questions with explained answers, 5 full timed practice tests, 278 flashcards and 3 study games.
  • Any 2 for $34.99. Any 3 for $49.99.
  • 25% off with code LAUNCH25: first 250 buyers, ends December 31, 2026.
  • Refund within 24 hours of a website purchase. See the Terms.
Get the DevOps Engineer Expert Cert Pass

How to trust this practice

  • Every answer explains why, and cites its source.
  • Practice tests are built around the vendor’s published exam domains.
  • These are practice questions, not real exam questions.

See the free sample questions for every certification

Take it with you

  • Download on the App Store
  • Get it on Google Play