Free Microsoft AZ-400 Practice Test & Real Exam Questions

  • Exam Code/Number: AZ-400
  • Exam Name/Title: Designing and Implementing Microsoft DevOps Solutions
  • Certification Provider: Microsoft
  • Corresponding Certification: Microsoft Azure
  • Exam Questions: 609
  • Updated On: Sep 12, 2026
Your company has a project in Azure DevOps for a new application. The application will be deployed to several Azure virtual machines that run Windows Server 2022. You need to recommend a deployment strategy for the virtual machines. The strategy must meet the following requirements:
* Ensure that the virtual machines maintain a consistent configuration.
* Minimize administrative effort to configure the virtual machines.
What should you include in the recommendation?
Correct Answer: A Vote an answer
You have several Azure Active Directory (Azure AD) accounts.
You need to ensure that users use multi-factor authentication (MFA) to access Azure apps from untrusted networks.
What should you configure in Azure AD?
Correct Answer: B Vote an answer
Explanation: Only visible for Pass4Leader members. You can sign-up / login (it's free).
You have a project that includes a .NET app and a database backend.
You have a pipeline that includes the following YAML code.

For each of the following statements, select Yes if the statement is true, otherwise select No.
NOTE: Each correct selection is worth one point.
Correct Answer:

Explanation:
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 enable flaky test management.
Does this meet the goal?
Correct Answer: B Vote an answer
You have an Azure DevOps project that contains a build pipeline. The build pipeline uses approximately 50 open source libraries.
You need to ensure that all the open source libraries comply with your company's licensing standards.
Which service should you use?
Correct Answer: A Vote an answer
Explanation: Only visible for Pass4Leader members. You can sign-up / login (it's free).
You are designing a configuration management solution to support five apps hosted on Azure App Service.
Each app is available in the following three environments: development, test, and production.
You need to recommend a configuration management solution that meets the following requirements:
* Supports feature flags
* Tracks configuration changes from the past 30 days
* Stores hierarchically structured configuration values
* Controls access to the configurations by using role-based access control (RBAC) permission
* Stores shared values as key/value pairs that can be used by all the apps Which Azure service should you recommend as the configuration management solution?
Correct Answer: A Vote an answer
Explanation: Only visible for Pass4Leader members. You can sign-up / login (it's free).
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.
The lead developer at your company reports that adding new application features takes longer than expected due to a large accumulated technical debt.
You need to recommend changes to reduce the accumulated technical debt.
Solution: You recommend reducing the code coupling and the dependency cycles?
Does this meet the goal?
Correct Answer: A Vote an answer
Explanation: Only visible for Pass4Leader members. You can sign-up / login (it's free).
You are developing an application. The application source has multiple branches.
You make several changes to a branch used for experimentation.
You need to update the main branch to capture the changes made to the experimentation branch and override the history of the Git repository.
Which Git option should you use?
Correct Answer: C Vote an answer
Explanation: Only visible for Pass4Leader members. You can sign-up / login (it's free).
Task 2
For the RG1 lod42147S09 resource group, you need to create an action group named DevOpsAGthat can be triggered in any region by using Alerts.
The action group must email two users named admin1 @contoso.com and [email protected] and notify members of the Owner role for the resource.
Use only the common alert schema for notifying the resource owners.
Correct Answer:
See the solution below in explanation.
Explanation:
Step 1: Create an Action Group
Navigate to Azure Portal:
Go to Azure Portal and sign in with your credentials.
Access Azure Monitor:
In the left-hand menu, select Monitor.
Create ActionGroup:
Under Alerts, select Action groups.
Click on + Create.
Configure Basic Settings:
Subscription: Select your subscription.
Resource Group: Select RG1 lod42147S09.
Action Group Name: Enter DevOpsAG.
Display Name: Enter a display name for the action group.
Step 2: Define Actions
Add Email Notifications:
Click on Add action.
Action Type: Select Email/SMS message/Push/Voice.
Action Name: Enter a name for the action (e.g., EmailAdmins).
Email: Enter [email protected] and [email protected].
Click OK.
Notify Resource Owners:
Click on Add action again.
Action Type: Select Email/SMS message/Push/Voice.
Action Name: Enter a name for the action (e.g., NotifyOwners).
Email: Select Notify all owners.
Click OK.
Step 3: Enable Common Alert Schema
Common Alert Schema:
In the Advanced tab, enable the Common alert schema option1.
Step 4: Review and Create
Review:
Review all the settings you have configured.
Create:
Click on Review + create and then Create.
By following these steps, you will have successfully created an action group named DevOpsAG that emails the specified users and notifies resource owners using the common alert schema
You have an Azure subscription that contains Azure DevOps build pipelines.
You to implement pipeline caching by using the cache task
HOW should you complete the YAML definition? TO answer, select the appropriate options in the answer area.
Correct Answer:
See the image in explanation for answer.
Explanation:
Answer is as below.