Microsoft AZ-400 · DevOps Engineer Expert · Updated 2026
Free AZ-400 DevOps Engineer Practice Exam (2026)
Full-length AZ-400 mock exams with a realistic number of questions and the real exam time. Source control, pipelines, security, instrumentation and team process scenarios, answers explained, and your score by domain.
1. Choose a set
2. Choose a mode
50 questions · 1 hour 40 min · same as the real exam
You have an unfinished attempt on this set.
Questions 1–10Page 1 of 5
🏆
Question 1Build & Release Pipelines
Blue Yonder Airlines builds with classic pipelines edited in the web portal. Auditors now require every pipeline change to be versioned with the code and reviewed in a pull request. What should you recommend?
Correct answer: A. Convert the pipelines to YAML pipelines
YAML pipelines live in the repository, so every change is versioned with the code and can go through pull request review. Task groups help reuse steps but are still edited in the portal, not reviewed in pull requests.
YAML pipelines live in the repository, so every change is versioned with the code and can go through pull request review. Task groups help reuse steps but are still edited in the portal, not reviewed in pull requests.
Question 2Source Control
Relecloud ships a packaged desktop product on a fixed quarterly schedule. The team wants an integration branch separate from production code, dedicated branches to stabilize each release, and hotfix branches cut from production. Which branching strategy matches these needs?
Correct answer: C. GitFlow
GitFlow uses a develop branch for integration, release branches to stabilize each version, and hotfix branches from main. GitHub flow uses only main and short-lived feature branches, with no separate integration or release branches.
GitFlow uses a develop branch for integration, release branches to stabilize each version, and hotfix branches from main. GitHub flow uses only main and short-lived feature branches, with no separate integration or release branches.
Question 3Security & Compliance
Fourth Coffee runs a web app on Azure App Service that reads secrets from Azure Key Vault at runtime. Security bans storing any credentials in app settings or code. What should the app use to authenticate to Key Vault?
Correct answer: D. A managed identity for the app
A managed identity gives the app an Entra ID identity that Azure manages, so no credential is stored. A client secret would have to be stored in app settings or code, which the policy bans.
A managed identity gives the app an Entra ID identity that Azure manages, so no credential is stored. A client secret would have to be stored in app settings or code, which the policy bans.
Question 4Build & Release Pipelines
First Up Consultants deploys to a production environment with a YAML pipeline. A deployment must not start while there are active Azure Monitor alerts for the production resources. You want this enforced without adding steps to every pipeline. What should you configure?
Correct answer: D. A Query Azure Monitor alerts check
The Query Azure Monitor alerts check evaluates alert rules before deployment to the environment and holds it while alerts are active. An Approvals check needs a person to decide and does not read alert state.
The Query Azure Monitor alerts check evaluates alert rules before deployment to the environment and holds it while alerts are active. An Approvals check needs a person to decide and does not read alert state.
Question 5Instrumentation
VanArsdel runs a .NET web app on Azure App Service. The team wants Application Insights request, dependency and exception telemetry without changing or redeploying the code. What should you do?
Correct answer: B. Turn on autoinstrumentation in App Service
Autoinstrumentation turns on Application Insights from the App Service settings and collects requests, dependencies and exceptions with no code change. Adding the SDK means changing and redeploying the code.
Autoinstrumentation turns on Application Insights from the App Service settings and collects requests, dependencies and exceptions with no code change. Adding the SDK means changing and redeploying the code.
Question 6Processes & Communications
Proseware uses an Azure Boards Kanban board. The team agreed that no more than four items should be in the Active column at once. The board must make it obvious when the team goes over that number. What should you configure?
Correct answer: B. A WIP limit on the Active column
A WIP limit on a board column shows the item count against the limit and highlights the column when it is exceeded. Team capacity sets available hours per person for sprint planning and does not watch a board column.
A WIP limit on a board column shows the item count against the limit and highlights the column when it is exceeded. Team capacity sets available hours per person for sprint planning and does not watch a board column.
Question 7Build & Release Pipelines
Proseware has a self-hosted agent pool with mixed agents. Only some agents have the Java 17 SDK installed. Java jobs must run only on agents that have it. What should you use?
Correct answer: D. Agent capabilities with job demands
Agents advertise capabilities, and job demands make Azure Pipelines send the job only to agents whose capabilities match, such as Java 17. A matrix strategy creates more job copies but does not choose which agent runs them.
Agents advertise capabilities, and job demands make Azure Pipelines send the job only to agents whose capabilities match, such as Java 17. A matrix strategy creates more job copies but does not choose which agent runs them.
Question 8Source Control
Lamna Healthcare uses Azure Repos. Any pull request that changes files under /src/auth must automatically add the Security Reviewers group as a required reviewer. Pull requests for other paths must not include that group. What should you configure?
Correct answer: C. An automatically included reviewers policy with a path filter
The automatically included reviewers policy can add a group as required only when changed files match a path filter such as /src/auth/*. Azure Repos does not apply a GitHub CODEOWNERS file to pull requests.
The automatically included reviewers policy can add a group as required only when changed files match a path filter such as /src/auth/*. Azure Repos does not apply a GitHub CODEOWNERS file to pull requests.
Question 9Build & Release Pipelines
Woodgrove Bank wants each build job to use exactly the same toolchain versions on Microsoft-hosted agents. The tools are packaged in an image in Azure Container Registry. You want the job steps to run inside that image. What should you configure?
Correct answer: B. A container job that references the image
A container job runs every step of the job inside the specified image, so the toolchain is identical on every run. A docker pull only downloads the image and the steps still run on the host agent.
A container job runs every step of the job inside the specified image, so the toolchain is identical on every run. A docker pull only downloads the image and the steps still run on the host agent.
Question 10Security & Compliance
Alpine Ski House wants every GitHub Actions workflow to follow least privilege. The automatic GITHUB_TOKEN must only read repository contents unless a workflow explicitly needs more. What should you configure in the workflows?
Correct answer: C. A permissions key with contents set to read
The permissions key sets the scopes granted to GITHUB_TOKEN, and contents: read limits it to reading code. A personal access token is a long-lived credential tied to a user, which adds risk instead of reducing it.
The permissions key sets the scopes granted to GITHUB_TOKEN, and contents: read limits it to reading code. A personal access token is a long-lived credential tied to a user, which adds risk instead of reducing it.
Question 11Build & Release Pipelines
Fourth Coffee has self-hosted GitHub Actions runners with access to production systems. Only three specific repositories in the organization may use these runners. What should you configure?
Correct answer: A. A runner group limited to those repositories
An organization runner group can be limited to selected repositories, so other repositories cannot send jobs to those runners. Labels only help workflows pick runners and do not stop other repositories from using them.
An organization runner group can be limited to selected repositories, so other repositories cannot send jobs to those runners. Labels only help workflows pick runners and do not stop other repositories from using them.
Question 12Instrumentation
Bellows College stores application logs in a Log Analytics workspace. The team wants an alert when a KQL query finds more than 20 login failures in 10 minutes. What type of alert rule should you create?
Correct answer: B. A log search alert rule
A log search alert rule runs a KQL query on a schedule and fires when the result passes a threshold. A metric alert evaluates platform or custom metrics and cannot run a KQL query on log records.
A log search alert rule runs a KQL query on a schedule and fires when the result passes a threshold. A metric alert evaluates platform or custom metrics and cannot run a KQL query on log records.
Question 13Processes & Communications
Woodgrove Bank publishes releases in GitHub. The release manager wants release notes built from merged pull request titles, grouped into categories such as Features and Bug Fixes by label. You want to avoid custom scripts. What should you use?
Correct answer: A. Automatically generated release notes
GitHub can generate release notes from merged pull requests, and a .github/release.yml file groups them into categories by label. A milestone tracks progress on issues but does not build release notes.
GitHub can generate release notes from merged pull requests, and a .github/release.yml file groups them into categories by label. A milestone tracks progress on issues but does not build release notes.
Question 14Build & Release Pipelines
Alpine Ski House has a GitHub Actions workflow with a build job and a separate deploy job. The deploy job must use the compiled files produced by the build job in the same workflow run. What should you use?
Correct answer: C. actions/upload-artifact and actions/download-artifact
Uploading an artifact in the build job and downloading it in the deploy job passes files between jobs, which run on separate runners. The cache action is meant to speed up dependency restores and is not guaranteed to keep build outputs.
Uploading an artifact in the build job and downloading it in the deploy job passes files between jobs, which run on separate runners. The cache action is meant to speed up dependency restores and is not guaranteed to keep build outputs.
Question 15Source Control
A developer at Margie's Travel deleted a local branch that held three commits that were never pushed. The developer now needs those commits back. Which command helps find the lost commit hash?
Correct answer: D. git reflog
git reflog records where HEAD and branch tips pointed recently, so it shows the hash of the deleted branch's last commit, which can then be restored. git log --all only shows commits still reachable from existing refs.
git reflog records where HEAD and branch tips pointed recently, so it shows the hash of the deleted branch's last commit, which can then be restored. git log --all only shows commits still reachable from existing refs.
Question 16Build & Release Pipelines
Coho Winery publishes NuGet packages to Azure Artifacts. Nightly builds of version 3.2.0 must be available for early testing, but consumers must not get them by default when they update packages. How should you version the nightly packages?
Correct answer: D. Use a prerelease label such as 3.2.0-nightly.15
A SemVer prerelease label marks the package as prerelease, and NuGet clients skip prerelease versions unless they opt in. Raising the patch version makes nightlies look like stable releases that consumers would pick up.
A SemVer prerelease label marks the package as prerelease, and NuGet clients skip prerelease versions unless they opt in. Raising the patch version makes nightlies look like stable releases that consumers would pick up.
Question 17Security & Compliance
Coho Winery's legal team bans copyleft licenses in its products. Pull requests in GitHub that add a dependency with a license outside an approved list must fail before merge. What should you use?
Correct answer: A. Dependency review with allowed licenses
The dependency review action checks dependencies added in a pull request and can fail when a license is not on the allowed list. Dependabot version updates keep dependencies current but do not enforce license rules.
The dependency review action checks dependencies added in a pull request and can fail when a license is not on the allowed list. Dependabot version updates keep dependencies current but do not enforce license rules.
Question 18Build & Release Pipelines
Trey Research needs to version and share large machine learning model files and tooling binaries that are not NuGet, npm, Maven or Python packages. They must live in Azure Artifacts with access controlled by the feed. Which package type should you use?
Correct answer: B. Universal Packages
Universal Packages store any set of files in an Azure Artifacts feed with versions and feed permissions. Pipeline artifacts are tied to a pipeline run and are not versioned packages in a feed.
Universal Packages store any set of files in an Azure Artifacts feed with versions and feed permissions. Pipeline artifacts are tied to a pipeline run and are not versioned packages in a feed.
Question 19Instrumentation
Munson's Pickles engineers need the five operations with the highest average response time from Application Insights request data. Which query should they use?
Correct answer: D. requests | summarize avg(duration) by name | top 5 by avg_duration
Summarizing avg(duration) by name and then using top 5 by avg_duration returns the five slowest operations on average. Taking five rows first and then sorting looks at a random sample, not all requests.
Summarizing avg(duration) by name and then using top 5 by avg_duration returns the five slowest operations on average. Taking five rows first and then sorting looks at a random sample, not all requests.
Question 20Source Control
VanArsdel requires one approval on pull requests to main in Azure Repos. Reviewers complained that authors push big changes after approval and then complete the pull request. Approvals must no longer count after new commits are pushed. What should you configure?
Correct answer: C. Reset approval votes on new pushes
The minimum reviewers policy can reset approval votes when new changes are pushed, so the updated code needs a fresh approval. Raising the reviewer count adds more approvals but still lets old approvals count after new pushes.
The minimum reviewers policy can reset approval votes when new changes are pushed, so the updated code needs a fresh approval. Raising the reviewer count adds more approvals but still lets old approvals count after new pushes.
Question 21Build & Release Pipelines
Relecloud's Azure Artifacts feed has grown large because every CI build publishes a new package version. The team wants to keep only the 30 newest versions of each package, except versions that were downloaded recently. What should you configure?
Correct answer: A. Retention policies on the feed
Feed retention policies keep a maximum number of versions per package and can spare versions downloaded recently. A feed view filters what consumers see but does not delete anything or reduce storage.
Feed retention policies keep a maximum number of versions per package and can spare versions downloaded recently. A feed view filters what consumers see but does not delete anything or reduce storage.
Question 22Processes & Communications
Fourth Coffee tracks bugs as GitHub issues. When a pull request that fixes a bug merges into the default branch, the related issue must close automatically. What should developers add to the pull request description?
Correct answer: C. Closes #58
A closing keyword such as Closes #58 links the pull request and closes the issue when the pull request merges into the default branch. A plain mention like Related to #58 links the issue but does not close it.
A closing keyword such as Closes #58 links the pull request and closes the issue when the pull request merges into the default branch. A plain mention like Related to #58 links the issue but does not close it.
Question 23Build & Release Pipelines
Lamna Healthcare wants to reduce the risk of each release. New versions must go first to internal staff, then to a pilot group of clinics, and finally to all customers, with checks between each step. Which deployment strategy is this?
Correct answer: A. Ring-based deployment
Ring-based deployment exposes a release to growing groups of users, such as internal staff, then pilots, then everyone, with validation between rings. Blue-green switches all users at once between two environments.
Ring-based deployment exposes a release to growing groups of users, such as internal staff, then pilots, then everyone, with validation between rings. Blue-green switches all users at once between two environments.
Question 24Security & Compliance
Trey Research has an Azure Resource Manager service connection for production. Any pipeline that uses it must extend the approved central security template. Pipelines that do not extend that template must be blocked from using the connection. What should you configure?
Correct answer: B. A Required template check on the service connection
A Required template check makes a pipeline that uses the resource fail unless it extends the specified template. Pipeline permissions decide which pipelines may use the connection but do not inspect how they are built.
A Required template check makes a pipeline that uses the resource fail unless it extends the specified template. Pipeline permissions decide which pipelines may use the connection but do not inspect how they are built.
Question 25Instrumentation
Humongous Insurance has a planned maintenance window every Saturday night. Alerts from the affected resource group must not send notifications during that window, but the alert rules must stay enabled. What should you configure?
Correct answer: A. An alert processing rule with a schedule
An alert processing rule can suppress action groups for a scope on a schedule while the rules keep firing and recording alerts. Lowering severity changes how alerts are labeled but still sends the notifications.
An alert processing rule can suppress action groups for a scope on a schedule while the rules keep firing and recording alerts. Lowering severity changes how alerts are labeled but still sends the notifications.
Question 26Build & Release Pipelines
Margie's Travel swaps an App Service staging slot into production. The production database connection string must stay with the production slot and never move to the other slot during a swap. What should you do?
Correct answer: C. Make it a deployment slot setting
A connection string marked as a deployment slot setting stays with its slot during a swap. Auto swap only triggers swaps automatically and does not control which settings move.
A connection string marked as a deployment slot setting stays with its slot during a swap. Auto swap only triggers swaps automatically and does not control which settings move.
Question 27Source Control
Bellows College hosts code in GitHub. The compliance team requires proof of who authored each commit that reaches main. Commits that are not cryptographically signed and verified must be blocked from main. What should you enable?
Correct answer: B. Require signed commits on the branch
The require signed commits rule only accepts commits with a verified GPG, SSH or S/MIME signature. Requiring linear history blocks merge commits but says nothing about who authored a commit.
The require signed commits rule only accepts commits with a verified GPG, SSH or S/MIME signature. Requiring linear history blocks merge commits but says nothing about who authored a commit.
Question 28Build & Release Pipelines
VanArsdel deploys Bicep files to a production resource group from a pipeline. Before the deployment stage runs, reviewers must see which resources will be created, changed or deleted. What should the pipeline run first?
Correct answer: D. az deployment group what-if
The what-if operation compares the template with the current state and lists resources that would be created, modified or deleted. Validate only checks that the template is valid and would be accepted, not what it would change.
The what-if operation compares the template with the current state and lists resources that would be created, modified or deleted. Validate only checks that the template is valid and would be accepted, not what it would change.
Question 29Processes & Communications
Alpine Ski House uses Azure Pipelines and Microsoft Teams. The operations channel must get a message each time a production release pipeline completes or fails. You want to set this up from the channel with no custom code. What should you use?
Correct answer: A. The Azure Pipelines app for Microsoft Teams
The Azure Pipelines app for Microsoft Teams lets you subscribe a channel to pipeline events such as run completion, without writing code. An Incoming Webhook called from a PowerShell task needs custom code in every pipeline.
The Azure Pipelines app for Microsoft Teams lets you subscribe a channel to pipeline events such as run completion, without writing code. An Incoming Webhook called from a PowerShell task needs custom code in every pipeline.
Question 30Build & Release Pipelines
Bellows College has several teams that write Bicep. The platform team wants to publish approved, versioned Bicep modules that teams reference by a short path, using a registry they control. What should you use?
Correct answer: B. A private Bicep registry in Azure Container Registry
A private Bicep registry in Azure Container Registry stores versioned modules that teams reference with a br: path. Git submodules copy files into each repository and give no central version catalog.
A private Bicep registry in Azure Container Registry stores versioned modules that teams reference with a br: path. Git submodules copy files into each repository and give no central version catalog.
Question 31Source Control
Munson's Pickles has a payment service and a shared library that change together often. Today they live in separate repositories, and a library change needs coordinated pull requests in two places. The team wants a single change that updates both atomically. What should you recommend?
Correct answer: A. A monorepo for both projects
A monorepo lets one commit and one pull request change the service and the library together. A NuGet package still needs a separate publish step and a version bump in the service, so the change is not atomic.
A monorepo lets one commit and one pull request change the service and the library together. A NuGet package still needs a separate publish step and a version bump in the service, so the change is not atomic.
Question 32Security & Compliance
Relecloud must sign its Android app in an Azure Pipelines build with a keystore file. The keystore must not be stored in the repository, and only authorized pipelines may use it. What should you use?
Correct answer: D. Secure files with the Download Secure File task
The Secure files library stores files like keystores encrypted in Azure DevOps, and the Download Secure File task gives them only to authorized pipelines. Git LFS still stores the file in a repository, which the requirement forbids.
The Secure files library stores files like keystores encrypted in Azure DevOps, and the Download Secure File task gives them only to authorized pipelines. Git LFS still stores the file in a repository, which the requirement forbids.
Question 33Build & Release Pipelines
Munson's Pickles deploys a resource group with Bicep. Resources removed from the Bicep file must be deleted from Azure on the next deployment, and operators must be blocked from deleting managed resources in the portal. What should you use?
Correct answer: A. A deployment stack with deny settings
A deployment stack tracks the resources it manages, can delete resources removed from the template, and applies deny settings to block manual deletes. Incremental mode leaves removed resources in place.
A deployment stack tracks the resources it manages, can delete resources removed from the template, and applies deny settings to block manual deletes. Incremental mode leaves removed resources in place.
Question 34Instrumentation
Graphic Design Institute wants Azure Key Vault resource logs, such as secret access events, in its Log Analytics workspace for querying. What should you configure on the key vault?
Correct answer: C. A diagnostic setting to the workspace
A diagnostic setting routes a resource's platform logs, such as Key Vault audit events, to a Log Analytics workspace. The activity log only records control plane operations, not data plane secret access.
A diagnostic setting routes a resource's platform logs, such as Key Vault audit events, to a Log Analytics workspace. The activity log only records control plane operations, not data plane secret access.
Question 35Build & Release Pipelines
Humongous Insurance uses Entity Framework Core migrations. The release pipeline must produce a SQL script that can run safely against databases at any migration level, applying only missing migrations. Which command should the pipeline run?
Correct answer: A. dotnet ef migrations script --idempotent
An idempotent migration script checks which migrations were already applied and runs only the missing ones. Adding a migration creates new migration code and does not produce a deployable script.
An idempotent migration script checks which migrations were already applied and runs only the missing ones. Adding a migration creates new migration code and does not produce a deployable script.
Question 36Source Control
Humongous Insurance runs an open-source SDK on GitHub. External contributors must be able to propose changes, but they must not get write access to the main repository. Which workflow should you use?
Correct answer: D. Contributors work in forks and open pull requests
In a fork workflow, contributors push to their own copy and open pull requests back to the upstream repository, so they never need write access. Pushing feature branches to the main repository requires write access.
In a fork workflow, contributors push to their own copy and open pull requests back to the upstream repository, so they never need write access. Pushing feature branches to the main repository requires write access.
Question 37Build & Release Pipelines
Graphic Design Institute wants a nightly YAML pipeline run at 02:00 UTC on main. The run must be skipped when nothing has changed since the last successful scheduled run. What should you configure?
Correct answer: B. A schedules trigger with always: false
A schedules trigger with always: false runs only when the branch has changed since the last successful scheduled run. Setting always to true would run every night even with no changes.
A schedules trigger with always: false runs only when the branch has changed since the last successful scheduled run. Setting always to true would run every night even with no changes.
Question 38Processes & Communications
Coho Winery has six Scrum teams in one Azure DevOps project. Leadership needs a timeline view that shows features from all teams across upcoming sprints, with dependencies between them. What should you use?
Correct answer: C. A Delivery Plan
A Delivery Plan shows work items from several teams on a calendar timeline by iteration and can show dependency lines. A sprint taskboard shows one team's tasks for a single sprint.
A Delivery Plan shows work items from several teams on a calendar timeline by iteration and can show dependency lines. A sprint taskboard shows one team's tasks for a single sprint.
Question 39Security & Compliance
Lamna Healthcare has several Azure DevOps projects. A pipeline in one project must not be able to read repositories in other projects with its job access token. You want to enforce this centrally. What should you enable?
Correct answer: B. Limit job authorization scope to current project
Limiting the job authorization scope to the current project gives the job access token rights only within its own project. Protecting repository access in YAML requires the pipeline to declare repositories it uses but does not by itself remove cross-project rights.
Limiting the job authorization scope to the current project gives the job access token rights only within its own project. Protecting repository access in YAML requires the pipeline to declare repositories it uses but does not by itself remove cross-project rights.
Question 40Build & Release Pipelines
Southridge Video keeps a web API and a mobile app in one repository. The API pipeline must run only when files under /src/api change. What should you add to the API pipeline's CI trigger?
Correct answer: D. A paths include filter for /src/api
A paths include filter starts the CI trigger only when pushed changes touch files under /src/api. A branches filter controls which branches trigger runs, not which folders.
A paths include filter starts the CI trigger only when pushed changes touch files under /src/api. A branches filter controls which branches trigger runs, not which folders.
Question 41Instrumentation
Southridge Video's operations team wants one interactive report that combines Application Insights metrics, KQL query results and text notes, with parameters to switch between environments. What should you use?
Correct answer: B. Azure Workbooks
Azure Workbooks combine metrics, log queries, text and parameters in one interactive report. Live Metrics shows real-time telemetry but cannot hold saved queries, notes or parameters.
Azure Workbooks combine metrics, log queries, text and parameters in one interactive report. Live Metrics shows real-time telemetry but cannot hold saved queries, notes or parameters.
Question 42Build & Release Pipelines
Blue Yonder Airlines finds that some automated tests in Azure Pipelines pass on rerun without any code change. These tests make the team distrust failed runs. You want Azure DevOps to detect such tests and keep them from failing the pipeline. What should you enable?
Correct answer: C. Flaky test detection in test management settings
Flaky test detection marks tests that flip results without code changes, and you can exclude flaky tests from the pass or fail outcome. Test Impact Analysis selects which tests to run based on code changes and does not track flakiness.
Flaky test detection marks tests that flip results without code changes, and you can exclude flaky tests from the pass or fail outcome. Test Impact Analysis selects which tests to run based on code changes and does not track flakiness.
Question 43Source Control
Graphic Design Institute keeps a release/2.4 branch for a shipped version. A security fix was merged to main as one commit. The same fix must be applied to release/2.4 without bringing in any other changes from main. What should you use?
Correct answer: A. git cherry-pick of the fix commit
git cherry-pick applies the changes from a single commit onto another branch, so only the fix lands on release/2.4. Merging main would bring every other change on main into the release branch.
git cherry-pick applies the changes from a single commit onto another branch, so only the fix lands on release/2.4. Merging main would bring every other change on main into the release branch.
Question 44Build & Release Pipelines
First Up Consultants runs integration tests in GitHub Actions that need a PostgreSQL database. The database must start fresh for each job and be torn down afterward, with no external infrastructure. What should you use?
Correct answer: D. A service container in the job
A service container runs PostgreSQL next to the job and is removed when the job ends, so every run starts clean. A self-hosted runner with PostgreSQL installed keeps data between runs and needs maintenance.
A service container runs PostgreSQL next to the job and is removed when the job ends, so every run starts clean. A self-hosted runner with PostgreSQL installed keeps data between runs and needs maintenance.
Question 45Processes & Communications
Trey Research wants a Power BI report on work item trends across several Azure Boards teams. Business analysts must build it themselves without writing OData queries. What should you recommend?
Correct answer: A. Analytics views with the Power BI connector
Analytics views define filtered work item data that analysts load into Power BI with the built-in connector, with no OData queries needed. Weekly CSV exports are manual and the data goes stale between exports.
Analytics views define filtered work item data that analysts load into Power BI with the built-in connector, with no OData queries needed. Weekly CSV exports are manual and the data goes stale between exports.
Question 46Security & Compliance
Margie's Travel deploys Azure resources with pipelines. Compliance requires that no storage account can be created with public blob access enabled, even if a pipeline template has an error. What should you implement?
Correct answer: C. An Azure Policy assignment with the deny effect
An Azure Policy assignment with deny blocks non-compliant resources at deployment time, whatever the source. A Defender for Cloud recommendation reports the problem after the resource exists but does not block it.
An Azure Policy assignment with deny blocks non-compliant resources at deployment time, whatever the source. A Defender for Cloud recommendation reports the problem after the resource exists but does not block it.
Question 47Build & Release Pipelines
Proseware has one YAML deployment pipeline. When a user runs it manually, they must pick the target environment from a fixed list of dev, test or prod. Invalid values must not be possible. What should you use?
Correct answer: D. A runtime parameter with a values list
A runtime parameter with a values list shows a dropdown when the run is queued and accepts only listed values. A variable settable at queue time accepts any free text, so invalid values are possible.
A runtime parameter with a values list shows a dropdown when the run is queued and accepts only listed values. A variable settable at queue time accepts any free text, so invalid values are possible.
Question 48Instrumentation
Blue Yonder Airlines is rolling out a new release of its API. During the next ten minutes, engineers want to watch incoming request rates, failures and server CPU with about one-second latency. What should they use?
Correct answer: D. Live Metrics in Application Insights
Live Metrics streams request rates, failures and server performance with about one second of delay, which suits watching a deployment as it happens. A log search alert runs on a schedule and depends on ingested logs, so it is not a live view.
Live Metrics streams request rates, failures and server performance with about one second of delay, which suits watching a deployment as it happens. A log search alert runs on a schedule and depends on ingested logs, so it is not a live view.
Question 49Source Control
Southridge Video's GitHub repository gets dozens of pull requests a day. Pull requests often pass checks on their own but break main once merged together. The team wants each pull request tested against the latest main plus the queued changes before merging. What should you enable?
Correct answer: B. A merge queue for the main branch
A merge queue builds temporary branches that combine main with queued pull requests and merges only those that pass. Requiring branches to be up to date forces authors to rebase repeatedly and does not scale with many pull requests.
A merge queue builds temporary branches that combine main with queued pull requests and merges only those that pass. Requiring branches to be up to date forces authors to rebase repeatedly and does not scale with many pull requests.
Question 50Build & Release Pipelines
Woodgrove Bank's GitHub workflow deploys to production on every push to main. Two pushes in quick succession started two deployments that overlapped. Only one deployment may run at a time, and a running deployment must not be canceled. What should you add?
Correct answer: C. A concurrency group with cancel-in-progress set to false
A concurrency group lets only one run in that group execute at a time and queues the next one, and cancel-in-progress set to false protects the running deployment. Required reviewers add an approval but do not prevent two approved runs from overlapping.
A concurrency group lets only one run in that group execute at a time and queues the next one, and cancel-in-progress set to false protects the running deployment. Required reviewers add an approval but do not prevent two approved runs from overlapping.
The real AZ-400 exam at a glance
50questions
1h 40mtime limit
MCQmultiple choice
75%+aim for here
Score 75% or more on two different sets before you book the real exam. Need a plan for your weak topics? See how we help you pass, or get a full refund.
More free Microsoft Azure & Power BI practice tests
AZ-900 Practice Test50 questions · Azure FundamentalsAZ-104 Practice Test50 questions · Azure AdministratorAZ-305 Practice Test50 questions · Azure Solutions ArchitectPL-300 Practice Test50 questions · Power BI Data Analyst
See all 36 free practice tests →
Original practice questions written by CertOcean in the style of the AZ-400 exam. They are not real exam questions. AZ-400 and Microsoft are trademarks of their owners. Real exam format: usually 40-60 questions · 100 minutes · passing score 700 on a 1-1000 scale · the real exam can include case studies.