cert
cert-1
cert-2

Pass Microsoft AZ-400 Exam in First Attempt Guaranteed!

Get 100% Latest Exam Questions, Accurate & Verified Answers to Pass the Actual Exam!
30 Days Free Updates, Instant Download!

cert-5
cert-6
AZ-400 Exam - Verified By Experts
AZ-400 Premium Bundle
$29.98

AZ-400 Premium Bundle

$79.99
$109.97
  • Premium File 398 Questions & Answers. Last update: Oct 30, 2026
  • Training Course 27 Video Lectures
  • Study Guide 784 Pages
 
$109.97
$79.99
accept 56 downloads in last 7 days
block-screenshots
Purchase Microsoft AZ-400 Exam Training Products Individually
Microsoft AZ-400 Premium File
Premium File 398 Q&A
$76.99$69.99
Microsoft AZ-400 Video Training Course
Training Course 27 Lectures
$21.99 $19.99
Microsoft AZ-400 PDF Study Guide
Study Guide 784 Pages
$21.99 $19.99
Microsoft AZ-400 Practice Test 74

Question 730

A Microsoft DevOps team is addressing: A self-hosted agent fails after months because workspace and Docker layer caches exhaust disk space. Which TWO complementary actions should be taken? Select TWO answers.

  1. Inspect free disk, workspace lifecycle, container images and failure records.
  2. Pin or explicitly install supported toolchains and test migrations before image retirement.
  3. Review cache key configuration, lockfile hash, package restore logs and unexpected results.
  4. Implement safe workspace cleanup and monitored cache eviction consistent with rollback needs.
  5. Inspect run timelines, environment approval events and task durations.

Explanation

Correct Answers

A:

Inspect free disk, workspace lifecycle, container images and failure records. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Implement safe workspace cleanup and monitored cache eviction consistent with rollback needs. Together they address: Self-hosted agent maintenance requires bounded workspace cleanup and cache retention.

D:

Implement safe workspace cleanup and monitored cache eviction consistent with rollback needs. This supplies the controlled implementation needed for the scenario. Its complementary step is: Inspect free disk, workspace lifecycle, container images and failure records. Together they address: Self-hosted agent maintenance requires bounded workspace cleanup and cache retention.

Incorrect Answers

B:

Pin or explicitly install supported toolchains and test migrations before image retirement. This concerns a different DevOps situation: Builds fail after an Azure Pipelines hosted image update because a legacy runtime was implicitly available before. This case instead requires both a targeted investigation (Inspect free disk, workspace lifecycle, container images and failure records.) and a controlled change (Implement safe workspace cleanup and monitored cache eviction consistent with rollback needs.).

C:

Review cache key configuration, lockfile hash, package restore logs and unexpected results. This concerns a different DevOps situation: A pipeline caches packages under one global key even after lockfile changes, causing inconsistent builds. This case instead requires both a targeted investigation (Inspect free disk, workspace lifecycle, container images and failure records.) and a controlled change (Implement safe workspace cleanup and monitored cache eviction consistent with rollback needs.).

E:

Inspect run timelines, environment approval events and task durations. This concerns a different DevOps situation: An approval gate makes a release appear to take two hours, but actual deployment work takes five minutes. This case instead requires both a targeted investigation (Inspect free disk, workspace lifecycle, container images and failure records.) and a controlled change (Implement safe workspace cleanup and monitored cache eviction consistent with rollback needs.).

Question 731

An Azure DevOps engineering team evaluates this condition: A production stage sometimes downloads an artifact from a different branch due to an ambiguous pipeline resource definition. Which DevOps principle BEST explains the underlying weakness?

  1. Pipeline resource references should bind to intended verified source and build run.
  2. Duration analysis should distinguish human wait stages and task execution bottlenecks.
  3. Deployment identities should support safe rotation or federation without release downtime.
  4. Pipeline operational health needs assigned responders and maintained notification routing.

Explanation

Correct Answer

A:

Pipeline resource references should bind to intended verified source and build run. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Inspect pipeline resources, branch filters, artifact provenance and run IDs. An appropriate controlled response is: Pin or govern the consumed artifact to the approved pipeline run and branch.

Incorrect Answers

B:

Duration analysis should distinguish human wait stages and task execution bottlenecks. This would address a different situation, such as: An approval gate makes a release appear to take two hours, but actual deployment work takes five minutes. In the present case, the most directly relevant principle is: Pipeline resource references should bind to intended verified source and build run. The crucial distinction is: Pipeline resource references should bind to intended verified source and build run.

C:

Deployment identities should support safe rotation or federation without release downtime. This would address a different situation, such as: A legacy release service principal secret is set to expire tomorrow and pipeline maintenance has no automated credential lifecycle. In the present case, the most directly relevant principle is: Pipeline resource references should bind to intended verified source and build run. The crucial distinction is: Pipeline resource references should bind to intended verified source and build run.

D:

Pipeline operational health needs assigned responders and maintained notification routing. This would address a different situation, such as: A pipeline reports repeated deployment failures but no team receives notifications because the original owner left the company. In the present case, the most directly relevant principle is: Pipeline resource references should bind to intended verified source and build run. The crucial distinction is: Pipeline resource references should bind to intended verified source and build run.

Question 732

The DevOps team must resolve this situation: Blob transaction failures increase, but dashboards track only storage account capacity in bytes. Which engineering action is MOST appropriate?

  1. Configure storage request/error monitoring with service-specific thresholds.
  2. Enable supported AKS container telemetry with resource labels and actionable alerts.
  3. Configure insight charts and notifications for failed and slow required workflows.
  4. Instrument supported Application Insights distributed tracing with context propagation.

Explanation

Correct Answer

A:

Configure storage request/error monitoring with service-specific thresholds. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: A simulated failed blob operation is visible despite unchanged storage capacity. Operational monitoring must include service request errors, latency and availability, not just capacity.

Incorrect Answers

B:

Enable supported AKS container telemetry with resource labels and actionable alerts. This would address a different situation, such as: AKS pods restart frequently but the team captures only the last running pod's console output. In the present case, the most directly relevant engineering action is: Configure storage request/error monitoring with service-specific thresholds. The crucial distinction is: Operational monitoring must include service request errors, latency and availability, not just capacity.

C:

Configure insight charts and notifications for failed and slow required workflows. This would address a different situation, such as: A GitHub project has rising CI failures, but maintainers monitor only total completed workflow counts. In the present case, the most directly relevant engineering action is: Configure storage request/error monitoring with service-specific thresholds. The crucial distinction is: Operational monitoring must include service request errors, latency and availability, not just capacity.

D:

Instrument supported Application Insights distributed tracing with context propagation. This would address a different situation, such as: A shopping application logs HTTP failures but does not show which downstream payment call caused the response delay. In the present case, the most directly relevant engineering action is: Configure storage request/error monitoring with service-specific thresholds. The crucial distinction is: Operational monitoring must include service request errors, latency and availability, not just capacity.

Question 733

An Azure DevOps engineering team evaluates this condition: A developer needs one service from a huge monorepo, but each checkout transfers every unrelated project and binary. Which DevOps principle BEST explains the underlying weakness?

  1. Repository hygiene needs tracked-artifact policy and planned history repair when necessary.
  2. Repository access should be limited to the minimum collaborator operations.
  3. Large binary artifacts need purpose-built storage to avoid expanding ordinary Git history.
  4. Large repositories can use sparse checkout and partial clone to reduce unnecessary working data.

Explanation

Correct Answer

D:

Large repositories can use sparse checkout and partial clone to reduce unnecessary working data. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Inspect repository layout, dependency graph, clone filters and build requirements. An appropriate controlled response is: Configure supported sparse checkout or Scalar/partial clone for constrained workflows.

Incorrect Answers

A:

Repository hygiene needs tracked-artifact policy and planned history repair when necessary. This would address a different situation, such as: A project accidentally committed generated build outputs and its repository history grew by several gigabytes. In the present case, the most directly relevant principle is: Large repositories can use sparse checkout and partial clone to reduce unnecessary working data. The crucial distinction is: Large repositories can use sparse checkout and partial clone to reduce unnecessary working data.

B:

Repository access should be limited to the minimum collaborator operations. This would address a different situation, such as: A QA vendor needs read-only test access but has been granted repository administration rights. In the present case, the most directly relevant principle is: Large repositories can use sparse checkout and partial clone to reduce unnecessary working data. The crucial distinction is: Large repositories can use sparse checkout and partial clone to reduce unnecessary working data.

C:

Large binary artifacts need purpose-built storage to avoid expanding ordinary Git history. This would address a different situation, such as: Designers repeatedly commit multi-gigabyte video assets as normal Git blobs and cloning takes hours. In the present case, the most directly relevant principle is: Large repositories can use sparse checkout and partial clone to reduce unnecessary working data. The crucial distinction is: Large repositories can use sparse checkout and partial clone to reduce unnecessary working data.

Question 734

The DevOps team must resolve this situation: A service builds on a Windows workstation but fails on Linux CI because a source import differs only in filename case. Which engineering action is MOST appropriate?

  1. Stop tracking generated outputs and plan reviewed history cleanup with team coordination.
  2. Configure supported sparse checkout or Scalar/partial clone for constrained workflows.
  3. Normalize names and case-correct imports with cross-platform validation in PR checks.
  4. Archive the repository or lock write access with audited exception handling.

Explanation

Correct Answer

C:

Normalize names and case-correct imports with cross-platform validation in PR checks. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: The same repository commit builds on both the intended Windows and Linux agents. Source control workflows must verify path case and platform consistency.

Incorrect Answers

A:

Stop tracking generated outputs and plan reviewed history cleanup with team coordination. This would address a different situation, such as: A project accidentally committed generated build outputs and its repository history grew by several gigabytes. In the present case, the most directly relevant engineering action is: Normalize names and case-correct imports with cross-platform validation in PR checks. The crucial distinction is: Source control workflows must verify path case and platform consistency.

B:

Configure supported sparse checkout or Scalar/partial clone for constrained workflows. This would address a different situation, such as: A developer needs one service from a huge monorepo, but each checkout transfers every unrelated project and binary. In the present case, the most directly relevant engineering action is: Normalize names and case-correct imports with cross-platform validation in PR checks. The crucial distinction is: Source control workflows must verify path case and platform consistency.

D:

Archive the repository or lock write access with audited exception handling. This would address a different situation, such as: An archived security-sensitive repository remains writable by former project members and receives unreviewed commits. In the present case, the most directly relevant engineering action is: Normalize names and case-correct imports with cross-platform validation in PR checks. The crucial distinction is: Source control workflows must verify path case and platform consistency.

Question 735

The DevOps team must resolve this situation: A payment workflow completes an HTTP health check but fails after users submit the checkout form. Which engineering action is MOST appropriate?

  1. Implement repeatable baseline comparison gates for resource consumption and latency.
  2. Run supported code scanning on pull requests with risk-appropriate merge gates.
  3. Add guarded end-to-end UI tests for checkout and payment confirmation.
  4. Test expand-and-contract schema changes against concurrent old and new application instances.

Explanation

Correct Answer

C:

Add guarded end-to-end UI tests for checkout and payment confirmation. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: A deliberately broken checkout fails the test pipeline before deployment. Release validation should test critical business journeys rather than only process liveness.

Incorrect Answers

A:

Implement repeatable baseline comparison gates for resource consumption and latency. This would address a different situation, such as: An API's new release increases CPU costs by 60%, but the load test reports green because no baseline exists. In the present case, the most directly relevant engineering action is: Add guarded end-to-end UI tests for checkout and payment confirmation. The crucial distinction is: Release validation should test critical business journeys rather than only process liveness.

B:

Run supported code scanning on pull requests with risk-appropriate merge gates. This would address a different situation, such as: A GitHub repository scans vulnerabilities once a month but merges vulnerable code daily. In the present case, the most directly relevant engineering action is: Add guarded end-to-end UI tests for checkout and payment confirmation. The crucial distinction is: Release validation should test critical business journeys rather than only process liveness.

D:

Test expand-and-contract schema changes against concurrent old and new application instances. This would address a different situation, such as: A release adds a non-null column while old and new application versions temporarily operate together. In the present case, the most directly relevant engineering action is: Add guarded end-to-end UI tests for checkout and payment confirmation. The crucial distinction is: Release validation should test critical business journeys rather than only process liveness.

Question 736

A Microsoft DevOps team is addressing: Builds fail after an Azure Pipelines hosted image update because a legacy runtime was implicitly available before. Which TWO complementary actions should be taken? Select TWO answers.

  1. Pin or explicitly install supported toolchains and test migrations before image retirement.
  2. Pin or govern the consumed artifact to the approved pipeline run and branch.
  3. Track flaky test metrics and assign root-cause fixes rather than unconditional retries.
  4. Inspect agent image announcement, demands, SDK versions and task compatibility.
  5. Compare classic stage approvals with YAML environment checks and service-connection authorization.

Explanation

Correct Answers

A:

Pin or explicitly install supported toolchains and test migrations before image retirement. This supplies the controlled implementation needed for the scenario. Its complementary step is: Inspect agent image announcement, demands, SDK versions and task compatibility. Together they address: Pipelines should declare supported tooling instead of depending on incidental agent image contents.

D:

Inspect agent image announcement, demands, SDK versions and task compatibility. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Pin or explicitly install supported toolchains and test migrations before image retirement. Together they address: Pipelines should declare supported tooling instead of depending on incidental agent image contents.

Incorrect Answers

B:

Pin or govern the consumed artifact to the approved pipeline run and branch. This concerns a different DevOps situation: A production stage sometimes downloads an artifact from a different branch due to an ambiguous pipeline resource definition. This case instead requires both a targeted investigation (Inspect agent image announcement, demands, SDK versions and task compatibility.) and a controlled change (Pin or explicitly install supported toolchains and test migrations before image retirement.).

C:

Track flaky test metrics and assign root-cause fixes rather than unconditional retries. This concerns a different DevOps situation: Pipeline duration grows because a flaky test is retried eight times but the dashboard still shows every build as green. This case instead requires both a targeted investigation (Inspect agent image announcement, demands, SDK versions and task compatibility.) and a controlled change (Pin or explicitly install supported toolchains and test migrations before image retirement.).

E:

Compare classic stage approvals with YAML environment checks and service-connection authorization. This concerns a different DevOps situation: After migrating to YAML, a production release skips mandatory human approval that existed in a classic release stage. This case instead requires both a targeted investigation (Inspect agent image announcement, demands, SDK versions and task compatibility.) and a controlled change (Pin or explicitly install supported toolchains and test migrations before image retirement.).

Question 737

Before changing the pipeline or service, engineers find: An automation bot uses a maintainer's all-repository personal access token to comment on pull requests. Which evidence should the engineer inspect FIRST?

  1. Inspect endpoint grant-to-all settings, environment checks and pipeline identities.
  2. Inspect service connection credentials, Entra federated subject, role assignments and usage logs.
  3. Inspect token scope, audit events, bot responsibilities and repository installation.
  4. Inspect existing identity attachments, role assignments and resource replacement behavior.

Explanation

Correct Answer

C:

Inspect token scope, audit events, bot responsibilities and repository installation. This directly checks the uncertain behavior or control before changing production. App-based automation can use narrow installation permissions and accountable identity. The resulting targeted action is: Use a GitHub App with minimal repository permissions for the workflow.

Incorrect Answers

A:

Inspect endpoint grant-to-all settings, environment checks and pipeline identities. This would address a different situation, such as: An Azure DevOps deployment service connection is authorized for all pipelines, including untrusted test definitions. In the present case, the most directly relevant evidence is: Inspect token scope, audit events, bot responsibilities and repository installation. The crucial distinction is: App-based automation can use narrow installation permissions and accountable identity.

B:

Inspect service connection credentials, Entra federated subject, role assignments and usage logs. This would address a different situation, such as: A deployment workflow has a client secret in a variable group that is copied between projects and never rotated. In the present case, the most directly relevant evidence is: Inspect token scope, audit events, bot responsibilities and repository installation. The crucial distinction is: App-based automation can use narrow installation permissions and accountable identity.

D:

Inspect existing identity attachments, role assignments and resource replacement behavior. This would address a different situation, such as: An autoscaled deployment needs consistent identity across short-lived Azure compute instances that are replaced frequently. In the present case, the most directly relevant evidence is: Inspect token scope, audit events, bot responsibilities and repository installation. The crucial distinction is: App-based automation can use narrow installation permissions and accountable identity.

Question 738

The DevOps team must resolve this situation: A desktop client update is rolled out to every employee globally at the same moment, causing a widespread outage. Which engineering action is MOST appropriate?

  1. Implement staged deployment rings with explicit gates and pause criteria.
  2. Use backward-compatible API rollout and explicit dependent stage ordering.
  3. Use expand-and-contract database changes before traffic migration.
  4. Configure a controlled percentage or targeting filter with versioned rollout criteria.

Explanation

Correct Answer

A:

Implement staged deployment rings with explicit gates and pause criteria. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: A first-ring failure prevents later cohorts from receiving the release. Ring deployment sequences exposure through controlled representative cohorts.

Incorrect Answers

B:

Use backward-compatible API rollout and explicit dependent stage ordering. This would address a different situation, such as: A frontend release calls an API endpoint introduced only by a backend deployment scheduled later, breaking all sessions. In the present case, the most directly relevant engineering action is: Implement staged deployment rings with explicit gates and pause criteria. The crucial distinction is: Ring deployment sequences exposure through controlled representative cohorts.

C:

Use expand-and-contract database changes before traffic migration. This would address a different situation, such as: An App Service slot swap puts new code online while old instances still write to a shared Azure SQL schema. In the present case, the most directly relevant engineering action is: Implement staged deployment rings with explicit gates and pause criteria. The crucial distinction is: Ring deployment sequences exposure through controlled representative cohorts.

D:

Configure a controlled percentage or targeting filter with versioned rollout criteria. This would address a different situation, such as: A retailer wants to expose a new checkout feature to 5% of customers but its current flag is on or off for everyone. In the present case, the most directly relevant engineering action is: Implement staged deployment rings with explicit gates and pause criteria. The crucial distinction is: Ring deployment sequences exposure through controlled representative cohorts.

Question 739

An Azure DevOps engineering team evaluates this condition: A post-deployment verification job runs even when staging tests fail because its condition overrides the default dependency check. Which DevOps principle BEST explains the underlying weakness?

  1. Job-level token permissions should match each workflow task's minimum needs.
  2. Path filters must include shared dependencies required by the target service.
  3. Custom YAML conditions must retain required success prerequisites.
  4. Workload identity federation reduces dependence on persistent credentials for Azure deployment.

Explanation

Correct Answer

C:

Custom YAML conditions must retain required success prerequisites. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Review stage condition expressions, dependency status and test results. An appropriate controlled response is: Include explicit succeeded dependencies in the custom promotion condition.

Incorrect Answers

A:

Job-level token permissions should match each workflow task's minimum needs. This would address a different situation, such as: A reusable GitHub Actions workflow grants write permissions to every job although most only compile and test. In the present case, the most directly relevant principle is: Custom YAML conditions must retain required success prerequisites. The crucial distinction is: Custom YAML conditions must retain required success prerequisites.

B:

Path filters must include shared dependencies required by the target service. This would address a different situation, such as: A monorepo pipeline skips tests for a common authentication library because its paths filter only includes one service folder. In the present case, the most directly relevant principle is: Custom YAML conditions must retain required success prerequisites. The crucial distinction is: Custom YAML conditions must retain required success prerequisites.

D:

Workload identity federation reduces dependence on persistent credentials for Azure deployment. This would address a different situation, such as: A GitHub Actions release stores a long-lived Azure service principal password in repository secrets for every deployment. In the present case, the most directly relevant principle is: Custom YAML conditions must retain required success prerequisites. The crucial distinction is: Custom YAML conditions must retain required success prerequisites.

Question 740

An Azure DevOps engineering team evaluates this condition: A deployment pipeline runs on feature-branch pushes despite a policy requiring releases only from protected main. Which DevOps principle BEST explains the underlying weakness?

  1. Pipeline triggers must enforce reviewed source ref eligibility.
  2. Azure Pipelines GitHub integration requires scoped access and appropriate PR triggers.
  3. Cross-stage values must be explicitly published and referenced through supported output syntax.
  4. Agent placement should satisfy network access and security constraints without overprivilege.

Explanation

Correct Answer

A:

Pipeline triggers must enforce reviewed source ref eligibility. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Inspect YAML trigger filters, branch protections and deployment conditions. An appropriate controlled response is: Limit production deployment to permitted protected refs and validated build artifacts.

Incorrect Answers

B:

Azure Pipelines GitHub integration requires scoped access and appropriate PR triggers. This would address a different situation, such as: An Azure DevOps pipeline uses a GitHub repository but cannot run pull-request validation because its repository connection is misconfigured. In the present case, the most directly relevant principle is: Pipeline triggers must enforce reviewed source ref eligibility. The crucial distinction is: Pipeline triggers must enforce reviewed source ref eligibility.

C:

Cross-stage values must be explicitly published and referenced through supported output syntax. This would address a different situation, such as: A downstream stage cannot determine the storage endpoint created by an infrastructure provisioning stage. In the present case, the most directly relevant principle is: Pipeline triggers must enforce reviewed source ref eligibility. The crucial distinction is: Pipeline triggers must enforce reviewed source ref eligibility.

D:

Agent placement should satisfy network access and security constraints without overprivilege. This would address a different situation, such as: A build must reach private package infrastructure inaccessible from Microsoft-hosted agents. In the present case, the most directly relevant principle is: Pipeline triggers must enforce reviewed source ref eligibility. The crucial distinction is: Pipeline triggers must enforce reviewed source ref eligibility.

Designing and Implementing Microsoft DevOps Solutions (AZ-400) Practice Tests