Microsoft AZ-400 Practice Exams
Last updated on Nov 16,2026- Exam Code: AZ-400
- Exam Name: Designing and Implementing Microsoft DevOps Solutions
- Certification Provider: Microsoft
- Latest update: Nov 16,2026
You have a 1-TB Azure Repos repository named repo1.
You need to clone repo1.
The solution must meet the following requirements:
• You must be able to search the commit history of the /src directory
• The amount of time it takes to clone the repository must be minimized
Which command should you run?
- A . git clone C-depth-1 [email protected]: v3/org/Project1/repo1
- B . git clone C- filter=blob: none [email protected]: v3/org/Project1/repo1
- C . git clone [email protected]: v3/org/Project1/repo1
- D . git clone C- filter=true: 0 [email protected]: v3/org/Project1/repo1
You have a 1-TB Azure Repos repository named repo1.
You need to clone repo1.
The solution must meet the following requirements:
• You must be able to search the commit history of the /src directory
• The amount of time it takes to clone the repository must be minimized
Which command should you run?
- A . git clone C-depth-1 [email protected]: v3/org/Project1/repo1
- B . git clone C- filter=blob: none [email protected]: v3/org/Project1/repo1
- C . git clone [email protected]: v3/org/Project1/repo1
- D . git clone C- filter=true: 0 [email protected]: v3/org/Project1/repo1
You have an Azure DevOps project named Project1 and an Azure subscription named Sub1.
You need to prevent releases from being deployed unless the releases comply with the Azure Policy rules assigned to Sub1.
What should you do in the release pipeline of Project1?
- A . Add a deployment gate.
- B . Modify the Deployment queue settings.
- C . Configure a deployment trigger.
- D . Create a pipeline variable.
You have an Azure subscription that contains multiple Azure services.
You need to send an SMS alert when scheduled maintenance is planned for the Azure services.
Which two actions should you perform? Each correct answer presents part of the solution. NOTE: Each correct selection is worth one point.
- A . Enable Azure Security Center.
- B . Create and configure an Azure Monitor alert rule.
- C . Create an Azure Service Health alert.
- D . Create and configure an action group.
You have an Azure subscription that contains multiple Azure services.
You need to send an SMS alert when scheduled maintenance is planned for the Azure services.
Which two actions should you perform? Each correct answer presents part of the solution. NOTE: Each correct selection is worth one point.
- A . Enable Azure Security Center.
- B . Create and configure an Azure Monitor alert rule.
- C . Create an Azure Service Health alert.
- D . Create and configure an action group.
You have an Azure subscription that contains multiple Azure services.
You need to send an SMS alert when scheduled maintenance is planned for the Azure services.
Which two actions should you perform? Each correct answer presents part of the solution. NOTE: Each correct selection is worth one point.
- A . Enable Azure Security Center.
- B . Create and configure an Azure Monitor alert rule.
- C . Create an Azure Service Health alert.
- D . Create and configure an action group.
Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.
After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.
You have an Azure DevOps organization named Contoso and an Azure subscription. The subscription contains an Azure virtual machine scale set named VMSS1 that is configured for autoscaling.
You have a project in Azure DevOps named Project1. Project1 is used to build a web app named App1 and deploy App1 to VMSS1.
You need to ensure that an email alert is generated whenever VMSS1 scales in or out.
Solution: From Azure DevOps, configure the Service hooks settings for Project1.
Does this meet the goal?
- A . Yes
- B . No
HOTSPOT
You plan to build an app named App1 by using GitHub.
You need to recommend a build and deployment solution for App1.
The solution must meet the following requirements:
• Ensure that the code for App1 is submitted for testing only when a build has completed successfully.
• Ensure that a build is approved by the change management team before the build is released.
What should you include in the recommendation for each requirement? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point.

DRAG DROP
You have an Azure subscription that contains an Azure Tra c Manager pro le named ATM1 and a web app named App1. ATM1 manages App1 traffic. ATM1 is configured to route callers to the endpoint that has the lowest latency.
You need to configure ATM1 to route all traffic from Asia to an endpoint in Australia.
Which three actions should you perform in sequence from the Azure portal? To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order.

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.
After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.
You have an Azure pipeline that is used to deploy a web app. The pipeline includes a test suite named TestSuite1. TestSuite1 is used to validate the operations of the web app.
TestSuite1 fails intermittently.
You identify that the failures are unrelated to changes in the source code and execution environment.
You need to minimize troubleshooting effort for the TestSuite1 failures.
Solution: You increase code coverage.
Does this meet the goal?
- A . Yes
- B . No

