# Microsoft DevOps AZ-400 practice exams

> Prepare for AZ-400 with 240 practice questions across 5 full timed exams, weighted toward Design and Design. Every answer is explained.

Page: https://devopscodelab.com/exams/microsoft-az-400/

240 questions in 5 timed practice tests. Each test has about 50 questions and a 100-minute limit. The pass mark is 70%. Results are split across the 5 exam domains.

## Exam at a glance

| Setting | Value |
| --- | --- |
| Practice tests | 5 |
| Questions in total | 240 |
| Questions per test | About 50 |
| Time limit per test | 100 minutes |
| Pass mark | 70% |
| Question types | Single answer and multiple answer (20 multiple-answer questions) |
| Level | Expert |
| Category | DevOps & Cloud Native |

These are the settings of our practice tests. Check the official Microsoft exam page for the current format before you book.

## Domains and weights

| Domain | Weight | Questions in our bank |
| --- | --- | --- |
| Design and implement processes and communications | 13% | 31 |
| Design and implement a source control strategy | 13% | 32 |
| Design and implement build and release pipelines | 54% | 129 |
| Develop a security and compliance plan | 13% | 31 |
| Implement an instrumentation strategy | 7% | 17 |

## Price and access

- AZ-400 practice exams: $14.99 for 12 months of access.
- Free mini exam: 15 questions with explanations (free account): https://devopscodelab.com/app/exams/microsoft-az-400/mini/
- All-Access subscription includes every exam: https://devopscodelab.com/pricing/
- 10 free questions with answers: https://devopscodelab.com/exams/microsoft-az-400/free-practice-questions/

## Sample questions

### Question 1 of 3

Your team hosts code in GitHub and plans work in Azure Boards. Developers want a commit or pull request to appear on the related work item automatically, and merging the pull request should move the work item to Done. What should you configure?

- A. Create a service hook in Azure DevOps that posts work item updates to a GitHub webhook endpoint on every push to the repository
- B. Add the repository as an Azure Repos import, then use the Development section of each work item to link the imported branches
- C. Install the Azure Boards app for GitHub, connect the repo to the project, and mention items as Fixes AB#ID
- D. Enable GitHub Issues sync in the Boards process template and mention the work item number with #ID in each commit message

**Answer:** C

**Explanation:** The Azure Boards app for GitHub connects a GitHub repository to an Azure Boards project; AB#ID mentions create links, and a keyword such as Fixes or Closes transitions the item when the pull request merges into the default branch. A service hook sends Azure DevOps events outward and does not parse GitHub commits. Importing into Azure Repos duplicates the code rather than integrating GitHub. There is no Issues sync setting in the process template, and #ID refers to GitHub issues, not Boards work items.

### Question 2 of 3

A team practising trunk-based development wants every change to main to come through a pull request that has at least two approvals, a successful CI build, and resolved comments. Pushing directly to main must be blocked for everyone except administrators who explicitly bypass policies. What should you configure in Azure Repos?

- A. A required template check on main that validates the azure-pipelines.yml file
- B. Branch locks on main, combined with a Git hook that rejects unreviewed commits
- C. Branch policies on main for minimum reviewers, build validation, and comment resolution
- D. Repository permissions that deny Contribute on the main branch to the Contributors group

**Answer:** C

**Explanation:** Once any required branch policy is set on main, direct pushes are rejected and changes must flow through pull requests that satisfy minimum reviewers, build validation and comment resolution; only users with Bypass permissions can override. Denying Contribute stops people from completing pull requests too. Required template checks protect environments and resources, not branches. Branch locks make a branch read-only, and Azure Repos does not run server-side custom Git hooks.

### Question 3 of 3

Your platform team manages a resource group with Bicep. Application teams sometimes delete resources manually in the portal, and you need Azure to block deletes of the managed resources while also removing resources that drop out of the template. Which approach meets both requirements?

- A. Deploy in Complete mode and apply a CanNotDelete resource lock on the resource group
- B. A deployment stack with action-on-unmanage deleteResources and deny settings mode denyDelete
- C. Publish the Bicep file as a template spec and assign Azure Policy with a deny effect on deletes
- D. Deploy in Incremental mode and assign application teams the Reader role on the resource group

**Answer:** B

**Explanation:** Deployment stacks track the resources they manage, can delete resources that leave the template, and apply deny settings that block deletes by anyone not excluded. Complete mode deletes unmanaged resources but a CanNotDelete lock would also stop Complete mode from removing them. Azure Policy deny cannot block delete operations in general, and template specs only store templates. Incremental mode never removes resources, and Reader would stop teams doing legitimate work.


## Study plans

### Two weeks

1. Day 1: take practice test 1 in exam mode to get a baseline.
2. Days 2 to 5: domain mode on Design and implement build and release pipelines and Design and implement processes and communications, the two most heavily weighted domains.
3. Day 6: practice test 2 in exam mode, then the mistakes quiz.
4. Days 7 to 12: practice tests 3 to 5, one every other day, each followed by its mistakes quiz.
5. Days 13 and 14: final mode. Book the exam when your readiness stays above the pass mark.

### Four weeks

1. Week 1: one practice test in practice mode, reading every explanation. Note your two lowest domains.
2. Week 2: domain mode on those two domains, then a second practice test in exam mode.
3. Week 3: practice tests 3 and 4 in exam mode, with the mistakes and flagged quizzes after each.
4. Week 4: practice test 5 and final mode until your readiness holds above the pass mark.

## Questions about the AZ-400 practice exams

**Are these real AZ-400 exam questions?**

No. We write every question ourselves and map it to the published AZ-400 exam objectives. We do not use leaked or recalled questions.

**Do the time limit and pass mark match the official exam?**

They match the settings of our practice tests. Exam providers change their format from time to time, so check the official exam page before you book.

**Can I try it before I pay?**

Yes. The free mini exam has 15 questions with full explanations and needs no account.

**How long do I keep access?**

A single-exam purchase gives you 12 months of access. All-Access includes this exam for as long as your subscription runs.

**What happens after I finish a test?**

You get a score, a pass or fail against the pass mark, a score per domain and every answer with its explanation.

Last updated November 2026.

DevOpsCode Lab is not affiliated with Microsoft. AZ-400 and related names are trademarks of their owners. We write every question ourselves; these are not real exam questions.
