Microsoft Certified: DevOps Engineer Expert - (AZ-400) Logo
Microsoft Logo

Microsoft Certified: DevOps Engineer Expert - (AZ-400) Exam Questions

549

Total Questions

SEP
2025

Last Updated

1st

1st Try Guaranteed

Expert Verified

Experts Verified

Question 11 Single Choice

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?

Question 12 Single Choice

Your company uses Azure DevOps and Microsoft Azure Active Directory (Azure AD), part of Microsoft Entra.

Only users who have accounts in Azure AD can access the Azure DevOps environment.

You need to ensure that only devices that are connected to the on-premises network can access the Azure DevOps environment.

What should you do?

Question 13 Single Choice

You manage code by using GitHub.

You plan to ensure that all GitHub Actions are validated by a security team.

You create a branch protection rule requiring that code changes be reviewed by code owners.

You need to create the CODEOWNERS file.

Where should you create the file?

Question 14 Single Choice

You manage source code control and versioning by using GitHub.

A large file is committed to a repository accidentally.

You need to reduce the size of the repository. The solution must remove the file from the repository.

What should you use?

Question 15 Single Choice

You have an Azure subscription that contains four Azure virtual machines.

You need to configure the virtual machines to use a single identity. The solution must meet the following requirements:

  • Ensure that the credentials for the identity are managed automatically.

  • Support granting privileges to the identity.

Which type of identity should you use?

Question 16 Single Choice

You have a GitHub repository that contains multiple workflows and a secret stored at the environment level.

You need to ensure that the secret can be used by all the workflows.

What should you do first?

Question 17 Single Choice

You have an app named App1 that you release by using Azure Pipelines. App1 has the versions shown in the following table.

You complete a code change to fix a bug that was introduced in version 3.4.3.

Which version number should you assign to the release?

Question 18 Single Choice

You have an Azure Repos repository named repo1.

You delete a branch named features/feature11.

You need to recover the deleted branch.

Which three commands should you run in sequence?

COMMANDS

  1. git restore <SHA1>

  2. git stash

  3. git checkout <SHA1>

  4. git branch features/feature11

  5. git log

Question 19 Single Choice

You are creating a dashboard in Azure Boards.
You need to visualize the time from when work starts on a work item until the work item is closed.

Which type of widget should you use?

Question 20 Single Choice

You have a public GitHub repository named Public1.

A commit is made to Public1. The commit contains a pattern that matches a regular expression.

Who is notified first when the commit is made?

Page: 2 / 55