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 94

Question 930

The DevOps team must resolve this situation: A production release references an unversioned shared secret and breaks when a different team rotates it mid-deployment. Which engineering action is MOST appropriate?

  1. Use a controlled migration framework with version tracking and idempotent safeguards.
  2. Use governed secret reference/rotation patterns with staged compatibility testing.
  3. Retain a protected previous release and automate monitored rollback upon failure.
  4. Pin the approved image digest in deployment configuration and retain rollback versions.

Explanation

Correct Answer

B:

Use governed secret reference/rotation patterns with staged compatibility testing. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: A rotation rehearsal preserves authorization and active service availability. Secret deployment should coordinate version lifecycle and client refresh behavior.

Incorrect Answers

A:

Use a controlled migration framework with version tracking and idempotent safeguards. This would address a different situation, such as: A release database task retries after a timeout and creates duplicate schema objects, causing subsequent deployments to fail. In the present case, the most directly relevant engineering action is: Use governed secret reference/rotation patterns with staged compatibility testing. The crucial distinction is: Secret deployment should coordinate version lifecycle and client refresh behavior.

C:

Retain a protected previous release and automate monitored rollback upon failure. This would address a different situation, such as: A release detects elevated errors but cannot roll back because the prior verified package was deleted. In the present case, the most directly relevant engineering action is: Use governed secret reference/rotation patterns with staged compatibility testing. The crucial distinction is: Secret deployment should coordinate version lifecycle and client refresh behavior.

D:

Pin the approved image digest in deployment configuration and retain rollback versions. This would address a different situation, such as: A release manifest references an ACR latest tag that was replaced after QA approval. In the present case, the most directly relevant engineering action is: Use governed secret reference/rotation patterns with staged compatibility testing. The crucial distinction is: Secret deployment should coordinate version lifecycle and client refresh behavior.

Question 931

The DevOps team must resolve this situation: A nightly integration suite fails intermittently because test data is shared between parallel jobs. Which engineering action is MOST appropriate?

  1. Add guarded end-to-end UI tests for checkout and payment confirmation.
  2. Use a dedicated test subscription or resource group with restricted identity permissions.
  3. Give parallel tests isolated data and synchronize genuine shared dependencies.
  4. Improve boundary-value assertions and use mutation or targeted fault tests as appropriate.

Explanation

Correct Answer

C:

Give parallel tests isolated data and synchronize genuine shared dependencies. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: Repeated runs produce stable results without masking functional failures. Reliable tests need deterministic data isolation and controlled concurrency.

Incorrect Answers

A:

Add guarded end-to-end UI tests for checkout and payment confirmation. This would address a different situation, such as: A payment workflow completes an HTTP health check but fails after users submit the checkout form. In the present case, the most directly relevant engineering action is: Give parallel tests isolated data and synchronize genuine shared dependencies. The crucial distinction is: Reliable tests need deterministic data isolation and controlled concurrency.

B:

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: Give parallel tests isolated data and synchronize genuine shared dependencies. The crucial distinction is: Reliable tests need deterministic data isolation and controlled concurrency.

D:

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: Give parallel tests isolated data and synchronize genuine shared dependencies. The crucial distinction is: Reliable tests need deterministic data isolation and controlled concurrency.

Question 932

An Azure DevOps engineering team evaluates this condition: An Azure CLI task runs with set -x and echoes bearer tokens in the pipeline console log. Which DevOps principle BEST explains the underlying weakness?

  1. Secret rotation must coordinate client update, version retention and recovery.
  2. Pipeline secrets should be retrieved from controlled stores and kept out of source and logs.
  3. Sensitive binary signing files need protected storage and controlled access.
  4. Secretless authentication still requires careful handling of temporary token output.

Explanation

Correct Answer

D:

Secretless authentication still requires careful handling of temporary token output. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Inspect bash debug flags, Azure CLI output, log retention and secret masking. An appropriate controlled response is: Remove token-printing diagnostics and use restricted command output and log scanning.

Incorrect Answers

A:

Secret rotation must coordinate client update, version retention and recovery. This would address a different situation, such as: An application release references a database secret version that was deleted during automatic rotation, causing downtime. In the present case, the most directly relevant principle is: Secretless authentication still requires careful handling of temporary token output. The crucial distinction is: Secretless authentication still requires careful handling of temporary token output.

B:

Pipeline secrets should be retrieved from controlled stores and kept out of source and logs. 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 principle is: Secretless authentication still requires careful handling of temporary token output. The crucial distinction is: Secretless authentication still requires careful handling of temporary token output.

C:

Sensitive binary signing files need protected storage and controlled access. 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 principle is: Secretless authentication still requires careful handling of temporary token output. The crucial distinction is: Secretless authentication still requires careful handling of temporary token output.

Question 933

The DevOps team must resolve this situation: A critical production fix is committed to an old release branch and never reaches the mainline, so the bug returns next month. Which engineering action is MOST appropriate?

  1. Require reviewed back-merges or cherry-picks of hotfixes into active branches.
  2. Apply equivalent required reviews and test gates to all protected release branches.
  3. Restrict force pushes on shared branches and use approved non-destructive integration.
  4. Use fork-and-pull-request contributions with least-privilege branch access.

Explanation

Correct Answer

A:

Require reviewed back-merges or cherry-picks of hotfixes into active branches. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: The corrected test fails before and passes after the fix on both maintained lines. Hotfix processes must propagate tested corrections to every maintained affected line.

Incorrect Answers

B:

Apply equivalent required reviews and test gates to all protected release branches. This would address a different situation, such as: A company protects main but permits unrestricted direct commits to an unprotected release branch deployed to production. In the present case, the most directly relevant engineering action is: Require reviewed back-merges or cherry-picks of hotfixes into active branches. The crucial distinction is: Hotfix processes must propagate tested corrections to every maintained affected line.

C:

Restrict force pushes on shared branches and use approved non-destructive integration. This would address a different situation, such as: A maintainer rebases a shared release branch and force pushes, invalidating teammates' commit references. In the present case, the most directly relevant engineering action is: Require reviewed back-merges or cherry-picks of hotfixes into active branches. The crucial distinction is: Hotfix processes must propagate tested corrections to every maintained affected line.

D:

Use fork-and-pull-request contributions with least-privilege branch access. This would address a different situation, such as: External contributors can directly edit protected organization branches rather than submitting reviewed fork-based changes. In the present case, the most directly relevant engineering action is: Require reviewed back-merges or cherry-picks of hotfixes into active branches. The crucial distinction is: Hotfix processes must propagate tested corrections to every maintained affected line.

Question 934

A Microsoft DevOps team is addressing: Customer-reported bugs arrive in chat messages and are never consistently recorded for the development team. Which TWO complementary actions should be taken? Select TWO answers.

  1. Compare support messages, GitHub Issues labels, assignees and issue closure history.
  2. Review workflow run identities, issue references, failure events and notification rules.
  3. Inspect Azure Boards development links, commit conventions and pipeline release metadata.
  4. Use a structured GitHub Issues intake process with ownership, labels and linked fixes.
  5. Relate production bugs to failing or missing tests and preventive backlog work.

Explanation

Correct Answers

A:

Compare support messages, GitHub Issues labels, assignees and issue closure history. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Use a structured GitHub Issues intake process with ownership, labels and linked fixes. Together they address: Feedback must enter an owned trackable workflow with prioritization and resolution evidence.

D:

Use a structured GitHub Issues intake process with ownership, labels and linked fixes. This supplies the controlled implementation needed for the scenario. Its complementary step is: Compare support messages, GitHub Issues labels, assignees and issue closure history. Together they address: Feedback must enter an owned trackable workflow with prioritization and resolution evidence.

Incorrect Answers

B:

Review workflow run identities, issue references, failure events and notification rules. This concerns a different DevOps situation: A deployment job fails but the failure is not associated with the GitHub issue that requested the release. This case instead requires both a targeted investigation (Compare support messages, GitHub Issues labels, assignees and issue closure history.) and a controlled change (Use a structured GitHub Issues intake process with ownership, labels and linked fixes.).

C:

Inspect Azure Boards development links, commit conventions and pipeline release metadata. This concerns a different DevOps situation: Azure Boards shows completed user stories, but there is no way to identify the commits and deployments delivering each story. This case instead requires both a targeted investigation (Compare support messages, GitHub Issues labels, assignees and issue closure history.) and a controlled change (Use a structured GitHub Issues intake process with ownership, labels and linked fixes.).

E:

Relate production bugs to failing or missing tests and preventive backlog work. This concerns a different DevOps situation: Several production defects were fixed, but QA cannot determine which automated test gaps allowed them to escape. This case instead requires both a targeted investigation (Compare support messages, GitHub Issues labels, assignees and issue closure history.) and a controlled change (Use a structured GitHub Issues intake process with ownership, labels and linked fixes.).

Question 935

Before changing the pipeline or service, engineers find: A package feed cannot install vetted public dependencies during a disconnected corporate build unless developers manually copy files. Which evidence should the engineer inspect FIRST?

  1. Inspect package-lock metadata, dependency tree, registry provenance and update policy.
  2. Review feed upstream configuration, package authorization and cached dependency versions.
  3. Inspect public API diffs, release notes, versioning rules and downstream tests.
  4. Compare project version ranges, lockfiles, feed updates and restore output.

Explanation

Correct Answer

B:

Review feed upstream configuration, package authorization and cached dependency versions. This directly checks the uncertain behavior or control before changing production. Upstream sources can cache approved public dependencies through controlled feeds. The resulting targeted action is: Configure an approved upstream source and appropriate package permissions in Azure Artifacts.

Incorrect Answers

A:

Inspect package-lock metadata, dependency tree, registry provenance and update policy. This would address a different situation, such as: A Node application pins a top-level package but a transitive dependency introduces an unreviewed major behavior change. In the present case, the most directly relevant evidence is: Review feed upstream configuration, package authorization and cached dependency versions. The crucial distinction is: Upstream sources can cache approved public dependencies through controlled feeds.

C:

Inspect public API diffs, release notes, versioning rules and downstream tests. This would address a different situation, such as: An internal SDK removes a public method yet publishes the next build as a patch release, breaking consumers. In the present case, the most directly relevant evidence is: Review feed upstream configuration, package authorization and cached dependency versions. The crucial distinction is: Upstream sources can cache approved public dependencies through controlled feeds.

D:

Compare project version ranges, lockfiles, feed updates and restore output. This would address a different situation, such as: The same Git commit restores different NuGet package versions one week apart and intermittently fails tests. In the present case, the most directly relevant evidence is: Review feed upstream configuration, package authorization and cached dependency versions. The crucial distinction is: Upstream sources can cache approved public dependencies through controlled feeds.

Question 936

After implementing the change, the team verifies: A build must reach private package infrastructure inaccessible from Microsoft-hosted agents. Which result would BEST demonstrate that the issue is corrected?

  1. A failed package stage prevents promotion and no missing-artifact deployment begins.
  2. A deliberately Linux-only failure is detected before package publication.
  3. A failed test stage prevents the dependent production verification and deployment.
  4. A job restores the private dependency while agent access remains restricted.

Explanation

Correct Answer

D:

A job restores the private dependency while agent access remains restricted. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Deploy a governed self-hosted Azure Pipelines agent with controlled network connectivity. Agent placement should satisfy network access and security constraints without overprivilege.

Incorrect Answers

A:

A failed package stage prevents promotion and no missing-artifact deployment begins. This would address a different situation, such as: A deployment stage starts before the packaging stage publishes an artifact because stages are configured independently. In the present case, the most directly relevant verification is: A job restores the private dependency while agent access remains restricted. The crucial distinction is: Agent placement should satisfy network access and security constraints without overprivilege.

B:

A deliberately Linux-only failure is detected before package publication. 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 verification is: A job restores the private dependency while agent access remains restricted. The crucial distinction is: Agent placement should satisfy network access and security constraints without overprivilege.

C:

A failed test stage prevents the dependent production verification and deployment. This would address a different situation, such as: A post-deployment verification job runs even when staging tests fail because its condition overrides the default dependency check. In the present case, the most directly relevant verification is: A job restores the private dependency while agent access remains restricted. The crucial distinction is: Agent placement should satisfy network access and security constraints without overprivilege.

Question 937

The DevOps team must resolve this situation: A mobile signing certificate is embedded as Base64 directly in a public pipeline YAML file. Which engineering action is MOST appropriate?

  1. Use an authorized Azure Key Vault-backed secret reference with protected variable handling.
  2. Move cloud credential issuance into the guarded deployment job with scoped federation.
  3. Store approved signing material as an Azure Pipelines secure file with restricted authorization.
  4. Remove token-printing diagnostics and use restricted command output and log scanning.

Explanation

Correct Answer

C:

Store approved signing material as an Azure Pipelines secure file with restricted authorization. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: Only an approved signing job downloads the file and output contains no key material. Sensitive binary signing files need protected storage and controlled access.

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: Store approved signing material as an Azure Pipelines secure file with restricted authorization. The crucial distinction is: Sensitive binary signing files need protected storage and controlled access.

B:

Move cloud credential issuance into the guarded deployment job with scoped federation. This would address a different situation, such as: A GitHub environment is protected, but the deployment job obtains Azure credentials in an earlier unprotected build step. In the present case, the most directly relevant engineering action is: Store approved signing material as an Azure Pipelines secure file with restricted authorization. The crucial distinction is: Sensitive binary signing files need protected storage and controlled access.

D:

Remove token-printing diagnostics and use restricted command output and log scanning. 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 engineering action is: Store approved signing material as an Azure Pipelines secure file with restricted authorization. The crucial distinction is: Sensitive binary signing files need protected storage and controlled access.

Question 938

A Microsoft DevOps team is addressing: A team reports excellent developer experience based only on responses from its three most active maintainers. Which TWO complementary actions should be taken? Select TWO answers.

  1. Gather representative developer feedback and combine it with observed flow telemetry.
  2. Inspect survey population, response rates, roles and unanswered groups.
  3. Review service classifications, deployment events, reliability targets and cohort selection.
  4. Publish excluded and flaky test counts with test trends and actionable owner assignments.
  5. Compare queue timestamps, job timings, capacity saturation and approval intervals.

Explanation

Correct Answers

A:

Gather representative developer feedback and combine it with observed flow telemetry. This supplies the controlled implementation needed for the scenario. Its complementary step is: Inspect survey population, response rates, roles and unanswered groups. Together they address: Process metrics should disclose sampling limitations and actionable qualitative context.

B:

Inspect survey population, response rates, roles and unanswered groups. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Gather representative developer feedback and combine it with observed flow telemetry. Together they address: Process metrics should disclose sampling limitations and actionable qualitative context.

Incorrect Answers

C:

Review service classifications, deployment events, reliability targets and cohort selection. 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 (Inspect survey population, response rates, roles and unanswered groups.) and a controlled change (Gather representative developer feedback and combine it with observed flow telemetry.).

D:

Publish excluded and flaky test counts with test trends and actionable owner assignments. This concerns a different DevOps situation: A build dashboard reports 100% passing tests by excluding quarantined integration suites without disclosing the exclusions. This case instead requires both a targeted investigation (Inspect survey population, response rates, roles and unanswered groups.) and a controlled change (Gather representative developer feedback and combine it with observed flow telemetry.).

E:

Compare queue timestamps, job timings, capacity saturation and approval intervals. This concerns a different DevOps situation: A pipeline takes 50 minutes, but dashboard owners cannot distinguish runner queue delays from actual build execution. This case instead requires both a targeted investigation (Inspect survey population, response rates, roles and unanswered groups.) and a controlled change (Gather representative developer feedback and combine it with observed flow telemetry.).

Question 939

The DevOps team must resolve this situation: Builds fail after an Azure Pipelines hosted image update because a legacy runtime was implicitly available before. Which engineering action is MOST appropriate?

  1. Pin or explicitly install supported toolchains and test migrations before image retirement.
  2. Remove token emission and enforce safe logging with secret scanning of pipeline output.
  3. Report approval wait separately and optimize only the relevant bottleneck.
  4. Configure differentiated retention for required pipelines and audit artifacts.

Explanation

Correct Answer

A:

Pin or explicitly install supported toolchains and test migrations before image retirement. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: A clean replacement hosted image reproduces the expected build. Pipelines should declare supported tooling instead of depending on incidental agent image contents.

Incorrect Answers

B:

Remove token emission and enforce safe logging with secret scanning of pipeline output. This would address a different situation, such as: Verbose diagnostic logging starts printing deployment tokens after a new task version update. In the present case, the most directly relevant engineering action is: Pin or explicitly install supported toolchains and test migrations before image retirement. The crucial distinction is: Pipelines should declare supported tooling instead of depending on incidental agent image contents.

C:

Report approval wait separately and optimize only the relevant bottleneck. 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 engineering action is: Pin or explicitly install supported toolchains and test migrations before image retirement. The crucial distinction is: Pipelines should declare supported tooling instead of depending on incidental agent image contents.

D:

Configure differentiated retention for required pipelines and audit artifacts. This would address a different situation, such as: An organization deletes pipeline logs within a day even though deployment approvals must be auditable for a year. In the present case, the most directly relevant engineering action is: Pin or explicitly install supported toolchains and test migrations before image retirement. The crucial distinction is: Pipelines should declare supported tooling instead of depending on incidental agent image contents.

Question 940

A Microsoft DevOps team is addressing: A production VM experiences OOM kills while CPU remains normal and default platform graphs show no guest memory usage. Which TWO complementary actions should be taken? Select TWO answers.

  1. Inspect Azure Monitor Agent, VM insights settings, counters and related crash logs.
  2. Enable an approved connection monitor for the critical private network path.
  3. Configure supported VM Insights or guest-memory collection and meaningful alerts.
  4. Configure monitored failure notifications and an actionable operations escalation path.
  5. Inspect Application Insights request/dependency telemetry, correlation IDs and trace configuration.

Explanation

Correct Answers

A:

Inspect Azure Monitor Agent, VM insights settings, counters and related crash logs. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Configure supported VM Insights or guest-memory collection and meaningful alerts. Together they address: Guest memory observability requires supported collection beyond basic host CPU metrics.

C:

Configure supported VM Insights or guest-memory collection and meaningful alerts. This supplies the controlled implementation needed for the scenario. Its complementary step is: Inspect Azure Monitor Agent, VM insights settings, counters and related crash logs. Together they address: Guest memory observability requires supported collection beyond basic host CPU metrics.

Incorrect Answers

B:

Enable an approved connection monitor for the critical private network path. This concerns a different DevOps situation: Intermittent API failures occur across a private network, but monitoring uses only application exception counts. This case instead requires both a targeted investigation (Inspect Azure Monitor Agent, VM insights settings, counters and related crash logs.) and a controlled change (Configure supported VM Insights or guest-memory collection and meaningful alerts.).

D:

Configure monitored failure notifications and an actionable operations escalation path. This concerns a different DevOps situation: Production pipeline deployments fail overnight, but engineers notice only when checking the Azure DevOps portal the next morning. This case instead requires both a targeted investigation (Inspect Azure Monitor Agent, VM insights settings, counters and related crash logs.) and a controlled change (Configure supported VM Insights or guest-memory collection and meaningful alerts.).

E:

Inspect Application Insights request/dependency telemetry, correlation IDs and trace configuration. This concerns a different DevOps situation: A shopping application logs HTTP failures but does not show which downstream payment call caused the response delay. This case instead requires both a targeted investigation (Inspect Azure Monitor Agent, VM insights settings, counters and related crash logs.) and a controlled change (Configure supported VM Insights or guest-memory collection and meaningful alerts.).

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