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?
- AAdd a branch policy on main that requires release manager approval on pull requests
- BAdd an approval under Approvals and checks on service connection sc-prod, with the release managers group as approvers
- CAdd condition: succeeded() to the production stage so it depends on the previous stage succeeding
- 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
itmoshi is an unofficial study service and is not affiliated with Microsoft or any exam provider.