Launch price: every exam for $29.99 a year, for the first 300 buyers. See the price

CertStreak
Menu
Microsoft Azure, expert

AZ-400 practice test and mock exam

For the Designing and Implementing Microsoft DevOps Solutions exam. Original practice questions and timed mock exams for AZ-400, built from the official skills outline. Practice questions on 85 of the 86 topics listed below, with every answer explained.

Ten free questions a day, no card. Full access to every exam is one pass: $29.99 a year.

AZ-400 mock exam and practice questions

Practice questions
On 85 of 86 topics
Mock exam
50 questions, 100 min
Pass mark in our mocks
70%
Kept up to date
Updated every week
Pass guarantee
With the yearly pass

AZ-400 sample questions with answers explained

Three free AZ-400 practice questions, each with the right answer, why it is right and the official page it comes from. For more, try 5 questions. No account needed.

Sample question 1Single answer

An operations team uses a Log Analytics workspace to track agent health for its virtual machines. An engineer who holds the Log Analytics Contributor role on the workspace exported the query in the exhibit to the Power BI service as a new dataset.

The team has only Power BI Pro licenses and must not purchase additional licenses. The team now wants to configure incremental refresh on the existing dataset so that subsequent refreshes process smaller amounts of data instead of reloading the full history.

Heartbeat
| where TimeGenerated > ago(30d)
| summarize HeartbeatCount = count() by Computer, OSType

Which prerequisite for incremental refresh is missing?

Choose one answer
Why

Power BI incremental refresh processes smaller amounts of data per run and requires a datetime field in the query result set. The exhibit query summarizes heartbeats by computer and OS type, which drops TimeGenerated from the output, so a datetime column must be returned. Power BI Pro supports incremental refresh on datasets, and the engineer has already completed the export.

  • Not correct: A Power BI Premium license for the team. Incremental refresh for datasets is available with Power BI Pro licenses. Premium is not needed for a dataset, and the team may not buy more licenses.
  • Correct: A datetime field in the query result set. Incremental refresh relies on a datetime field in the result set. The summarize statement returns only Computer, OSType and HeartbeatCount, so TimeGenerated is no longer in the output.
  • Not correct: The Log Analytics Contributor role on the workspace. The engineer already has this role. The dataset already exists in the Power BI service.
  • Not correct: A Power BI dataflow that loads the query. Power BI datasets support incremental refresh themselves, so a dataflow is not required. Incremental refresh for dataflows would also require Power BI Premium, which the team does not have.
Sample question 2Single answer

A developer must delete a file that was committed by mistake from the entire history of a Git repository. Which tool or command is commonly used for this kind of history cleanup and is simpler to use than git filter-branch?

Choose one answer
Why

BFG Repo-Cleaner is the history cleanup tool that matches the comparison with git filter-branch. It provides --delete-files for targeting unwanted files. Git LFS addresses binary file storage, while git restore and git cherry-pick perform the recovery operations described in the source.

  • Not correct: git cherry-pick. The source describes git cherry-pick as applying a selected commit's changes to the current branch. Applying those changes does not purge a file from repository history.
  • Not correct: git restore. The source describes git restore as discarding uncommitted local changes and restoring a file to its committed state. That does not remove the file from committed history.
  • Not correct: Git LFS. The source recommends Git LFS for storing large binary files that change frequently. The source identifies BFG Repo-Cleaner as the tool matching the history cleanup requirement.
  • Correct: BFG Repo-Cleaner. The source identifies BFG Repo-Cleaner as an open-source repository cleanup tool that is simpler than git filter-branch. Its --delete-files option targets unwanted files.
Sample question 3Single answer

Your team deploys a web app by using Azure Pipelines. The app is monitored by Application Insights. After some recent releases, response times increased, and nobody could tell which release caused the change. Assume the pipeline and Application Insights resource meet the prerequisites for the integration you choose.

You must meet the following requirements:

  • Engineers must see each deployment marked on the Application Insights performance charts.
  • The solution must not require the team to write or maintain custom scripts.

What should you implement?

Choose one answer
Why

Release annotations mark deployments on Application Insights charts so engineers can compare release timing with changes in response times. Because this deployment meets the prerequisites for automatic annotations, Azure Pipelines can provide the markers without custom scripts. PowerShell annotations violate the script restriction, while work item integration and delivery metric reports do not provide the required chart markers.

  • Not correct: Configure work item integration so Application Insights alerts create Azure Boards work items. Work item integration creates work items that contain Application Insights data when alerts fire. It does not mark deployment events on the performance charts.
  • Not correct: Track release deployment frequency by using an Azure DevOps Analytics query. Release deployment frequency measures how often releases are deployed. Tracking that metric does not place deployment markers on Application Insights performance charts.
  • Not correct: Add a deployment success rate widget to a team dashboard in Azure DevOps. Deployment success rate measures the percentage of successful deployments. Displaying that metric on an Azure DevOps dashboard does not place deployment markers on Application Insights charts.
  • Correct: Use the release annotations that Azure Pipelines generates automatically during deployments. Release annotations mark deployment events on Application Insights charts. Given the stated prerequisite assumption, automatic annotations meet both the chart requirement and the no-scripts requirement.
  • Not correct: Add a PowerShell step to each pipeline that creates custom release annotations. Custom annotations created with PowerShell would mark deployments on the charts. However, the team would have to write and maintain the script, which the requirements prohibit.
Try 5 free AZ-400 questions, no account

What the AZ-400 exam covers

The AZ-400 topics

Design and implement processes and communications (17 topics)
Design and implement traceability and flow of workDesign and implement a structure for the flow of work, including GitHub FlowDesign and implement a strategy for feedback cycles, including notifications and GitHub IssuesDesign and implement integration for tracking work, including GitHub projects, Azure Boards, and repositoriesDesign and implement source, bug, and quality traceabilityDesign and implement appropriate metrics and queries for DevOpsDesign and implement a dashboard, including flow of work, such as cycle times, time to recovery, and lead timeDesign and implement appropriate metrics and queries for project planningDesign and implement appropriate metrics and queries for developmentDesign and implement appropriate metrics and queries for testingDesign and implement appropriate metrics and queries for securityDesign and implement appropriate metrics and queries for deliveryDesign and implement appropriate metrics and queries for operationsConfigure collaboration and communicationDocument a project by configuring wikis and process diagrams, including Markdown and Mermaid syntaxConfigure release documentation, including release notes and API documentationAutomate creation of documentation from Git historyConfigure integration by using webhooksConfigure integration between Azure Boards and GitHub repositoriesConfigure integration between GitHub or Azure DevOps and Microsoft Teams
Design and implement a source control strategy (9 topics)
Design and implement build and release pipelines (35 topics)
Design and implement a package management strategyRecommend package management tools including GitHub Packages and Azure ArtifactsDesign and implement package feeds and views for local and upstream packagesDesign and implement a dependency versioning strategy for code assets and packages, including semantic versioning (SemVer) and date-based (CalVer)Design and implement a versioning strategy for pipeline artifactsDesign and implement a testing strategy for pipelinesDesign and implement quality and release gates, including security and governanceDesign a comprehensive testing strategy, including local tests, unit tests, integration tests, and load testsImplement tests in a pipeline, including configuring test tasks, configuring test agents, and integration of test resultsImplement code coverage analysisDesign and implement pipelinesSelect a deployment automation solution, including GitHub Actions and Azure PipelinesDesign and implement a GitHub runner or Azure DevOps agent infrastructure, including cost, tool selection, licenses, connectivity, and maintainabilityDesign and implement integration between GitHub repositories and Azure PipelinesDevelop and implement pipeline trigger rulesDevelop pipelines by using YAMLDesign and implement a strategy for job execution order, including parallelism and multi-stage pipelinesDevelop and implement complex pipeline scenarios, such as hybrid pipelines, VM templates, and self-hosted runners or agentsCreate reusable pipeline elements, including YAML templates, task groups, variables, and variable groupsDesign and implement checks and approvals by using YAML-based environmentsDesign and implement deploymentsDesign a deployment strategy, including blue-green, canary, ring, progressive exposure, feature flags, and A/B testingDesign a pipeline to ensure that dependency deployments are reliably ordered (no questions yet)Plan for minimizing downtime during deployments by using load balancing, rolling deployments, and deployment slot usage and swapDesign a hotfix path plan for responding to high-priority code fixesDesign and implement a resiliency strategy for deploymentImplement feature flags by using Azure App Configuration Feature ManagerImplement application deployment by using containers, binaries, and scriptsImplement a deployment that includes database tasksDesign and implement infrastructure as code (IaC)Recommend a configuration management technology for application infrastructureImplement a configuration management strategy for application infrastructureDefine an IaC strategy, including source control and automation of testing and deploymentDesign and implement desired state configuration for environments, including Azure Automation State Configuration, Azure Resource Manager, Bicep, and Azure Machine ConfigurationDesign and implement Azure Deployment Environments for on-demand self-deploymentMaintain pipelinesMonitor pipeline health, including failure rate, duration, and flaky testsOptimize a pipeline for cost, time, performance, and reliabilityOptimize pipeline concurrency for performance and costDesign and implement a retention strategy for pipeline artifacts and dependenciesMigrate a pipeline from classic to YAML in Azure Pipelines
Develop a security and compliance plan (17 topics)
Design and implement authentication and authorization methodsChoose between Microsoft Entra service principals and managed identities for Azure resources (system-assigned and user-assigned)Implement and manage GitHub authentication, including GitHub Apps, GITHUB\_TOKEN, and personal access tokensImplement and manage Azure DevOps service connections and personal access tokensDesign and implement permissions and roles in GitHubDesign and implement permissions and security groups in Azure DevOpsRecommend appropriate access levels, including stakeholder access in Azure DevOps and outside collaborator access in GitHubConfigure projects and teams in Azure DevOpsDesign and implement a strategy for managing sensitive information in automationImplement and manage secrets, keys, and certificates by using Azure Key VaultImplement and manage secrets and secretless authentication (for example, workload identity federation/OpenID Connect) in GitHub Actions and Azure PipelinesDesign and implement a strategy for managing sensitive files during deployment, including Azure Pipelines secure filesDesign pipelines to prevent leakage of sensitive informationAutomate security and compliance scanningDesign a strategy for security and compliance scanning, including dependency, code, secret, and licensing scanningConfigure Microsoft Defender for Cloud DevOps SecurityConfigure GitHub Advanced Security for GitHub and GitHub Advanced Security for Azure DevOpsIntegrate GitHub Advanced Security with Microsoft Defender for CloudAutomate container scanning, including scanning container images and configuring an action to run CodeQL analysis in a containerAutomate analysis of vulnerabilities of open-source components by using Dependabot alerts
Implement an instrumentation strategy (8 topics)
Configure monitoring for a DevOps environmentConfigure Azure Monitor and Azure Monitor Logs to integrate with DevOps toolsConfigure collection of telemetry by using Azure Monitor Application Insights, Azure VM Insights, Azure Container Insights, Azure Monitor for Storage, and Azure Monitor for NetworksConfigure monitoring in GitHub, including enabling insights and creating and configuring chartsConfigure alerts for events in GitHub Actions and Azure PipelinesAnalyze metrics from instrumentationInspect infrastructure performance indicators, including CPU, memory, disk, and networkAnalyze metrics by using collected telemetry, including usage and application performanceInspect distributed tracing by using Azure Monitor Application InsightsInterrogate logs using basic Kusto Query Language (KQL) queries

AZ-400 practice test: frequently asked questions

Is there a free AZ-400 practice test?

Yes. 5 AZ-400 questions need no account, and every answer is explained after you pick it. The free plan adds ten questions a day, and there is a free AZ-400 question of the day.

Are these real AZ-400 exam questions?

No. The questions are our own, written from Microsoft Azure's official documentation. Each answer links the page it comes from, so you can check it.

How long is the AZ-400 mock exam?

50 questions in 100 minutes, the exam time Microsoft Azure publishes. Each domain is weighted as on the real exam, and the mock is timed so you practise pace as well as content.

What score do I need to pass AZ-400?

In our mocks the pass line is 70%. Microsoft Azure marks the real exam on its own scaled score, so treat a practice percentage as a guide to readiness, not a prediction. The official study guide lists the real passing score.

How current are the AZ-400 questions?

The question bank is updated every week, and every answer cites an official Microsoft Learn page, so you can see where the explanation comes from.

The pass guarantee covers AZ-400

Reach 90% on every skill, keep it fresh within 14 days of your exam, and still fail? Your money back or a free extra year.

Read the conditions

Start your AZ-400 streak today.

Try AZ-400 free