↓ Try a sample question (with explanation)

Microsoft · Practice questions

AZ-400 Exam AZ-400: Designing and Implementing Microsoft DevOps Solutions

Study 466 AZ-400 Exam AZ-400: Designing and Implementing Microsoft DevOps Solutions practice questions with explanations. 47 of them are free to try, no sign-up needed.

Buy to unlock all questions, full reading mode and PDFs.

About this question bank

Questions
466 in total
Free to try
47 questions (no sign-up)
Exam domains
5 domains
Price
JPY 1,500 (≈ US$10; shown in your local currency at checkout) · one-time payment · 3 months
PDF
Japanese–English · Chinese–English · Korean–English · English (for buyers)
Data version
2026-11

About this exam

This is the Microsoft exam for the DevOps Engineer Expert certification. The certification requires either the Azure Administrator Associate or the Azure Developer Associate, but the Developer Associate exam (AZ-204) retired on July 31, 2026, so candidates who still need a qualifying associate certification must earn the Administrator Associate. It covers DevOps processes and communication, source control, build and release pipelines, security and compliance, and instrumentation. AZ-400 and this certification are scheduled to retire on February 1, 2027.

Try a sample question

This is an original sample question written by itmoshi based on the exam objectives.

You deploy to production with an Azure Pipelines YAML pipeline. The only credential that can access the production Azure subscription is the Azure DevOps service connection sc-prod. You want every production deployment to require approval from the release managers group. Developers can edit the YAML file and use sc-prod from the pipeline, but they cannot administer sc-prod or change its checks. Even so, they must not be able to remove or bypass the approval by changing the YAML. What should you do?

  1. AAdd a branch policy on main that requires release manager approval on pull requests
  2. BAdd an approval under Approvals and checks on service connection sc-prod, with the release managers group as approvers
  3. CAdd condition: succeeded() to the production stage so it depends on the previous stage succeeding
  4. DAdd a pipeline variable settable at queue time and set it to true only when approved
Show answer and explanation

Answer:B Put an approval check on the only protected resource that reaches production: service connection sc-prod.

Why it is correct

In YAML pipelines, approvals are configured under Approvals and checks on protected resources such as service connections and environments, and any stage that uses the resource waits until it is approved. Because the check lives on the resource, a developer who can edit the YAML cannot remove it by changing the file, and without administrator rights on sc-prod they cannot change the check itself. Since sc-prod is the only credential that reaches production, any deployment to production must use it, however the YAML is rewritten, so the approval cannot be bypassed.

The other options

  • ✗ A A branch policy controls pull request merges; it does not stop a pipeline stage from running. Use it to require review before code reaches main.
  • ✗ C A condition only decides whether a stage runs based on things like earlier results; it does not wait for a person. It is also written in the YAML, so developers can change it. Use it to control when a stage runs.
  • ✗ D Whoever queues the run can set the variable themselves, so it is no substitute for an approval. Use queue-time variables to switch parameters per run.

Key takeaway

Keep YAML pipeline gates outside the YAML, on a resource that every path to production must use. Human approval or time windows before deployment → approvals and checks on service connections, environments and similar resources (a check on a resource the YAML can simply stop referencing can be bypassed). Review before code is merged → branch policies.

Try 47 questions like this for free

Most frequent topics

  1. Designing and implementing release pipelines134 questions
  2. Planning security and compliance87 questions
  3. Designing DevOps processes and communication80 questions
  4. Designing and implementing build pipelines75 questions
  5. Implementing an instrumentation strategy67 questions
  6. Designing a source control strategy23 questions

Number of questions per topic among the 466 in this bank (top topics), as classified by itmoshi.

Exam domains

  1. Design and implement processes and communications82 questions
  2. Design and implement a source control strategy23 questions
  3. Design and implement build and release pipelines209 questions
  4. Develop a security and compliance plan86 questions
  5. Implement an instrumentation strategy66 questions

Other Microsoft exams

← All exams

itmoshi is an unofficial study service and is not affiliated with Microsoft or any exam provider.