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 30

Question 290

A Microsoft DevOps team is addressing: A build dashboard reports 100% passing tests by excluding quarantined integration suites without disclosing the exclusions. Which TWO complementary actions should be taken? Select TWO answers.

  1. Calculate lead time for eligible service changes from commit to actual production deployment.
  2. Review pipeline test publications, excluded suites, flaky test logs and quality thresholds.
  3. Define and enforce meaningful Active and Done transitions in the team's process.
  4. Build service-segmented queries and complementary stability metrics.
  5. Publish excluded and flaky test counts with test trends and actionable owner assignments.

Explanation

Correct Answers

B:

Review pipeline test publications, excluded suites, flaky test logs and quality thresholds. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Publish excluded and flaky test counts with test trends and actionable owner assignments. Together they address: Quality dashboards should show scope, omissions and relevant risk alongside pass rates.

E:

Publish excluded and flaky test counts with test trends and actionable owner assignments. This supplies the controlled implementation needed for the scenario. Its complementary step is: Review pipeline test publications, excluded suites, flaky test logs and quality thresholds. Together they address: Quality dashboards should show scope, omissions and relevant risk alongside pass rates.

Incorrect Answers

A:

Calculate lead time for eligible service changes from commit to actual production deployment. This concerns a different DevOps situation: A dashboard measures deployment frequency but calculates lead time from the first commit in an unrelated repository. This case instead requires both a targeted investigation (Review pipeline test publications, excluded suites, flaky test logs and quality thresholds.) and a controlled change (Publish excluded and flaky test counts with test trends and actionable owner assignments.).

C:

Define and enforce meaningful Active and Done transitions in the team's process. This concerns a different DevOps situation: Azure Boards reports near-zero cycle time because teams move stories to Active only when coding is almost finished. This case instead requires both a targeted investigation (Review pipeline test publications, excluded suites, flaky test logs and quality thresholds.) and a controlled change (Publish excluded and flaky test counts with test trends and actionable owner assignments.).

D:

Build service-segmented queries and complementary stability metrics. This concerns a different DevOps situation: A company combines experimental internal tools and regulated payment services into one deployment-frequency ranking. This case instead requires both a targeted investigation (Review pipeline test publications, excluded suites, flaky test logs and quality thresholds.) and a controlled change (Publish excluded and flaky test counts with test trends and actionable owner assignments.).

Question 291

An Azure DevOps engineering team evaluates this condition: A development team uses a package with licensing obligations incompatible with a proprietary distribution without checking the transitive tree. Which DevOps principle BEST explains the underlying weakness?

  1. Semantic versioning should reflect compatibility impact rather than commit count.
  2. Artifact integrity requires immutable identity and reliable build-to-release linkage.
  3. Package approval must consider legal and licensing obligations alongside technical vulnerabilities.
  4. Upstream sources can cache approved public dependencies through controlled feeds.

Explanation

Correct Answer

C:

Package approval must consider legal and licensing obligations alongside technical vulnerabilities. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Review dependency SBOM, licensing metadata, commercial distribution rights and exceptions. An appropriate controlled response is: Integrate license policy checks into feed promotion and release approval.

Incorrect Answers

A:

Semantic versioning should reflect compatibility impact rather than commit count. This would address a different situation, such as: A compatible optional SDK feature is added, but release automation increments the major version for every change. In the present case, the most directly relevant principle is: Package approval must consider legal and licensing obligations alongside technical vulnerabilities. The crucial distinction is: Package approval must consider legal and licensing obligations alongside technical vulnerabilities.

B:

Artifact integrity requires immutable identity and reliable build-to-release linkage. This would address a different situation, such as: A build pipeline uploads a ZIP under a stable filename and a later build overwrites it before deployment. In the present case, the most directly relevant principle is: Package approval must consider legal and licensing obligations alongside technical vulnerabilities. The crucial distinction is: Package approval must consider legal and licensing obligations alongside technical vulnerabilities.

D:

Upstream sources can cache approved public dependencies through controlled feeds. This would address a different situation, such as: A package feed cannot install vetted public dependencies during a disconnected corporate build unless developers manually copy files. In the present case, the most directly relevant principle is: Package approval must consider legal and licensing obligations alongside technical vulnerabilities. The crucial distinction is: Package approval must consider legal and licensing obligations alongside technical vulnerabilities.

Question 292

After implementing the change, the team verifies: An organization distributes a proprietary CLI as email attachments so engineering teams run inconsistent versions. Which result would BEST demonstrate that the issue is corrected?

  1. A client installs the documented release and verifies its content digest.
  2. A fresh workflow installs the private package without a long-lived personal token.
  3. A verified public package version resolves through the governed feed after initial caching.
  4. A newly built wheel no longer includes the vulnerable dependency and tests pass.

Explanation

Correct Answer

A:

A client installs the documented release and verifies its content digest. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Publish the CLI as a versioned Azure Artifacts Universal Package with controlled access. Versioned universal packages provide reproducible distribution of nonlanguage build outputs.

Incorrect Answers

B:

A fresh workflow installs the private package without a long-lived personal token. This would address a different situation, such as: A GitHub Actions workflow receives 403 when installing a private package owned by another organization repository. In the present case, the most directly relevant verification is: A client installs the documented release and verifies its content digest. The crucial distinction is: Versioned universal packages provide reproducible distribution of nonlanguage build outputs.

C:

A verified public package version resolves through the governed feed after initial caching. This would address a different situation, such as: A package feed cannot install vetted public dependencies during a disconnected corporate build unless developers manually copy files. In the present case, the most directly relevant verification is: A client installs the documented release and verifies its content digest. The crucial distinction is: Versioned universal packages provide reproducible distribution of nonlanguage build outputs.

D:

A newly built wheel no longer includes the vulnerable dependency and tests pass. This would address a different situation, such as: A pipeline publishes Python wheels from a feed after an advisory identifies a vulnerable indirect dependency. In the present case, the most directly relevant verification is: A client installs the documented release and verifies its content digest. The crucial distinction is: Versioned universal packages provide reproducible distribution of nonlanguage build outputs.

Question 293

An engineering design review identifies: Several production defects were fixed, but QA cannot determine which automated test gaps allowed them to escape. Which shortcut should the team MOST specifically avoid for this case?

  1. Delete every review requirement so developers can push hotfixes directly to main.
  2. Ask support staff to maintain a private unversioned list of customer complaints.
  3. Duplicate the same task without linkage in each team's backlog and mark all as independent.
  4. Report aggregate bug counts without recording related tests or affected revisions.

Explanation

Correct Answer

D:

Report aggregate bug counts without recording related tests or affected revisions. This shortcut directly undermines the stated control or workflow. A safer action is: Relate production bugs to failing or missing tests and preventive backlog work. Explanation: Defect traceability should connect incidents to code, test coverage and prevention work.

Incorrect Answers

A:

Delete every review requirement so developers can push hotfixes directly to main. This would address a different situation, such as: An engineering organization uses long-lived feature branches, and its hotfixes regularly miss previously merged changes. In the present case, the most directly relevant unsafe shortcut is: Report aggregate bug counts without recording related tests or affected revisions. The crucial distinction is: Defect traceability should connect incidents to code, test coverage and prevention work.

B:

Ask support staff to maintain a private unversioned list of customer complaints. This would address a different situation, such as: Customer-reported bugs arrive in chat messages and are never consistently recorded for the development team. In the present case, the most directly relevant unsafe shortcut is: Report aggregate bug counts without recording related tests or affected revisions. The crucial distinction is: Defect traceability should connect incidents to code, test coverage and prevention work.

C:

Duplicate the same task without linkage in each team's backlog and mark all as independent. This would address a different situation, such as: A platform dependency blocks three application teams, but each Azure Boards team tracks a separate unrelated task. In the present case, the most directly relevant unsafe shortcut is: Report aggregate bug counts without recording related tests or affected revisions. The crucial distinction is: Defect traceability should connect incidents to code, test coverage and prevention work.

Question 294

An Azure DevOps engineering team evaluates this condition: A GitHub self-hosted runner accepts workflows from untrusted forks and shares its workspace with production credentials. Which DevOps principle BEST explains the underlying weakness?

  1. Azure service connections can use workload identity federation instead of expiring shared secrets.
  2. Self-hosted runners require trust boundaries and workload-specific isolation.
  3. Concurrent deployments require serialization or controlled exclusive access to shared environments.
  4. Cross-stage values must be explicitly published and referenced through supported output syntax.

Explanation

Correct Answer

B:

Self-hosted runners require trust boundaries and workload-specific isolation. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Inspect repository runner group rules, fork workflow triggers and credential persistence. An appropriate controlled response is: Restrict runner access to trusted workflows and use ephemeral isolated runners for sensitive jobs.

Incorrect Answers

A:

Azure service connections can use workload identity federation instead of expiring shared secrets. This would address a different situation, such as: An Azure DevOps pipeline's Azure Resource Manager service connection fails each quarter when its client secret expires. In the present case, the most directly relevant principle is: Self-hosted runners require trust boundaries and workload-specific isolation. The crucial distinction is: Self-hosted runners require trust boundaries and workload-specific isolation.

C:

Concurrent deployments require serialization or controlled exclusive access to shared environments. This would address a different situation, such as: Two production deployments target the same App Service slot simultaneously and the earlier one overwrites the newer release. In the present case, the most directly relevant principle is: Self-hosted runners require trust boundaries and workload-specific isolation. The crucial distinction is: Self-hosted runners require trust boundaries and workload-specific isolation.

D:

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: Self-hosted runners require trust boundaries and workload-specific isolation. The crucial distinction is: Self-hosted runners require trust boundaries and workload-specific isolation.

Question 295

The DevOps team must resolve this situation: Service unit tests pass but integration fails because Azure SQL connectivity differs between staging and production. Which engineering action is MOST appropriate?

  1. Run isolated integration tests against approved representative Azure SQL dependencies.
  2. Improve boundary-value assertions and use mutation or targeted fault tests as appropriate.
  3. Run supported code scanning on pull requests with risk-appropriate merge gates.
  4. Use a dedicated test subscription or resource group with restricted identity permissions.

Explanation

Correct Answer

A:

Run isolated integration tests against approved representative Azure SQL dependencies. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: A bad connectivity rule fails before release while approved paths succeed. Integration tests must exercise representative dependent services and configuration.

Incorrect Answers

B:

Improve boundary-value assertions and use mutation or targeted fault tests as appropriate. This would address a different situation, such as: A business rule has 100% line coverage, but tests still pass when its comparison operator is reversed. In the present case, the most directly relevant engineering action is: Run isolated integration tests against approved representative Azure SQL dependencies. The crucial distinction is: Integration tests must exercise representative dependent services and configuration.

C:

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: Run isolated integration tests against approved representative Azure SQL dependencies. The crucial distinction is: Integration tests must exercise representative dependent services and configuration.

D:

Use a dedicated test subscription or resource group with restricted identity permissions. This would address a different situation, such as: A test pipeline reuses a production storage account and occasionally deletes customer fixtures. In the present case, the most directly relevant engineering action is: Run isolated integration tests against approved representative Azure SQL dependencies. The crucial distinction is: Integration tests must exercise representative dependent services and configuration.

Question 296

After implementing the change, the team verifies: An application release references a database secret version that was deleted during automatic rotation, causing downtime. Which result would BEST demonstrate that the issue is corrected?

  1. The target endpoint serves the full trusted chain without exposing the private key in logs.
  2. A rotation rehearsal preserves application connectivity without exposing the old secret.
  3. A failure-path test emits useful diagnostics but no usable access tokens.
  4. An unauthorized caller cannot download the deployment configuration and temp files are removed.

Explanation

Correct Answer

B:

A rotation rehearsal preserves application connectivity without exposing the old secret. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Adopt a tested version-management and rotation workflow with rollback compatibility. Secret rotation must coordinate client update, version retention and recovery.

Incorrect Answers

A:

The target endpoint serves the full trusted chain without exposing the private key in logs. This would address a different situation, such as: An Azure service uses a TLS certificate uploaded to Key Vault, but the deployment copies only the public certificate without the private-key binding. In the present case, the most directly relevant verification is: A rotation rehearsal preserves application connectivity without exposing the old secret. The crucial distinction is: Secret rotation must coordinate client update, version retention and recovery.

C:

A failure-path test emits useful diagnostics but no usable access tokens. This would address a different situation, such as: An Azure CLI task runs with set -x and echoes bearer tokens in the pipeline console log. In the present case, the most directly relevant verification is: A rotation rehearsal preserves application connectivity without exposing the old secret. The crucial distinction is: Secret rotation must coordinate client update, version retention and recovery.

D:

An unauthorized caller cannot download the deployment configuration and temp files are removed. This would address a different situation, such as: A deployment downloads a private configuration file from a public blob URL before replacing placeholders. In the present case, the most directly relevant verification is: A rotation rehearsal preserves application connectivity without exposing the old secret. The crucial distinction is: Secret rotation must coordinate client update, version retention and recovery.

Question 297

The DevOps team must resolve this situation: An application release references a database secret version that was deleted during automatic rotation, causing downtime. Which engineering action is MOST appropriate?

  1. Use an authorized Azure Key Vault-backed secret reference with protected variable handling.
  2. Store approved signing material as an Azure Pipelines secure file with restricted authorization.
  3. Adopt a tested version-management and rotation workflow with rollback compatibility.
  4. Limit trust to an approved protected repository environment and least-privilege scope.

Explanation

Correct Answer

C:

Adopt a tested version-management and rotation workflow with rollback compatibility. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: A rotation rehearsal preserves application connectivity without exposing the old secret. Secret rotation must coordinate client update, version retention and recovery.

Incorrect Answers

A:

Use an authorized Azure Key Vault-backed secret reference with protected variable handling. This would address a different situation, such as: A pipeline prints a database password stored in a plain YAML variable during environment deployment. In the present case, the most directly relevant engineering action is: Adopt a tested version-management and rotation workflow with rollback compatibility. The crucial distinction is: Secret rotation must coordinate client update, version retention and recovery.

B:

Store approved signing material as an Azure Pipelines secure file with restricted authorization. This would address a different situation, such as: A mobile signing certificate is embedded as Base64 directly in a public pipeline YAML file. In the present case, the most directly relevant engineering action is: Adopt a tested version-management and rotation workflow with rollback compatibility. The crucial distinction is: Secret rotation must coordinate client update, version retention and recovery.

D:

Limit trust to an approved protected repository environment and least-privilege scope. This would address a different situation, such as: A federated Azure identity accepts tokens from any branch in a public GitHub repository and can deploy production resources. In the present case, the most directly relevant engineering action is: Adopt a tested version-management and rotation workflow with rollback compatibility. The crucial distinction is: Secret rotation must coordinate client update, version retention and recovery.

Question 298

An engineering design review identifies: A pipeline starts integration tests before deploying the dependent database migration, causing intermittent failures. Which shortcut should the team MOST specifically avoid for this case?

  1. Insert a fixed 30-second sleep instead of checking actual readiness.
  2. Scale test agents without simulating production-like client demand.
  3. Wait for the monthly scan and fix any newly introduced vulnerability later.
  4. Copy an SDK from a developer laptop into an untracked agent folder.

Explanation

Correct Answer

A:

Insert a fixed 30-second sleep instead of checking actual readiness. This shortcut directly undermines the stated control or workflow. A safer action is: Make integration testing depend on successful migration and test environment readiness. Explanation: Test stages must declare prerequisite environment and schema dependencies explicitly.

Incorrect Answers

B:

Scale test agents without simulating production-like client demand. This would address a different situation, such as: An API passes functional tests for one user but violates latency objectives under 1,000 concurrent clients. In the present case, the most directly relevant unsafe shortcut is: Insert a fixed 30-second sleep instead of checking actual readiness. The crucial distinction is: Test stages must declare prerequisite environment and schema dependencies explicitly.

C:

Wait for the monthly scan and fix any newly introduced vulnerability later. 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 unsafe shortcut is: Insert a fixed 30-second sleep instead of checking actual readiness. The crucial distinction is: Test stages must declare prerequisite environment and schema dependencies explicitly.

D:

Copy an SDK from a developer laptop into an untracked agent folder. This would address a different situation, such as: An Azure Pipeline fails only on hosted agents because tests require an uninstalled legacy.NET SDK. In the present case, the most directly relevant unsafe shortcut is: Insert a fixed 30-second sleep instead of checking actual readiness. The crucial distinction is: Test stages must declare prerequisite environment and schema dependencies explicitly.

Question 299

The DevOps team must resolve this situation: A new AKS container image may affect payments, but the team wants to limit customer exposure during rollout. Which engineering action is MOST appropriate?

  1. Route a bounded canary share to new pods and expand only after acceptance checks.
  2. Use backward-compatible API rollout and explicit dependent stage ordering.
  3. Set appropriate maxUnavailable/maxSurge and validate readiness during rollout.
  4. Define a limited hotfix workflow with priority testing, accountable approval and later backport.

Explanation

Correct Answer

A:

Route a bounded canary share to new pods and expand only after acceptance checks. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: A faulty canary triggers rollback while most production traffic remains on healthy pods. Canary deployments reduce blast radius by validating a small traffic share first.

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: Route a bounded canary share to new pods and expand only after acceptance checks. The crucial distinction is: Canary deployments reduce blast radius by validating a small traffic share first.

C:

Set appropriate maxUnavailable/maxSurge and validate readiness during rollout. This would address a different situation, such as: An AKS update removes every API pod simultaneously because maxUnavailable equals the full replica count. In the present case, the most directly relevant engineering action is: Route a bounded canary share to new pods and expand only after acceptance checks. The crucial distinction is: Canary deployments reduce blast radius by validating a small traffic share first.

D:

Define a limited hotfix workflow with priority testing, accountable approval and later backport. This would address a different situation, such as: A security vulnerability needs same-day correction but the organization’s normal three-week release train blocks all fixes. In the present case, the most directly relevant engineering action is: Route a bounded canary share to new pods and expand only after acceptance checks. The crucial distinction is: Canary deployments reduce blast radius by validating a small traffic share first.

Question 300

Before changing the pipeline or service, engineers find: A post-deployment verification job runs even when staging tests fail because its condition overrides the default dependency check. Which evidence should the engineer inspect FIRST?

  1. Inspect GitHub App installation, service connection, YAML PR settings and branch policy.
  2. Review stage condition expressions, dependency status and test results.
  3. Inspect task group inputs, variable classifications, log output and service permissions.
  4. Inspect supported OS/runtime targets, build matrix and test coverage.

Explanation

Correct Answer

B:

Review stage condition expressions, dependency status and test results. This directly checks the uncertain behavior or control before changing production. Custom YAML conditions must retain required success prerequisites. The resulting targeted action is: Include explicit succeeded dependencies in the custom promotion condition.

Incorrect Answers

A:

Inspect GitHub App installation, service connection, YAML PR settings and branch policy. 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 evidence is: Review stage condition expressions, dependency status and test results. The crucial distinction is: Custom YAML conditions must retain required success prerequisites.

C:

Inspect task group inputs, variable classifications, log output and service permissions. This would address a different situation, such as: An Azure Pipelines task group exposes a deployment secret as a plain variable and prints it during release. In the present case, the most directly relevant evidence is: Review stage condition expressions, dependency status and test results. The crucial distinction is: Custom YAML conditions must retain required success prerequisites.

D:

Inspect supported OS/runtime targets, build matrix and test coverage. This would address a different situation, such as: A cross-platform CLI is built only on Windows and fails later when customers run it on Linux. In the present case, the most directly relevant evidence is: Review stage condition expressions, dependency status and test results. The crucial distinction is: Custom YAML conditions must retain required success prerequisites.

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