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
Your company uses Azure DevOps for the build pipelines and deployment pipelines of Java-based projects.
You need to recommend a strategy for managing technical debt.
Which action should you include in the recommendation?
- A . Configure post-deployment approvals in the deployment pipeline.
- B . Integrate Azure DevOps and SonarQube.
- C . Integrate Azure DevOps and Azure DevTest Labs.
Your company uses Azure DevOps for the build pipelines and deployment pipelines of Java-based projects.
You need to recommend a strategy for managing technical debt.
Which action should you include in the recommendation?
- A . Configure post-deployment approvals in the deployment pipeline.
- B . Integrate Azure DevOps and SonarQube.
- C . Integrate Azure DevOps and Azure DevTest Labs.
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 Noti cations settings for Project1.
Does this meet the goal?
- A . Yes
- B . No
You manage source control by using GitHub.
You have a le named Data.txt that contains sensitive data. A user pushes Data.txt to a repository.
You need to purge the le from the repository.
Which two commands can you use? Each correct answer presents a complete solution. NOTE: Each correct solution is worth one point.
- A . git checkout
git reset -hard -pathspec data.txt - B . git checkout
git clean -d data.txt –force - C . bfg –delete- les data.txt
git push –force - D . git rm data.txt
git push –force - E . git lter-repo –invert-paths –path data.txt git push origin –force –all
- F . git revert -edit data.txt
git push -force
You have an Azure subscription that contains an Azure Kubernetes Service (AKS) instance named AKS1.
You collect and analyze metrics for AKS1 by using the Azure Monitor managed service for Prometheus.
You need to analyze the performance of AKS1.
Which query language should you use?
- A . PL/SQL
- B . PromQL
- C . SparkQL
- D . KQL
DRAG DROP
You plan to use Azure Kubernetes Service (AKS) to host containers deployed from images hosted in a Docker Trusted Registry.
You need to recommend a solution for provisioning and connecting to AKS. The solution must ensure that AKS is RBAC-enabled and uses a custom service principal.
Which three commands should you recommend be run in sequence? To answer, move the appropriate commands from the list of commands to the answer area and arrange them in the correct order.

Your company implements an Agile development methodology.
You plan to implement retrospectives at the end of each sprint.
Which three questions should you include? Each correct answer presents part of the solution. NOTE: Each correct selection is worth one point.
- A . Who performed well?
- B . Who should have performed better?
- C . What could have gone better?
- D . What went well?
- E . What should we try next?
Your company implements an Agile development methodology.
You plan to implement retrospectives at the end of each sprint.
Which three questions should you include? Each correct answer presents part of the solution. NOTE: Each correct selection is worth one point.
- A . Who performed well?
- B . Who should have performed better?
- C . What could have gone better?
- D . What went well?
- E . What should we try next?
DRAG DROP
You are preparing to deploy an Azure resource group via Terraform.
To achieve your goal, you have to install the necessary frameworks.
Which of the following are the frameworks you should use? Answer by dragging the correct options from the list to the answer area.

You have an Azure subscription that contains an Azure container registry. The container registry contains an ACR Tasks task named Task1.
Task1 is configured to run once every five days.
You need to trigger Task1 to run immediately.
Which command should you run?
- A . az acr task run
- B . az acr build
- C . az acr taskrun
- D . az acr run