Microsoft AZ-400 Practice Exam Questions & Answers

7 Free Questions · Last reviewed: October 18, 2026 · Prepared & Reviewed by the ValidExamDumps Editorial Team

Exam Facts

Microsoft AZ-400 Exam Details

Key details for this exam, checked against the published exam outline

647 Practice Questions (Our Bank)
120 minutes Exam Duration
700 out of 1000 Passing Score
USD 165 Official Exam Fee
Exam Code
AZ-400
Full Name
Designing and Implementing Microsoft DevOps Solutions
Issuing Body
Microsoft
Question Format (Our Bank)
Multiple Choice, Hotspot, Drag & Drop, Order List, Case Studies
Delivery
Online proctored or at a test center
Eligibility
No prerequisites, though experience administering and developing in Azure with implementation of both GitHub and Azure DevOps solutions is expected.
Practice Questions

Free AZ-400 Practice Questions

Each question shows the correct answer and an explanation of why it is right

VA
ValidExamDumps Editorial Team Every question and its answer is checked by our AZ-400 exam preparation team, who also write the explanation shown with each one. How we research and review these pages

You have an Azure Automation account that contains a webbook. The webbook is used to configure the application infrastructure of an Azure subscription.

You have a project in Azure DevOps named Project). Project1 contains a repository that stores code for the webbook.

You need to ensure that every committed change to the code will update automatically and publish the webbook to Azure Automation.

What should you configure?

Correct Answer: C
Explanation

To ensure every committed change to the webhook code automatically updates and publishes the webhook to Azure Automation, you should configure a webhook in your GitHub repository that triggers when code is committed. This webhook should point to an Azure Automation endpoint or trigger an Azure Pipeline that runs a runbook publication script. Alternatively, configure a pipeline trigger that automatically runs when repository code changes, then include a task to publish the runbook to Azure Automation.

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 increasing the test coverage.

Does this meet the goal?

Correct Answer: B

SIMULATION

Your company plans to implement a new compliance strategy that will require all Azure web apps to be backed up every five hours.

You need to back up an Azure web app named az400-11566895-main every five hours to an Azure Storage accountin your resource group.

To complete this task, sign in to the Microsoft Azure portal.

Correct Answer: A
Explanation

With the storage account ready, you can configure backs up in the web app or App Service.

Open the App Serviceaz400-11566895-main, which you want to protect, in the Azure Portal and browse to Settings > Backups. Click Configure and a Backup Configuration blade should appear.

Select the storage account.

Click + to create a private container. You could name this container after the web app or App Service.

Select the container.

If you want to schedule backups, then set Scheduled Backup to On and configure a schedule: every five hours

Select your retention. Note that 0 means never delete backups.

Decide if at least onebackup should always be retained.

Choose if any connected databases should be included in the web app backup.

Click Save to finalize the backup configuration.


https://petri.com/backing-azure-app-service

You use GitHub Enterprise for source control repositories. The repositories store C# code. You need to enable CodeQL scanning for the repositories. What should you do?

Correct Answer: A
Explanation

To enable CodeQL scanning for C# code in GitHub Enterprise repositories:

  • Solution: Use GitHub's CodeQL analysis feature by creating a CodeQL scanning workflow
  • Steps:
    1. Navigate to the repository's Security tab
    2. Select 'Code scanning' or 'Code scanning alerts'
    3. Enable CodeQL or set up a workflow
    4. GitHub provides a default CodeQL workflow template that auto-detects C# code
    5. Commit the workflow file to your repository
  • For C#: CodeQL supports C# analysis. The default workflow will automatically scan C# files
  • Alternative (more manual): Manually create a GitHub Actions workflow file that runs github/codeql-action with C# language specification
  • Automatic approach: Using GitHub's UI recommendation is simplest and requires minimal configuration
  • Result: After enabling, CodeQL scans run on every push and PR, surfacing vulnerabilities in the code

You have an Azure DevOps release pipeline named Pipeline1. You plan to use Pipelinel to deploy infrastructure as code (laC) resources to Azure. You need to create templates to define which resources to deploy. Which template formats should you use?

Correct Answer: D
Explanation

For deploying Infrastructure as Code (IaC) resources to Azure using an Azure DevOps release pipeline, you should use template formats that Azure natively supports. The correct template formats are: Azure Resource Manager (ARM) templates (JSON format) and Bicep (which is a higher-level language that compiles to ARM templates). These are the official Azure IaC template formats. Terraform could also be used but is not Azure-specific. The question specifically asks for template formats for Azure deployment, so the answers should be ARM templates and/or Bicep templates.

You have an Azure DevOps project named Project! that uses an Azure Pipelines pipeline to build, test, and deploy an app named Appl.

You have a credential named credl.

You need to ensure that credl can be used to deploy builds of Appl to production The solution must ensure that credl is available for use only by specific users and pipelines in Project 1.

What should you do?

Correct Answer: B
Explanation

To ensure a credential (cred1) can be used to deploy builds to production while restricting access to specific users and pipelines in Project1, you should: (1) Store the credential in Azure DevOps Library (variable groups) with appropriate pipeline permissions, or (2) Use service connections with role-based access control. The best approach is to create a service connection or variable group with restricted authorization that specifies which pipelines and users can access it. Azure DevOps allows you to set pipeline-level permissions on variable groups and service connections to ensure only specific pipelines can use the credential, and only authorized users can manage it.

You plan to publish build artifacts by using an Azure pipeline.

You need to create an. artifactignore file that meets the following requirements:

* Includes all files in the build output folder and all subfolders

* Excludes files that have the .dll extension

What should you include in the file?

Correct Answer: B
Explanation

The .artifactignore file uses a gitignore-like syntax. To meet the requirements:

  • ** - Matches all files in the build output folder and all subfolders
  • \n - Line break to separate patterns
  • !**/*.dll - Excludes files with the .dll extension using the negation operator (!)

The correct syntax should include all files by default and then exclude .dll files: **\n!**/*.dll

Full Access

Get the complete AZ-400 question set

  • 647 questions covering all exam domains
  • Correct answers with explanations, like the free questions above
  • PDF and online practice test
  • 90 days of free updates
Starting from 50% OFF
$20 $40
Get Full Access

One-time payment · Instant download

Study Guide

What the Microsoft AZ-400 Exam Covers

Exam domains verified against: Official Microsoft AZ-400 exam guide, last checked October 2026.

Domain 1: Design and implement processes and communications 10% - 15%

Structure workflow and feedback mechanisms using GitHub Flow, GitHub issues, and Azure Boards. Implement dashboards to track cycle times, lead time, and time to recovery across development, testing, security, and operations metrics. Document projects using wikis and Markdown, automate release notes from Git history, and configure webhooks and integrations with Microsoft Teams.

Sample questions from this domain above: Q1Q6

Domain 2: Design and implement a source control strategy 10% - 15%

Choose branching strategies including trunk-based, feature branch, and release branch patterns. Implement pull request workflows with branch policies and protection rules. Manage large files with Git LFS, optimize repositories with Scalar, configure permissions and tags, and recover or remove specific data using Git commands.

Sample question from this domain above: Q7

Domain 3: Design and implement build and release pipelines 50% - 55%

Select automation solutions like GitHub Actions and Azure Pipelines. Design package feeds, dependency versioning with SemVer and CalVer, and quality gates including security and governance. Build testing strategies with local, unit, integration, and load tests. Develop YAML pipelines with job parallelism, create reusable templates and task groups, implement deployment strategies like blue-green and canary releases, and manage infrastructure as code using Bicep and Azure Resource Manager.

Sample questions from this domain above: Q2Q5

Domain 4: Develop a security and compliance plan 10% - 15%

Implement authentication using service principals, managed identities, GitHub Apps, and personal access tokens. Configure secrets management with Azure Key Vault and secretless authentication via workload identity federation. Design scanning strategies for dependencies, code, secrets, and licensing. Integrate GitHub Advanced Security with Microsoft Defender for Cloud and automate container scanning with CodeQL analysis.

Sample question from this domain above: Q3

Domain 5: Implement an instrumentation strategy 5% - 10%

Configure Azure Monitor, Application Insights, and VM/Container Insights for telemetry collection. Set up GitHub and Azure Pipelines alerting for pipeline events. Analyze performance metrics including CPU, memory, disk, and network indicators. Use Application Insights distributed tracing and Kusto Query Language for log analysis.

Sample question from this domain above: Q4

FAQ

AZ-400 Exam FAQ

Common questions about the exam itself

Does the AZ-400 exam require AZ-104 or AZ-204 certification first?
No. The AZ-400 exam has no formal prerequisites, though Microsoft expects candidates to have hands-on experience administering and developing in Azure, with strong skills in at least one of those areas, plus experience implementing both GitHub and Azure DevOps solutions.
How difficult is the AZ-400 exam compared to other Azure certifications?
The AZ-400 is an Expert-level certification that tests scenario-based decision making rather than memorization. The exam heavily focuses on three domains: pipelines, infrastructure as code, and DevSecOps together accounting for roughly 70% of content. Most candidates report it is more challenging than Associate-level exams.
What is the hardest part of AZ-400 for most candidates?
The Develop a Security and Compliance Plan domain, covering secrets management, authentication strategies, and security scanning, trips up many candidates. This requires both theoretical understanding of security concepts and practical knowledge of GitHub Advanced Security, Azure Key Vault, and Defender for Cloud integration.
How much study time do candidates typically need for AZ-400?
Most successful candidates spend 40 to 80 hours preparing for the AZ-400 exam. Time varies based on prior DevOps experience, familiarity with Azure Pipelines and GitHub Actions, and existing Azure certifications like AZ-104 or AZ-204.
What happens on exam day for the AZ-400 test?
You have 120 minutes to answer 40 to 60 questions delivered online with a proctor or at a test center. The questions include single choice, multiple choice, drag-and-drop, and case analysis scenarios. Budget time to review the candidate agreement and tutorial before the actual questions begin.
How many times can you retake the AZ-400 exam and how long must you wait between attempts?
Microsoft allows multiple retakes. If you do not pass, you must wait 24 hours before scheduling your next attempt. Exam vouchers are region-specific and non-transferable, so plan retake costs accordingly.
How long is the Azure DevOps Engineer Expert certification valid after passing AZ-400?
Microsoft does not publish an expiration period for the AZ-400 certification on their official exam page. Check your certification dashboard on Microsoft Learn after passing to see if renewal requirements apply to your specific credential.
What job role does the AZ-400 certification prepare you for?
The AZ-400 earns you the Azure DevOps Engineer Expert certification, which aligns with roles combining development and operations responsibilities. Target positions include DevOps Engineer, Release Engineer, Infrastructure Engineer, or Platform Engineer working with Azure and GitHub technologies.
How does AZ-400 relate to AZ-104 and AZ-204 in the certification path?
AZ-104 (Azure Administrator Associate) and AZ-204 (Azure Developer Associate) are commonly taken before AZ-400 as they build foundation skills, but neither is required. AZ-400 sits at the Expert level and assumes you already know core Azure administration and development concepts.
Can you sit the AZ-400 exam in languages other than English?
Yes. Microsoft offers AZ-400 in 10 languages including Japanese, Simplified and Traditional Chinese, Korean, German, French, Spanish, Portuguese (Brazil), and Italian. Register through your local test center or exam provider to select your preferred language.