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 33

Question 320

The DevOps team must resolve this situation: A pipeline takes 50 minutes, but dashboard owners cannot distinguish runner queue delays from actual build execution. Which engineering action is MOST appropriate?

  1. Publish excluded and flaky test counts with test trends and actionable owner assignments.
  2. Calculate lead time for eligible service changes from commit to actual production deployment.
  3. Instrument pipeline stage durations and track queue waiting separately from execution.
  4. Build service-segmented queries and complementary stability metrics.

Explanation

Correct Answer

C:

Instrument pipeline stage durations and track queue waiting separately from execution. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: A test job delayed by runner scarcity shows queue time rather than slow compilation. Delivery optimization needs separate measurements for queue, execution and waiting stages.

Incorrect Answers

A:

Publish excluded and flaky test counts with test trends and actionable owner assignments. This would address a different situation, such as: A build dashboard reports 100% passing tests by excluding quarantined integration suites without disclosing the exclusions. In the present case, the most directly relevant engineering action is: Instrument pipeline stage durations and track queue waiting separately from execution. The crucial distinction is: Delivery optimization needs separate measurements for queue, execution and waiting stages.

B:

Calculate lead time for eligible service changes from commit to actual production deployment. This would address a different situation, such as: A dashboard measures deployment frequency but calculates lead time from the first commit in an unrelated repository. In the present case, the most directly relevant engineering action is: Instrument pipeline stage durations and track queue waiting separately from execution. The crucial distinction is: Delivery optimization needs separate measurements for queue, execution and waiting stages.

D:

Build service-segmented queries and complementary stability metrics. This would address a different situation, such as: A company combines experimental internal tools and regulated payment services into one deployment-frequency ranking. In the present case, the most directly relevant engineering action is: Instrument pipeline stage durations and track queue waiting separately from execution. The crucial distinction is: Delivery optimization needs separate measurements for queue, execution and waiting stages.

Question 321

An Azure DevOps engineering team evaluates this condition: A project relies entirely on container image vulnerability scanning while application source contains an authorization flaw. Which DevOps principle BEST explains the underlying weakness?

  1. Different scanning methods cover different classes of weakness and require complementary controls.
  2. Security capability licensing does not prove scans run or findings are reviewed.
  3. Compliance scanning should identify licensing constraints before external software distribution.
  4. Dependency monitoring should detect vulnerable package versions with actionable updates.

Explanation

Correct Answer

A:

Different scanning methods cover different classes of weakness and require complementary controls. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Review SAST, dependency, image and integration security test coverage. An appropriate controlled response is: Combine appropriate code, dependency, secret and container scanning with tested authorization scenarios.

Incorrect Answers

B:

Security capability licensing does not prove scans run or findings are reviewed. This would address a different situation, such as: An Azure Repos project has GitHub Advanced Security licensed but required code and secret scanning were never enabled for key repos. In the present case, the most directly relevant principle is: Different scanning methods cover different classes of weakness and require complementary controls. The crucial distinction is: Different scanning methods cover different classes of weakness and require complementary controls.

C:

Compliance scanning should identify licensing constraints before external software distribution. This would address a different situation, such as: A binary distribution uses open-source dependencies but its release process does not check license obligations. In the present case, the most directly relevant principle is: Different scanning methods cover different classes of weakness and require complementary controls. The crucial distinction is: Different scanning methods cover different classes of weakness and require complementary controls.

D:

Dependency monitoring should detect vulnerable package versions with actionable updates. This would address a different situation, such as: A public repository uses a vulnerable transitive NPM package but Dependabot alerts are disabled. In the present case, the most directly relevant principle is: Different scanning methods cover different classes of weakness and require complementary controls. The crucial distinction is: Different scanning methods cover different classes of weakness and require complementary controls.

Question 322

The DevOps team must resolve this situation: A pipeline runs quickly on an agent but waits 70 minutes in queue due to a limited self-hosted pool. Which engineering action is MOST appropriate?

  1. Implement safe workspace cleanup and monitored cache eviction consistent with rollback needs.
  2. Migrate to workload identity federation or controlled rotation with alerting.
  3. Track flaky test metrics and assign root-cause fixes rather than unconditional retries.
  4. Right-size authorized agent capacity and prioritize critical release jobs.

Explanation

Correct Answer

D:

Right-size authorized agent capacity and prioritize critical release jobs. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: A test run reduces queue time without sacrificing build isolation. Pipeline telemetry should distinguish agent scarcity from actual code execution cost.

Incorrect Answers

A:

Implement safe workspace cleanup and monitored cache eviction consistent with rollback needs. This would address a different situation, such as: A self-hosted agent fails after months because workspace and Docker layer caches exhaust disk space. In the present case, the most directly relevant engineering action is: Right-size authorized agent capacity and prioritize critical release jobs. The crucial distinction is: Pipeline telemetry should distinguish agent scarcity from actual code execution cost.

B:

Migrate to workload identity federation or controlled rotation with alerting. 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 engineering action is: Right-size authorized agent capacity and prioritize critical release jobs. The crucial distinction is: Pipeline telemetry should distinguish agent scarcity from actual code execution cost.

C:

Track flaky test metrics and assign root-cause fixes rather than unconditional retries. This would address a different situation, such as: Pipeline duration grows because a flaky test is retried eight times but the dashboard still shows every build as green. In the present case, the most directly relevant engineering action is: Right-size authorized agent capacity and prioritize critical release jobs. The crucial distinction is: Pipeline telemetry should distinguish agent scarcity from actual code execution cost.

Question 323

After implementing the change, the team verifies: An architecture decision record is stored in a shared folder where anyone can overwrite approved design rationale without review. Which result would BEST demonstrate that the issue is corrected?

  1. A new test pull request is visible from its related Azure Boards work item.
  2. A proposed architecture revision requires review and preserves earlier decision history.
  3. Repeated delivery of the same event results in one linked change ticket.
  4. A pipeline stage change triggers corresponding diagram review and accurate dependency display.

Explanation

Correct Answer

B:

A proposed architecture revision requires review and preserves earlier decision history. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Store decisions in a protected repository with named reviewers and link them to implementation work. Architectural knowledge needs attributable change history and accountable reviewer approval.

Incorrect Answers

A:

A new test pull request is visible from its related Azure Boards work item. This would address a different situation, such as: A team uses GitHub for code and Azure Boards for planning, but pull requests never appear in its work items. In the present case, the most directly relevant verification is: A proposed architecture revision requires review and preserves earlier decision history. The crucial distinction is: Architectural knowledge needs attributable change history and accountable reviewer approval.

C:

Repeated delivery of the same event results in one linked change ticket. This would address a different situation, such as: An Azure DevOps webhook creates duplicate change tickets whenever the receiving service retries a timeout. In the present case, the most directly relevant verification is: A proposed architecture revision requires review and preserves earlier decision history. The crucial distinction is: Architectural knowledge needs attributable change history and accountable reviewer approval.

D:

A pipeline stage change triggers corresponding diagram review and accurate dependency display. This would address a different situation, such as: New engineers misread a multi-stage release dependency diagram because process documentation uses an obsolete screenshot. In the present case, the most directly relevant verification is: A proposed architecture revision requires review and preserves earlier decision history. The crucial distinction is: Architectural knowledge needs attributable change history and accountable reviewer approval.

Question 324

Before changing the pipeline or service, engineers find: Azure Boards reports near-zero cycle time because teams move stories to Active only when coding is almost finished. Which evidence should the engineer inspect FIRST?

  1. Compare queue timestamps, job timings, capacity saturation and approval intervals.
  2. Inspect commit timestamps, deployment records, service ownership and calculation filters.
  3. Inspect workflow states, audit logs, start-of-work criteria and board queries.
  4. Review incident start, synthetic transaction recovery, customer impact and closure events.

Explanation

Correct Answer

C:

Inspect workflow states, audit logs, start-of-work criteria and board queries. This directly checks the uncertain behavior or control before changing production. Flow metrics depend on consistent state-transition definitions and truthful process data. The resulting targeted action is: Define and enforce meaningful Active and Done transitions in the team's process.

Incorrect Answers

A:

Compare queue timestamps, job timings, capacity saturation and approval intervals. This would address a different situation, such as: A pipeline takes 50 minutes, but dashboard owners cannot distinguish runner queue delays from actual build execution. In the present case, the most directly relevant evidence is: Inspect workflow states, audit logs, start-of-work criteria and board queries. The crucial distinction is: Flow metrics depend on consistent state-transition definitions and truthful process data.

B:

Inspect commit timestamps, deployment records, service ownership and calculation filters. This would address a different situation, such as: A dashboard measures deployment frequency but calculates lead time from the first commit in an unrelated repository. In the present case, the most directly relevant evidence is: Inspect workflow states, audit logs, start-of-work criteria and board queries. The crucial distinction is: Flow metrics depend on consistent state-transition definitions and truthful process data.

D:

Review incident start, synthetic transaction recovery, customer impact and closure events. This would address a different situation, such as: An operations dashboard reports recovery time ending when a VM restarts, although customer transactions remain unavailable. In the present case, the most directly relevant evidence is: Inspect workflow states, audit logs, start-of-work criteria and board queries. The crucial distinction is: Flow metrics depend on consistent state-transition definitions and truthful process data.

Question 325

An Azure DevOps engineering team evaluates this condition: A project enables Git LFS but build agents repeatedly fail because downloads exceed the organization's storage bandwidth quota. Which DevOps principle BEST explains the underlying weakness?

  1. Repository strategies must monitor large-file storage limits and build consumption patterns.
  2. Large repositories can use sparse checkout and partial clone to reduce unnecessary working data.
  3. Release references must be protected or cryptographically verified to preserve provenance.
  4. Large binary artifacts need purpose-built storage to avoid expanding ordinary Git history.

Explanation

Correct Answer

A:

Repository strategies must monitor large-file storage limits and build consumption patterns. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Inspect LFS usage, pointer resolution, CI checkout settings and quota alerts. An appropriate controlled response is: Govern large-file retention, selective downloads and authorized capacity increases.

Incorrect Answers

B:

Large repositories can use sparse checkout and partial clone to reduce unnecessary working data. 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 principle is: Repository strategies must monitor large-file storage limits and build consumption patterns. The crucial distinction is: Repository strategies must monitor large-file storage limits and build consumption patterns.

C:

Release references must be protected or cryptographically verified to preserve provenance. This would address a different situation, such as: A release build uses a mutable tag name that engineers can retarget to a different unreviewed commit. In the present case, the most directly relevant principle is: Repository strategies must monitor large-file storage limits and build consumption patterns. The crucial distinction is: Repository strategies must monitor large-file storage limits and build consumption patterns.

D:

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: Repository strategies must monitor large-file storage limits and build consumption patterns. The crucial distinction is: Repository strategies must monitor large-file storage limits and build consumption patterns.

Question 326

A Microsoft DevOps team is addressing: Application images are deployed manually after infra provisioning and the deployed image tag is not recorded in Bicep or the release pipeline. Which TWO complementary actions should be taken? Select TWO answers.

  1. Inspect environment definitions, project catalog, role assignments and teardown process.
  2. Review image digest provenance, deployment parameters and environment history.
  3. Use secured remote state with least-privilege identity and locking support.
  4. Inspect name generation, deployment history, actual resources and outputs.
  5. Pass verified immutable image identifiers through a controlled IaC deployment interface.

Explanation

Correct Answers

B:

Review image digest provenance, deployment parameters and environment history. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Pass verified immutable image identifiers through a controlled IaC deployment interface. Together they address: Infrastructure and application delivery need traceable version handoff without mutable assumptions.

E:

Pass verified immutable image identifiers through a controlled IaC deployment interface. This supplies the controlled implementation needed for the scenario. Its complementary step is: Review image digest provenance, deployment parameters and environment history. Together they address: Infrastructure and application delivery need traceable version handoff without mutable assumptions.

Incorrect Answers

A:

Inspect environment definitions, project catalog, role assignments and teardown process. This concerns a different DevOps situation: Developers need consistent temporary test environments, but each manually provisions expensive subscriptions and forgets cleanup. This case instead requires both a targeted investigation (Review image digest provenance, deployment parameters and environment history.) and a controlled change (Pass verified immutable image identifiers through a controlled IaC deployment interface.).

C:

Use secured remote state with least-privilege identity and locking support. This concerns a different DevOps situation: A Terraform workflow stores its state file in an unencrypted shared file share accessible to all developers. This case instead requires both a targeted investigation (Review image digest provenance, deployment parameters and environment history.) and a controlled change (Pass verified immutable image identifiers through a controlled IaC deployment interface.).

D:

Inspect name generation, deployment history, actual resources and outputs. This concerns a different DevOps situation: A shared Bicep deployment creates a new Log Analytics workspace on each run due to non-deterministic resource names. This case instead requires both a targeted investigation (Review image digest provenance, deployment parameters and environment history.) and a controlled change (Pass verified immutable image identifiers through a controlled IaC deployment interface.).

Question 327

An Azure DevOps engineering team evaluates this condition: A GitHub Actions test workflow with untrusted input has contents:write even though it only runs tests. Which DevOps principle BEST explains the underlying weakness?

  1. Administrative and approval authority should be segregated for sensitive deployments.
  2. Managed identity can replace application-stored credentials when the target service supports Azure RBAC.
  3. Workflow tokens should default to read-only and be elevated only where necessary.
  4. Service connection authorization must be limited to approved pipelines and resource scope.

Explanation

Correct Answer

C:

Workflow tokens should default to read-only and be elevated only where necessary. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Inspect workflow permissions, fork contexts, third-party actions and write operations. An appropriate controlled response is: Set minimum GITHUB_TOKEN permissions for each job and restrict untrusted execution.

Incorrect Answers

A:

Administrative and approval authority should be segregated for sensitive deployments. This would address a different situation, such as: Developers can edit protected deployment environments and approve their own releases because one group owns all project settings. In the present case, the most directly relevant principle is: Workflow tokens should default to read-only and be elevated only where necessary. The crucial distinction is: Workflow tokens should default to read-only and be elevated only where necessary.

B:

Managed identity can replace application-stored credentials when the target service supports Azure RBAC. This would address a different situation, such as: An App Service accesses Azure Storage using a connection string containing an account key in source control. In the present case, the most directly relevant principle is: Workflow tokens should default to read-only and be elevated only where necessary. The crucial distinction is: Workflow tokens should default to read-only and be elevated only where necessary.

D:

Service connection authorization must be limited to approved pipelines and resource scope. 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 principle is: Workflow tokens should default to read-only and be elevated only where necessary. The crucial distinction is: Workflow tokens should default to read-only and be elevated only where necessary.

Question 328

After implementing the change, the team verifies: A post-deployment verification job runs even when staging tests fail because its condition overrides the default dependency check. Which result would BEST demonstrate that the issue is corrected?

  1. A shared security fix is adopted through a reviewed template update in each consumer.
  2. A production deployment succeeds with a short-lived token and no stored client secret.
  3. An unauthorized run cannot access the production deployment until approval completes.
  4. A failed test stage prevents the dependent production verification and deployment.

Explanation

Correct Answer

D:

A failed test stage prevents the dependent production verification and deployment. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Include explicit succeeded dependencies in the custom promotion condition. Custom YAML conditions must retain required success prerequisites.

Incorrect Answers

A:

A shared security fix is adopted through a reviewed template update in each consumer. This would address a different situation, such as: Teams each copy a deployment YAML template and security fixes reach only some repositories. In the present case, the most directly relevant verification is: A failed test stage prevents the dependent production verification and deployment. The crucial distinction is: Custom YAML conditions must retain required success prerequisites.

B:

A production deployment succeeds with a short-lived token and no stored client secret. 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 verification is: A failed test stage prevents the dependent production verification and deployment. The crucial distinction is: Custom YAML conditions must retain required success prerequisites.

C:

An unauthorized run cannot access the production deployment until approval completes. This would address a different situation, such as: A YAML pipeline references a production environment but deploys through an unprotected job that never uses the environment resource. In the present case, the most directly relevant verification is: A failed test stage prevents the dependent production verification and deployment. The crucial distinction is: Custom YAML conditions must retain required success prerequisites.

Question 329

A Microsoft DevOps team is addressing: A GitHub Actions test workflow with untrusted input has contents:write even though it only runs tests. Which TWO complementary actions should be taken? Select TWO answers.

  1. Use a GitHub App with minimal repository permissions for the workflow.
  2. Inspect security groups, environment approvers, service connection owners and bypass rights.
  3. Inspect workflow permissions, fork contexts, third-party actions and write operations.
  4. Set minimum GITHUB_TOKEN permissions for each job and restrict untrusted execution.
  5. Use suitable Stakeholder access and restrict code/pipeline administration.

Explanation

Correct Answers

C:

Inspect workflow permissions, fork contexts, third-party actions and write operations. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Set minimum GITHUB_TOKEN permissions for each job and restrict untrusted execution. Together they address: Workflow tokens should default to read-only and be elevated only where necessary.

D:

Set minimum GITHUB_TOKEN permissions for each job and restrict untrusted execution. This supplies the controlled implementation needed for the scenario. Its complementary step is: Inspect workflow permissions, fork contexts, third-party actions and write operations. Together they address: Workflow tokens should default to read-only and be elevated only where necessary.

Incorrect Answers

A:

Use a GitHub App with minimal repository permissions for the workflow. This concerns a different DevOps situation: An automation bot uses a maintainer's all-repository personal access token to comment on pull requests. This case instead requires both a targeted investigation (Inspect workflow permissions, fork contexts, third-party actions and write operations.) and a controlled change (Set minimum GITHUB_TOKEN permissions for each job and restrict untrusted execution.).

B:

Inspect security groups, environment approvers, service connection owners and bypass rights. This concerns a different DevOps situation: Developers can edit protected deployment environments and approve their own releases because one group owns all project settings. This case instead requires both a targeted investigation (Inspect workflow permissions, fork contexts, third-party actions and write operations.) and a controlled change (Set minimum GITHUB_TOKEN permissions for each job and restrict untrusted execution.).

E:

Use suitable Stakeholder access and restrict code/pipeline administration. This concerns a different DevOps situation: A product manager needs to view Azure Boards and submit work items but is given full build administration permissions. This case instead requires both a targeted investigation (Inspect workflow permissions, fork contexts, third-party actions and write operations.) and a controlled change (Set minimum GITHUB_TOKEN permissions for each job and restrict untrusted execution.).

Question 330

An Azure DevOps engineering team evaluates this condition: An Azure DevOps deployment service connection is authorized for all pipelines, including untrusted test definitions. Which DevOps principle BEST explains the underlying weakness?

  1. Service connection authorization must be limited to approved pipelines and resource scope.
  2. A user-assigned managed identity can preserve identity lifecycle independently of individual resources.
  3. Azure DevOps access levels and security groups should reflect actual job duties.
  4. Administrative and approval authority should be segregated for sensitive deployments.

Explanation

Correct Answer

A:

Service connection authorization must be limited to approved pipelines and resource scope. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Inspect endpoint grant-to-all settings, environment checks and pipeline identities. An appropriate controlled response is: Disable broad access and explicitly authorize the approved production pipelines.

Incorrect Answers

B:

A user-assigned managed identity can preserve identity lifecycle independently of individual resources. 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 principle is: Service connection authorization must be limited to approved pipelines and resource scope. The crucial distinction is: Service connection authorization must be limited to approved pipelines and resource scope.

C:

Azure DevOps access levels and security groups should reflect actual job duties. This would address a different situation, such as: A product manager needs to view Azure Boards and submit work items but is given full build administration permissions. In the present case, the most directly relevant principle is: Service connection authorization must be limited to approved pipelines and resource scope. The crucial distinction is: Service connection authorization must be limited to approved pipelines and resource scope.

D:

Administrative and approval authority should be segregated for sensitive deployments. This would address a different situation, such as: Developers can edit protected deployment environments and approve their own releases because one group owns all project settings. In the present case, the most directly relevant principle is: Service connection authorization must be limited to approved pipelines and resource scope. The crucial distinction is: Service connection authorization must be limited to approved pipelines and resource scope.

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