Microsoft

AZ-400 Free Practice Questions

This is the free Microsoft AZ-400 practice question bank — 270 of 534 total questions, each with a full explanation, free to read with no signup required. Updated 2026-08-05.

Every answer is verified against official Microsoft documentation — see our methodology.

Question 1

SIMULATION - Navigate to https://dev.azure.com, select Start Free, and specify the following credentials: • User: • Password: 0123456789 Use the default setting to sign up for Azure DevOps and create an Azure DevOps organization. Once the organization is created, create a private project named Project1. You need to add an external user that has an email address of as a stakeholder of the User1-12345678 Azure DevOps organization. The user must be added to the most restrictive Azure DevOps group. To complete this task, sign in to the Azure DevOps portal as .

Show Answer
Correct Answer: Organization Settings → Users → Add users User: specified external email Access level: Stakeholder Project: Project1 (or default) Azure DevOps Groups: Project Readers (most restrictive) Add
Explanation:
Add the external user at Stakeholder access and place them in the lowest-privilege Azure DevOps group (Readers) to satisfy the requirement for the most restrictive group.

Question 2

SIMULATION - You need to configure a virtual machine template in a DevTest Labs environment named az400-123456789-dtl1. The operating system must be based on Windows Server 2016 Datacenter. Virtual machines created from the DevTest Lab must include the Selenium tool and the Google Chrome browser. To complete this task, sign in to the Microsoft Azure portal.

Show Answer
Correct Answer: In the DevTest Lab, create a custom VM from Windows Server 2016 Datacenter, add the Selenium and Google Chrome artifacts, then create a custom image/formula from that configured VM to use as the lab template.
Explanation:
DevTest Labs templates are created from configured lab VMs or formulas. Installing the required artifacts before capturing ensures all future VMs include Selenium and Chrome.

Question 3

SIMULATION - You need to create a new team dashboard named Dashboard1 for the default project team of Project1. The dashboard must display the members of the team.

Show Answer
Correct Answer: Create team dashboard: Dashboard1 Team: Default team of Project1 Add Team Members widget configured for the default team
Explanation:
Create a new team dashboard with the specified name for Project1's default team, then add the Team Members widget so the dashboard displays the team's members. Auto-refresh is not required unless explicitly requested.

Question 4

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 need to use an Azure Pipelines pipeline to build and test an app and test the database of the app. The solution must meet the following requirements. • The test stages must be run in parallel. • The Publish_Test_Results stage must always be run. • The test stages must be run after successful completion of the build stage. • The Publish_Test_Results stage must be run after completion of all the test stages. Solution: You include the following elements in the YAML definition of the pipeline. Does this meet the goal?

A. Yes
B. No
Show Answer
Correct Answer: A
Explanation:
The described stage dependencies satisfy the requirements: both test stages depend only on the build stage, so they can run in parallel after a successful build. The publish stage depends on completion of both test stages, and using the always() condition ensures it runs regardless of whether the test stages succeed or fail once their execution has completed.

Question 5

SIMULATION - For Project1, you need to create a project wiki named Wiki1 that uses the Mermaid syntax to render a diagram. A sample of the desired output is stored in C : \Resources\TCPHandshake.png.

Show Answer
Correct Answer: Create wiki 'Wiki1' for Project1 and insert a Mermaid diagram matching the TCP three-way handshake shown in TCPHandshake.png.
Explanation:
The task is to create the specified project wiki and use Mermaid syntax to render the TCP handshake diagram to match the provided sample image.

Question 6

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 need to use an Azure Pipelines pipeline to build and test an app and test the database of the app. The solution must meet the following requirements. • The test stages must be run in parallel. • The Publish_Test_Results stage must always be run. • The test stages must be run after successful completion of the build stage. • The Publish_Test_Results stage must be run after completion of all the test stages. Solution: You include the following elements in the YAML definition of the pipeline. Does this meet the goal?

A. Yes
B. No
Show Answer
Correct Answer: B
Explanation:
No. If the YAML sets the test stages with `dependsOn: []`, they have no dependency on the build stage and can start immediately instead of waiting for the build to succeed. That violates the requirement that the test stages run after successful completion of the build. While the tests can run in parallel and a final publish stage can be configured to run after all tests and always execute, this solution does not satisfy all stated requirements.

Question 7

SIMULATION - For the RG1lod12345678 resource group, you need to create an action group named DevOpsAG that can be triggered in any region by using Alerts. The action group must email two users named and and notify members of the Owner role for the resource. Use only the common alert schema for notifying the resource owners.

Show Answer
Correct Answer: Create action group: DevOpsAG Resource group: RG1lod12345678 Region: Global Add two Email notifications for the specified users Add an Email Azure Resource Manager Role notification for Owner with Common Alert Schema enabled
Explanation:
Action groups that can be triggered from any region must use the Global region. Configure two email notifications for the named users and an Azure Resource Manager Role email notification targeting the Owner role, enabling the Common Alert Schema for the resource owner notification.

Question 8

SIMULATION - Initialize the default main branch, if it does not exist already. In Project1, you need to create a new Azure Pipelines YAML pipeline by using the ASP.NET template. The pipeline must use Azure Repos as the hosting platform and must be created in a new branch named azure-pipelines.

Show Answer
Correct Answer: Initialize the default main branch. Create a new branch named azure-pipelines. Create a new Azure Pipelines YAML pipeline using Azure Repos Git and the ASP.NET template. Save the pipeline to the azure-pipelines branch.
Explanation:
The task requires ensuring the default main branch exists, then creating a YAML pipeline based on the ASP.NET template hosted in Azure Repos, with the pipeline committed to a new branch named azure-pipelines.

Question 9

HOTSPOT - You have an app named App1 that is built and deployed by using containers. The Dockerfile for App1 has the following definition. For each of the following statements, select Yes if the statement is true. Otherwise, select No. NOTE: Each correct selection is worth one point.

Illustration for AZ-400 question 9 Illustration for AZ-400 question 9
Show Answer
Correct Answer: Yes No Yes
Explanation:
The Dockerfile exposes ports 80/443 and runs a .NET application, indicating an ASP.NET Core app. Both build and publish use '-c Release', not Debug. Multiple FROM stages (base, build, publish, final) indicate a Docker multi-stage build.

Question 10

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 need to use an Azure Pipelines pipeline to test an app. The solution meet the following requirements: • The pipeline must fail if any tests fail. • The test results must be published to the pipeline. • The test for every pipeline run must be triggered unless the pipeline is cancelled. Solution: You include the following elements in the YAML definition of the pipeline. Does this meet the goal?

A. Yes
B. No
Show Answer
Correct Answer: B
Explanation:
The solution as presented is incomplete because the YAML elements are not shown. To meet the stated requirements, the test task must both publish results and fail the pipeline on failed tests (for example, using the appropriate test task with test result publishing and fail-on-failed-tests behavior, and a publish step conditioned to run unless the pipeline is canceled). Based on the information provided, the proposed solution cannot be confirmed to meet the goals.

$19

Get all 534 questions with detailed answers and explanations

  • Instant download HTML + PDF delivered the moment payment clears.
  • Secure Stripe checkout we never see or store your card details.
  • 7-day refund if files are defective see our refund policy.