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
HOTSPOT –
Your company uses Team Foundation Server 2013 (TFS 2013).
You plan to migrate to Azure DevOps.
You need to recommend a migration strategy that meets the following requirements:
✑ Preserves the dates of Team Foundation Version Control changesets
✑ Preserves the changes dates of work items revisions
✑ Minimizes migration effort
✑ Migrates all TFS artifacts
What should you recommend? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point. Hot Area:

You have a project in Azure DevOps.
You need to implement a new branching solution.
The solution must ensure that all pull requests meet the following requirements:
• Include linked work items.
• Pass build validation policies.
• Require at least three reviewers.
What should you include in the solution?
- A . branch policies
- B . pull request templates
- C . branch security
- D . pull request permissions
You have an Azure subscription that contains an Azure pipeline named Pipeline1 and a GitHub repository named Repo1. Repo1 contains Bicep modules. Pipeline1 deploys Azure resources by using the Bicep modules.
You need to ensure that all releases comply with Azure Policy before they are deployed to production.
What should you do?
- A . To Pipeline1, add a step that runs a What if deployment before the deployment step.
- B . Configure a deployment gate for Pipeline1 that uses Azure Automation to run a What If deployment.
- C . Create an Azure DevOps build that runs on the creation of a pull request and assesses the code for compliance.
- D . Configure a deployment gate for Pipeline1 and include the Azure DevOps Security and compliance assessment task.
You have a build pipeline in Azure Pipelines.
You create a Slack App Integration.
You need to send build notifications to a Slack channel named #Development.
What should you do first?
- A . Create a project-level notification.
- B . Configure a service connection.
- C . Create a global notification.
- D . Creates a service hook subscription.
You have an on-premises app named App1 that accesses Azure resources by using credentials stored in a configuration file.
You plan to upgrade App1 to use an Azure service principal.
What is required for App1 to programmatically sign in to Azure Active Directory (Azure AD)?
- A . the application ID, a client secret, and the object ID
- B . a client secret, the object ID, and the tenant ID
- C . the application ID, a client secret, and the tenant ID
- D . the application ID, a client secret, and the subscription ID
DRAG DROP
You have a GitHub repository that contains the code for an app named App1.
App1 depends on a library of functions from a repository at https: //github.com/contoso/afeed.
You need to keep a clone of the afeed repository as a subdirectory of the App1 repository.
How should you complete the Git command? To answer, drag the appropriate values to the correct targets. Each value may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content. NOTE: Each correct selection is worth one point.

You use an Azure Pipelines pipeline to build and deploy an app.
You have a custom test task that has the following inputs:
• testResultsFiles: **/TEST-*.trx
• searchFolder: $(System.DefaultWorkingDirectory)
• mergeTestResults: true
Which format should you use for the input data of testResultsFiles?
- A . VSTest
- B . NUnit
- C . CTest
- D . JUnit
SIMULATION
You plan to add a new web farm that will be published by using an IP address of 10.0.0.5.
You need to allow traffic from the web farm to an Azure Database for MySQL server named az400-123456789-mysql.
To complete this task, sign in to the Microsoft Azure portal.
DRAG DROP –
You have an app named App1. You have a Log Analytics workspace named Workspace1 that contains a table named AppEvents. App1 writes logs to Workspace1.
You need to query the AppEvents table. The solution must meet the following requirements:
✑ Only query rows for a column named Name that starts with the following text: "Clicked Create New Ticket."
✑ Calculate the number of daily clicks per user.
✑ Return the top 10 users based on their number of clicks for any day.
✑ Sort the results based on the highest number of clicks.
✑ Ignore any users who have less than three daily clicks.
In which order should you arrange the query statements? To answer, move all statements from the list of statements to the answer area and arrange them in the correct order.

DRAG DROP –
You have an app named App1. You have a Log Analytics workspace named Workspace1 that contains a table named AppEvents. App1 writes logs to Workspace1.
You need to query the AppEvents table. The solution must meet the following requirements:
✑ Only query rows for a column named Name that starts with the following text: "Clicked Create New Ticket."
✑ Calculate the number of daily clicks per user.
✑ Return the top 10 users based on their number of clicks for any day.
✑ Sort the results based on the highest number of clicks.
✑ Ignore any users who have less than three daily clicks.
In which order should you arrange the query statements? To answer, move all statements from the list of statements to the answer area and arrange them in the correct order.


