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 85

Question 840

An engineering design review identifies: An audit team cannot associate production features with reviewed pull requests after squash merging because release metadata records only original feature SHAs. Which shortcut should the team MOST specifically avoid for this case?

  1. Assume production is safe because only the default branch is protected.
  2. Make force push the default method for updating every shared release branch.
  3. Remove all branch protections to eliminate merge conflicts.
  4. Assume original feature branch SHA always equals the squash commit SHA.

Explanation

Correct Answer

D:

Assume original feature branch SHA always equals the squash commit SHA. This shortcut directly undermines the stated control or workflow. A safer action is: Record the final mainline commit and linked PR/work item in deployment provenance. Explanation: Traceability after squash merges needs durable pull request and resulting commit identifiers.

Incorrect Answers

A:

Assume production is safe because only the default branch is protected. 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 unsafe shortcut is: Assume original feature branch SHA always equals the squash commit SHA. The crucial distinction is: Traceability after squash merges needs durable pull request and resulting commit identifiers.

B:

Make force push the default method for updating every shared release branch. 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 unsafe shortcut is: Assume original feature branch SHA always equals the squash commit SHA. The crucial distinction is: Traceability after squash merges needs durable pull request and resulting commit identifiers.

C:

Remove all branch protections to eliminate merge conflicts. This would address a different situation, such as: An organization merges changes only at the end of a six-week release branch, creating hundreds of conflicts. In the present case, the most directly relevant unsafe shortcut is: Assume original feature branch SHA always equals the squash commit SHA. The crucial distinction is: Traceability after squash merges needs durable pull request and resulting commit identifiers.

Question 841

A Microsoft DevOps team is addressing: A large build spends most of its time serially running three independent test suites. Which TWO complementary actions should be taken? Select TWO answers.

  1. Inspect stage timeline, dependsOn graph, runner slots and data dependencies.
  2. Implement safe workspace cleanup and monitored cache eviction consistent with rollback needs.
  3. Run independent tests in parallel within the approved concurrency and resource budget.
  4. Protect recent deployed digests and remove only eligible unreferenced artifacts.
  5. Inspect retry counts, per-test historical failure rates, queue and execution time.

Explanation

Correct Answers

A:

Inspect stage timeline, dependsOn graph, runner slots and data dependencies. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Run independent tests in parallel within the approved concurrency and resource budget. Together they address: Pipeline job dependencies should parallelize independent work when capacity permits.

C:

Run independent tests in parallel within the approved concurrency and resource budget. This supplies the controlled implementation needed for the scenario. Its complementary step is: Inspect stage timeline, dependsOn graph, runner slots and data dependencies. Together they address: Pipeline job dependencies should parallelize independent work when capacity permits.

Incorrect Answers

B:

Implement safe workspace cleanup and monitored cache eviction consistent with rollback needs. This concerns a different DevOps situation: A self-hosted agent fails after months because workspace and Docker layer caches exhaust disk space. This case instead requires both a targeted investigation (Inspect stage timeline, dependsOn graph, runner slots and data dependencies.) and a controlled change (Run independent tests in parallel within the approved concurrency and resource budget.).

D:

Protect recent deployed digests and remove only eligible unreferenced artifacts. This concerns a different DevOps situation: A cost-reduction retention rule deletes the last known-good container image before the rollback period ends. This case instead requires both a targeted investigation (Inspect stage timeline, dependsOn graph, runner slots and data dependencies.) and a controlled change (Run independent tests in parallel within the approved concurrency and resource budget.).

E:

Inspect retry counts, per-test historical failure rates, queue and execution time. 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 stage timeline, dependsOn graph, runner slots and data dependencies.) and a controlled change (Run independent tests in parallel within the approved concurrency and resource budget.).

Question 842

An Azure DevOps engineering team evaluates this condition: Verbose diagnostic logging starts printing deployment tokens after a new task version update. Which DevOps principle BEST explains the underlying weakness?

  1. Cache keys must include dependency inputs so old artifacts cannot silently corrupt builds.
  2. Pipeline monitoring must detect credential disclosure while retaining useful logs.
  3. Capacity changes should be justified by measured critical-path improvements and cost.
  4. Retention policy should cover compliance evidence, release logs and artifact lifecycle.

Explanation

Correct Answer

B:

Pipeline monitoring must detect credential disclosure while retaining useful logs. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Inspect output variables, task logs, masking controls and newly added debug flags. An appropriate controlled response is: Remove token emission and enforce safe logging with secret scanning of pipeline output.

Incorrect Answers

A:

Cache keys must include dependency inputs so old artifacts cannot silently corrupt builds. This would address a different situation, such as: A pipeline caches packages under one global key even after lockfile changes, causing inconsistent builds. In the present case, the most directly relevant principle is: Pipeline monitoring must detect credential disclosure while retaining useful logs. The crucial distinction is: Pipeline monitoring must detect credential disclosure while retaining useful logs.

C:

Capacity changes should be justified by measured critical-path improvements and cost. This would address a different situation, such as: A pipeline team wants 50 more hosted agent slots even though bottlenecks are serial manual approvals and limited integration environments. In the present case, the most directly relevant principle is: Pipeline monitoring must detect credential disclosure while retaining useful logs. The crucial distinction is: Pipeline monitoring must detect credential disclosure while retaining useful logs.

D:

Retention policy should cover compliance evidence, release logs and artifact lifecycle. 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 principle is: Pipeline monitoring must detect credential disclosure while retaining useful logs. The crucial distinction is: Pipeline monitoring must detect credential disclosure while retaining useful logs.

Question 843

Before changing the pipeline or service, engineers find: A GitHub Actions workflow receives 403 when installing a private package owned by another organization repository. Which evidence should the engineer inspect FIRST?

  1. Inspect ACR manifests, tag mutation rights, deployment records and source mapping.
  2. Inspect feed role assignments, delete permissions, package history and retention.
  3. Inspect build timestamps, package versions, artifact digests and update metadata.
  4. Inspect package visibility, repository grant, GITHUB_TOKEN permissions and workflow context.

Explanation

Correct Answer

D:

Inspect package visibility, repository grant, GITHUB_TOKEN permissions and workflow context. This directly checks the uncertain behavior or control before changing production. Private package access requires scoped workflow identity and authorized repository permissions. The resulting targeted action is: Authorize the consuming repository and assign minimum packages:read access.

Incorrect Answers

A:

Inspect ACR manifests, tag mutation rights, deployment records and source mapping. This would address a different situation, such as: A team overwrites the same image tag in Azure Container Registry for every build and loses reproducible deployment history. In the present case, the most directly relevant evidence is: Inspect package visibility, repository grant, GITHUB_TOKEN permissions and workflow context. The crucial distinction is: Private package access requires scoped workflow identity and authorized repository permissions.

B:

Inspect feed role assignments, delete permissions, package history and retention. This would address a different situation, such as: Every developer can delete the versions of a private production library that other teams depend on. In the present case, the most directly relevant evidence is: Inspect package visibility, repository grant, GITHUB_TOKEN permissions and workflow context. The crucial distinction is: Private package access requires scoped workflow identity and authorized repository permissions.

C:

Inspect build timestamps, package versions, artifact digests and update metadata. This would address a different situation, such as: An organization uses calendar-versioned nightly internal tools but deployments cannot distinguish two builds made on the same day. In the present case, the most directly relevant evidence is: Inspect package visibility, repository grant, GITHUB_TOKEN permissions and workflow context. The crucial distinction is: Private package access requires scoped workflow identity and authorized repository permissions.

Question 844

An Azure DevOps engineering team evaluates this condition: A YAML pipeline references a production environment but deploys through an unprotected job that never uses the environment resource. Which DevOps principle BEST explains the underlying weakness?

  1. Custom YAML conditions must retain required success prerequisites.
  2. Matrix job strategies can validate supported platforms from one pipeline definition.
  3. Environment approvals apply only when pipelines use the protected deployment resource correctly.
  4. Workload identity federation reduces dependence on persistent credentials for Azure deployment.

Explanation

Correct Answer

C:

Environment approvals apply only when pipelines use the protected deployment resource correctly. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Inspect deployment jobs, environment references, resource checks and service connection access. An appropriate controlled response is: Use a deployment job bound to the protected environment and enforce resource checks.

Incorrect Answers

A:

Custom YAML conditions must retain required success prerequisites. 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 principle is: Environment approvals apply only when pipelines use the protected deployment resource correctly. The crucial distinction is: Environment approvals apply only when pipelines use the protected deployment resource correctly.

B:

Matrix job strategies can validate supported platforms from one pipeline definition. 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 principle is: Environment approvals apply only when pipelines use the protected deployment resource correctly. The crucial distinction is: Environment approvals apply only when pipelines use the protected deployment resource correctly.

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: Environment approvals apply only when pipelines use the protected deployment resource correctly. The crucial distinction is: Environment approvals apply only when pipelines use the protected deployment resource correctly.

Question 845

After implementing the change, the team verifies: A protected mainline accepts pull requests before a required unit test suite finishes, causing broken packages. Which result would BEST demonstrate that the issue is corrected?

  1. A deliberately failing unit test prevents the pull request from merging.
  2. A failing assertion fails the job and displays its exact test case.
  3. A deliberately inverted comparison causes a relevant test to fail.
  4. Both app versions write correctly during transition and a rollback stays feasible.

Explanation

Correct Answer

A:

A deliberately failing unit test prevents the pull request from merging. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Require verified unit test checks as part of protected pull request policy. Unit test gates should complete successfully against the proposed change before merge.

Incorrect Answers

B:

A failing assertion fails the job and displays its exact test case. This would address a different situation, such as: A pipeline script prints a test failure but exits with zero, leaving no test results visible in Azure Pipelines. In the present case, the most directly relevant verification is: A deliberately failing unit test prevents the pull request from merging. The crucial distinction is: Unit test gates should complete successfully against the proposed change before merge.

C:

A deliberately inverted comparison causes a relevant test to fail. 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 verification is: A deliberately failing unit test prevents the pull request from merging. The crucial distinction is: Unit test gates should complete successfully against the proposed change before merge.

D:

Both app versions write correctly during transition and a rollback stays feasible. 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 verification is: A deliberately failing unit test prevents the pull request from merging. The crucial distinction is: Unit test gates should complete successfully against the proposed change before merge.

Question 846

The DevOps team must resolve this situation: A Log Analytics workspace stores application exceptions, but engineers cannot identify which deployment revision triggered a spike. Which engineering action is MOST appropriate?

  1. Adjust sampling and critical-event retention within approved performance and cost limits.
  2. Use a Kusto summarize query grouped by deployment version and appropriate time bins.
  3. Create a missing-heartbeat query or alert with appropriate response ownership.
  4. Build KQL queries with identity dimensions and appropriate anomaly thresholds.

Explanation

Correct Answer

B:

Use a Kusto summarize query grouped by deployment version and appropriate time bins. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: A test bad revision appears as a distinct error-rate group in the query. KQL grouping by revision and time can separate release regressions from background failures.

Incorrect Answers

A:

Adjust sampling and critical-event retention within approved performance and cost limits. This would address a different situation, such as: A low-volume payment failure disappears from diagnostic traces because sampling drops all relevant requests. In the present case, the most directly relevant engineering action is: Use a Kusto summarize query grouped by deployment version and appropriate time bins. The crucial distinction is: KQL grouping by revision and time can separate release regressions from background failures.

C:

Create a missing-heartbeat query or alert with appropriate response ownership. This would address a different situation, such as: A VM's monitoring dashboard reports no errors because its telemetry agent stopped sending data three days ago. In the present case, the most directly relevant engineering action is: Use a Kusto summarize query grouped by deployment version and appropriate time bins. The crucial distinction is: KQL grouping by revision and time can separate release regressions from background failures.

D:

Build KQL queries with identity dimensions and appropriate anomaly thresholds. This would address a different situation, such as: Azure resource logs show unusual production service principal sign-ins, but a dashboard aggregates all identities together. In the present case, the most directly relevant engineering action is: Use a Kusto summarize query grouped by deployment version and appropriate time bins. The crucial distinction is: KQL grouping by revision and time can separate release regressions from background failures.

Question 847

A Microsoft DevOps team is addressing: A deployment pipeline uses complete mode unintentionally and deletes resources omitted from an updated ARM template. Which TWO complementary actions should be taken? Select TWO answers.

  1. Inspect template deployment mode, resource group contents, what-if output and retention requirements.
  2. Use a safe scoped deployment strategy with reviewed change previews and deletion protections.
  3. Publish approved reusable templates with governed versioning and service-specific parameters.
  4. Inspect template inputs, source history, Key Vault access and deployment output.
  5. Inspect policy assignment parameters, effect, scope and compliance states.

Explanation

Correct Answers

A:

Inspect template deployment mode, resource group contents, what-if output and retention requirements. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Use a safe scoped deployment strategy with reviewed change previews and deletion protections. Together they address: Deployment mode and scope determine whether absent resources may be removed.

B:

Use a safe scoped deployment strategy with reviewed change previews and deletion protections. This supplies the controlled implementation needed for the scenario. Its complementary step is: Inspect template deployment mode, resource group contents, what-if output and retention requirements. Together they address: Deployment mode and scope determine whether absent resources may be removed.

Incorrect Answers

C:

Publish approved reusable templates with governed versioning and service-specific parameters. This concerns a different DevOps situation: Each team's pipeline provisions Azure Container Apps independently, with inconsistent health probes and identity. This case instead requires both a targeted investigation (Inspect template deployment mode, resource group contents, what-if output and retention requirements.) and a controlled change (Use a safe scoped deployment strategy with reviewed change previews and deletion protections.).

D:

Inspect template inputs, source history, Key Vault access and deployment output. This concerns a different DevOps situation: A Bicep parameter file stores database administrator passwords in plaintext committed to Git. This case instead requires both a targeted investigation (Inspect template deployment mode, resource group contents, what-if output and retention requirements.) and a controlled change (Use a safe scoped deployment strategy with reviewed change previews and deletion protections.).

E:

Inspect policy assignment parameters, effect, scope and compliance states. This concerns a different DevOps situation: A platform team thinks an Azure Policy Audit effect blocks deployment of unencrypted storage, but noncompliant accounts continue being created. This case instead requires both a targeted investigation (Inspect template deployment mode, resource group contents, what-if output and retention requirements.) and a controlled change (Use a safe scoped deployment strategy with reviewed change previews and deletion protections.).

Question 848

After implementing the change, the team verifies: A dependency update workflow proposes a new package version but its artifact origin is not recorded, weakening supply-chain review. Which result would BEST demonstrate that the issue is corrected?

  1. A package from an unapproved registry fails the review despite passing unit tests.
  2. A known critical test image is blocked while a remediated digest deploys.
  3. A malicious PR cannot bypass mandatory secret scanning by editing workflow YAML.
  4. A deliberate injection-pattern test creates a security finding before merge.

Explanation

Correct Answer

A:

A package from an unapproved registry fails the review despite passing unit tests. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Require reviewed package source, SBOM and policy gates before accepting dependency updates. Automated security/compliance scanning should retain dependency provenance and approved package sources.

Incorrect Answers

B:

A known critical test image is blocked while a remediated digest deploys. This would address a different situation, such as: An ACR pipeline pushes vulnerable base images and deploys without considering scan results. In the present case, the most directly relevant verification is: A package from an unapproved registry fails the review despite passing unit tests. The crucial distinction is: Automated security/compliance scanning should retain dependency provenance and approved package sources.

C:

A malicious PR cannot bypass mandatory secret scanning by editing workflow YAML. This would address a different situation, such as: An untrusted pull request can modify the secret-scanning workflow and disable scanning in its own run. In the present case, the most directly relevant verification is: A package from an unapproved registry fails the review despite passing unit tests. The crucial distinction is: Automated security/compliance scanning should retain dependency provenance and approved package sources.

D:

A deliberate injection-pattern test creates a security finding before merge. This would address a different situation, such as: A C# API has risky SQL construction patterns, but pipeline checks only verify compilation. In the present case, the most directly relevant verification is: A package from an unapproved registry fails the review despite passing unit tests. The crucial distinction is: Automated security/compliance scanning should retain dependency provenance and approved package sources.

Question 849

After implementing the change, the team verifies: A C# API has risky SQL construction patterns, but pipeline checks only verify compilation. Which result would BEST demonstrate that the issue is corrected?

  1. A policy-incompatible dependency prevents publication until disposition.
  2. A simulated vulnerable dependency is flagged and its patched upgrade passes validation.
  3. A harmless test token pattern triggers the expected prevention or review workflow.
  4. A deliberate injection-pattern test creates a security finding before merge.

Explanation

Correct Answer

D:

A deliberate injection-pattern test creates a security finding before merge. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Configure approved CodeQL analysis and risk-based remediation gates. Code scanning should detect relevant source vulnerabilities before release.

Incorrect Answers

A:

A policy-incompatible dependency prevents publication until disposition. 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 verification is: A deliberate injection-pattern test creates a security finding before merge. The crucial distinction is: Code scanning should detect relevant source vulnerabilities before release.

B:

A simulated vulnerable dependency is flagged and its patched upgrade passes validation. 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 verification is: A deliberate injection-pattern test creates a security finding before merge. The crucial distinction is: Code scanning should detect relevant source vulnerabilities before release.

C:

A harmless test token pattern triggers the expected prevention or review workflow. This would address a different situation, such as: A developer accidentally commits a cloud token, but the repository has no automated alerting on leaked credentials. In the present case, the most directly relevant verification is: A deliberate injection-pattern test creates a security finding before merge. The crucial distinction is: Code scanning should detect relevant source vulnerabilities before release.

Question 850

A Microsoft DevOps team is addressing: A release adds a non-null column while old and new application versions temporarily operate together. Which TWO complementary actions should be taken? Select TWO answers.

  1. Install or select the approved SDK version in the pipeline before test execution.
  2. Improve boundary-value assertions and use mutation or targeted fault tests as appropriate.
  3. Inspect schema migration scripts, live app versions, default values and rollback plans.
  4. Test expand-and-contract schema changes against concurrent old and new application instances.
  5. Review process exit codes, PublishTestResults task settings and test XML files.

Explanation

Correct Answers

C:

Inspect schema migration scripts, live app versions, default values and rollback plans. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Test expand-and-contract schema changes against concurrent old and new application instances. Together they address: Database deployment tests should validate backward compatibility throughout rollout.

D:

Test expand-and-contract schema changes against concurrent old and new application instances. This supplies the controlled implementation needed for the scenario. Its complementary step is: Inspect schema migration scripts, live app versions, default values and rollback plans. Together they address: Database deployment tests should validate backward compatibility throughout rollout.

Incorrect Answers

A:

Install or select the approved SDK version in the pipeline before test execution. This concerns a different DevOps situation: An Azure Pipeline fails only on hosted agents because tests require an uninstalled legacy.NET SDK. This case instead requires both a targeted investigation (Inspect schema migration scripts, live app versions, default values and rollback plans.) and a controlled change (Test expand-and-contract schema changes against concurrent old and new application instances.).

B:

Improve boundary-value assertions and use mutation or targeted fault tests as appropriate. This concerns a different DevOps situation: A business rule has 100% line coverage, but tests still pass when its comparison operator is reversed. This case instead requires both a targeted investigation (Inspect schema migration scripts, live app versions, default values and rollback plans.) and a controlled change (Test expand-and-contract schema changes against concurrent old and new application instances.).

E:

Review process exit codes, PublishTestResults task settings and test XML files. This concerns a different DevOps situation: A pipeline script prints a test failure but exits with zero, leaving no test results visible in Azure Pipelines. This case instead requires both a targeted investigation (Inspect schema migration scripts, live app versions, default values and rollback plans.) and a controlled change (Test expand-and-contract schema changes against concurrent old and new application instances.).

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