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 81

Question 800

Before changing the pipeline or service, engineers find: A Bicep deployment creates an application before the required Key Vault access is effective, causing startup failures. Which evidence should the engineer inspect FIRST?

  1. Review image digest provenance, deployment parameters and environment history.
  2. Inspect resource references, role assignments, provisioning order and propagation behavior.
  3. Inspect policy assignment parameters, effect, scope and compliance states.
  4. Inspect template inputs, source history, Key Vault access and deployment output.

Explanation

Correct Answer

B:

Inspect resource references, role assignments, provisioning order and propagation behavior. This directly checks the uncertain behavior or control before changing production. IaC dependency design must express when required resources and authorization are ready. The resulting targeted action is: Add explicit dependency and readiness checks where Azure role propagation needs validation.

Incorrect Answers

A:

Review image digest provenance, deployment parameters and environment history. This would address a different situation, such as: Application images are deployed manually after infra provisioning and the deployed image tag is not recorded in Bicep or the release pipeline. In the present case, the most directly relevant evidence is: Inspect resource references, role assignments, provisioning order and propagation behavior. The crucial distinction is: IaC dependency design must express when required resources and authorization are ready.

C:

Inspect policy assignment parameters, effect, scope and compliance states. This would address a different situation, such as: A platform team thinks an Azure Policy Audit effect blocks deployment of unencrypted storage, but noncompliant accounts continue being created. In the present case, the most directly relevant evidence is: Inspect resource references, role assignments, provisioning order and propagation behavior. The crucial distinction is: IaC dependency design must express when required resources and authorization are ready.

D:

Inspect template inputs, source history, Key Vault access and deployment output. This would address a different situation, such as: A Bicep parameter file stores database administrator passwords in plaintext committed to Git. In the present case, the most directly relevant evidence is: Inspect resource references, role assignments, provisioning order and propagation behavior. The crucial distinction is: IaC dependency design must express when required resources and authorization are ready.

Question 801

After implementing the change, the team verifies: A business rule has 100% line coverage, but tests still pass when its comparison operator is reversed. Which result would BEST demonstrate that the issue is corrected?

  1. A policy-blocking insecure test change cannot merge before security review.
  2. A fresh clean agent runs the same test suite with a reproducible toolchain.
  3. An intentionally vulnerable test image is blocked and an approved fixed image proceeds.
  4. A deliberately inverted comparison causes a relevant test to fail.

Explanation

Correct Answer

D:

A deliberately inverted comparison causes a relevant test to fail. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Improve boundary-value assertions and use mutation or targeted fault tests as appropriate. Coverage alone does not establish assertion quality or defect-detection strength.

Incorrect Answers

A:

A policy-blocking insecure test change cannot merge before security review. 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 verification is: A deliberately inverted comparison causes a relevant test to fail. The crucial distinction is: Coverage alone does not establish assertion quality or defect-detection strength.

B:

A fresh clean agent runs the same test suite with a reproducible toolchain. 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 verification is: A deliberately inverted comparison causes a relevant test to fail. The crucial distinction is: Coverage alone does not establish assertion quality or defect-detection strength.

C:

An intentionally vulnerable test image is blocked and an approved fixed image proceeds. This would address a different situation, such as: A container image with a known critical vulnerability passes all unit tests and is promoted to production. In the present case, the most directly relevant verification is: A deliberately inverted comparison causes a relevant test to fail. The crucial distinction is: Coverage alone does not establish assertion quality or defect-detection strength.

Question 802

A Microsoft DevOps team is addressing: An Azure Pipelines task group exposes a deployment secret as a plain variable and prints it during release. Which TWO complementary actions should be taken? Select TWO answers.

  1. Configure trusted GitHub OIDC federation and least-privilege Azure roles for the deployment.
  2. Inspect task group inputs, variable classifications, log output and service permissions.
  3. Deploy a governed self-hosted Azure Pipelines agent with controlled network connectivity.
  4. Use protected secret variables or Key Vault integration and suppress credential output.
  5. Emit a named output variable and consume it through the appropriate dependency expression.

Explanation

Correct Answers

B:

Inspect task group inputs, variable classifications, log output and service permissions. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Use protected secret variables or Key Vault integration and suppress credential output. Together they address: Reusable pipeline elements must preserve secret scoping and masking.

D:

Use protected secret variables or Key Vault integration and suppress credential output. This supplies the controlled implementation needed for the scenario. Its complementary step is: Inspect task group inputs, variable classifications, log output and service permissions. Together they address: Reusable pipeline elements must preserve secret scoping and masking.

Incorrect Answers

A:

Configure trusted GitHub OIDC federation and least-privilege Azure roles for the deployment. This concerns a different DevOps situation: A GitHub Actions release stores a long-lived Azure service principal password in repository secrets for every deployment. This case instead requires both a targeted investigation (Inspect task group inputs, variable classifications, log output and service permissions.) and a controlled change (Use protected secret variables or Key Vault integration and suppress credential output.).

C:

Deploy a governed self-hosted Azure Pipelines agent with controlled network connectivity. This concerns a different DevOps situation: A build must reach private package infrastructure inaccessible from Microsoft-hosted agents. This case instead requires both a targeted investigation (Inspect task group inputs, variable classifications, log output and service permissions.) and a controlled change (Use protected secret variables or Key Vault integration and suppress credential output.).

E:

Emit a named output variable and consume it through the appropriate dependency expression. This concerns a different DevOps situation: A downstream stage cannot determine the storage endpoint created by an infrastructure provisioning stage. This case instead requires both a targeted investigation (Inspect task group inputs, variable classifications, log output and service permissions.) and a controlled change (Use protected secret variables or Key Vault integration and suppress credential output.).

Question 803

The DevOps team must resolve this situation: A refactor changes a storage account name while the pipeline applies it directly to production. Which engineering action is MOST appropriate?

  1. Run governed drift detection and reconcile approved changes through IaC.
  2. Require reviewed what-if output and controlled data-preserving migration before deployment.
  3. Reference protected secrets via governed Key Vault/identity patterns without logging values.
  4. Provision short-lived sandbox environments through approved IaC with automatic expiration.

Explanation

Correct Answer

B:

Require reviewed what-if output and controlled data-preserving migration before deployment. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: A destructive replacement fails the gate unless explicitly approved with recovery arrangements. Stateful IaC replacements require impact review and a migration plan.

Incorrect Answers

A:

Run governed drift detection and reconcile approved changes through IaC. This would address a different situation, such as: Operators modify a production firewall directly, but the Terraform plan assumes its prior values remain in place. In the present case, the most directly relevant engineering action is: Require reviewed what-if output and controlled data-preserving migration before deployment. The crucial distinction is: Stateful IaC replacements require impact review and a migration plan.

C:

Reference protected secrets via governed Key Vault/identity patterns without logging values. This would address a different situation, such as: A Bicep parameter file stores database administrator passwords in plaintext committed to Git. In the present case, the most directly relevant engineering action is: Require reviewed what-if output and controlled data-preserving migration before deployment. The crucial distinction is: Stateful IaC replacements require impact review and a migration plan.

D:

Provision short-lived sandbox environments through approved IaC with automatic expiration. This would address a different situation, such as: Engineers create temporary load-test environments manually but never remove costly public IP addresses. In the present case, the most directly relevant engineering action is: Require reviewed what-if output and controlled data-preserving migration before deployment. The crucial distinction is: Stateful IaC replacements require impact review and a migration plan.

Question 804

After implementing the change, the team verifies: Hundreds of low-severity dependency alerts crowd out a critical exploitable issue in production. Which result would BEST demonstrate that the issue is corrected?

  1. A known critical test image is blocked while a remediated digest deploys.
  2. An exploitable high-risk finding is escalated despite a high volume of minor warnings.
  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

B:

An exploitable high-risk finding is escalated despite a high volume of minor warnings. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Use risk-based triage with owners, remediation SLAs and documented waivers. Security scanning should prioritize relevant risk and accountable remediation.

Incorrect Answers

A:

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: An exploitable high-risk finding is escalated despite a high volume of minor warnings. The crucial distinction is: Security scanning should prioritize relevant risk and accountable remediation.

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: An exploitable high-risk finding is escalated despite a high volume of minor warnings. The crucial distinction is: Security scanning should prioritize relevant risk and accountable remediation.

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: An exploitable high-risk finding is escalated despite a high volume of minor warnings. The crucial distinction is: Security scanning should prioritize relevant risk and accountable remediation.

Question 805

An Azure DevOps engineering team evaluates this condition: Old supported product versions receive urgent fixes but the team deletes prior release references after every mainline update. Which DevOps principle BEST explains the underlying weakness?

  1. Sensitive paths should have enforced review by designated accountable owners.
  2. Branch policies should enforce an independent review and required checks for protected code.
  3. Maintenance branching should match support windows and preserve immutable release history.
  4. Feature toggles can separate deployment from activation while limiting branch divergence.

Explanation

Correct Answer

C:

Maintenance branching should match support windows and preserve immutable release history. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Review supported version policy, branch retention, release tags and backport evidence. An appropriate controlled response is: Maintain controlled support branches with signed or protected release tags and planned retirement.

Incorrect Answers

A:

Sensitive paths should have enforced review by designated accountable owners. This would address a different situation, such as: Payment processing files require security review, but code owner review is only advisory. In the present case, the most directly relevant principle is: Maintenance branching should match support windows and preserve immutable release history. The crucial distinction is: Maintenance branching should match support windows and preserve immutable release history.

B:

Branch policies should enforce an independent review and required checks for protected code. This would address a different situation, such as: A repository's default branch allows authors to approve their own high-risk changes without independent review. In the present case, the most directly relevant principle is: Maintenance branching should match support windows and preserve immutable release history. The crucial distinction is: Maintenance branching should match support windows and preserve immutable release history.

D:

Feature toggles can separate deployment from activation while limiting branch divergence. This would address a different situation, such as: A feature needs gradual rollout, but the team maintains a year-long divergent branch to hide unfinished functionality. In the present case, the most directly relevant principle is: Maintenance branching should match support windows and preserve immutable release history. The crucial distinction is: Maintenance branching should match support windows and preserve immutable release history.

Question 806

An Azure DevOps engineering team evaluates this condition: Intermittent API failures occur across a private network, but monitoring uses only application exception counts. Which DevOps principle BEST explains the underlying weakness?

  1. Network telemetry should complement application logs to locate connectivity failure.
  2. Operational monitoring should route significant pipeline failures to accountable responders.
  3. Operational monitoring must include service request errors, latency and availability, not just capacity.
  4. Workflow insight metrics should distinguish failed jobs, timing and relevant branches.

Explanation

Correct Answer

A:

Network telemetry should complement application logs to locate connectivity failure. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Inspect Azure Network Watcher/Monitor network metrics, connection monitoring and path diagnostics. An appropriate controlled response is: Enable an approved connection monitor for the critical private network path.

Incorrect Answers

B:

Operational monitoring should route significant pipeline failures to accountable responders. This would address a different situation, such as: Production pipeline deployments fail overnight, but engineers notice only when checking the Azure DevOps portal the next morning. In the present case, the most directly relevant principle is: Network telemetry should complement application logs to locate connectivity failure. The crucial distinction is: Network telemetry should complement application logs to locate connectivity failure.

C:

Operational monitoring must include service request errors, latency and availability, not just capacity. This would address a different situation, such as: Blob transaction failures increase, but dashboards track only storage account capacity in bytes. In the present case, the most directly relevant principle is: Network telemetry should complement application logs to locate connectivity failure. The crucial distinction is: Network telemetry should complement application logs to locate connectivity failure.

D:

Workflow insight metrics should distinguish failed jobs, timing and relevant branches. This would address a different situation, such as: A GitHub project has rising CI failures, but maintainers monitor only total completed workflow counts. In the present case, the most directly relevant principle is: Network telemetry should complement application logs to locate connectivity failure. The crucial distinction is: Network telemetry should complement application logs to locate connectivity failure.

Question 807

The DevOps team must resolve this situation: A legacy fleet uses Azure Automation State Configuration but receives no reliable reports of drift or node registration. Which engineering action is MOST appropriate?

  1. Publish a versioned Bicep networking module with secure defaults and reviewed parameters.
  2. Add explicit dependency and readiness checks where Azure role propagation needs validation.
  3. Require reviewed what-if output and controlled data-preserving migration before deployment.
  4. Review the legacy DSC setup and plan a supported configuration management transition or remediation.

Explanation

Correct Answer

D:

Review the legacy DSC setup and plan a supported configuration management transition or remediation. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: A deliberately altered setting triggers the intended compliance detection and correction process. Desired state governance needs verified registration, pull frequency and compliance feedback.

Incorrect Answers

A:

Publish a versioned Bicep networking module with secure defaults and reviewed parameters. This would address a different situation, such as: Six teams manually create nearly identical VNets with inconsistent NSG defaults and missing diagnostics. In the present case, the most directly relevant engineering action is: Review the legacy DSC setup and plan a supported configuration management transition or remediation. The crucial distinction is: Desired state governance needs verified registration, pull frequency and compliance feedback.

B:

Add explicit dependency and readiness checks where Azure role propagation needs validation. This would address a different situation, such as: A Bicep deployment creates an application before the required Key Vault access is effective, causing startup failures. In the present case, the most directly relevant engineering action is: Review the legacy DSC setup and plan a supported configuration management transition or remediation. The crucial distinction is: Desired state governance needs verified registration, pull frequency and compliance feedback.

C:

Require reviewed what-if output and controlled data-preserving migration before deployment. This would address a different situation, such as: A refactor changes a storage account name while the pipeline applies it directly to production. In the present case, the most directly relevant engineering action is: Review the legacy DSC setup and plan a supported configuration management transition or remediation. The crucial distinction is: Desired state governance needs verified registration, pull frequency and compliance feedback.

Question 808

Before changing the pipeline or service, engineers find: A pipeline script prints a test failure but exits with zero, leaving no test results visible in Azure Pipelines. Which evidence should the engineer inspect FIRST?

  1. Review image scan findings, severity exceptions, release checks and provenance.
  2. Inspect coverage details, assertions, mutation results and test cases.
  3. Inspect YAML dependsOn, resource approvals, migration job outcomes and test order.
  4. Review process exit codes, PublishTestResults task settings and test XML files.

Explanation

Correct Answer

D:

Review process exit codes, PublishTestResults task settings and test XML files. This directly checks the uncertain behavior or control before changing production. CI test reporting must propagate failure status and publish actionable test results. The resulting targeted action is: Correct failure handling and publish supported JUnit/TRX results with fail-on-test-failure behavior.

Incorrect Answers

A:

Review image scan findings, severity exceptions, release checks and provenance. This would address a different situation, such as: A container image with a known critical vulnerability passes all unit tests and is promoted to production. In the present case, the most directly relevant evidence is: Review process exit codes, PublishTestResults task settings and test XML files. The crucial distinction is: CI test reporting must propagate failure status and publish actionable test results.

B:

Inspect coverage details, assertions, mutation results and test cases. 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 evidence is: Review process exit codes, PublishTestResults task settings and test XML files. The crucial distinction is: CI test reporting must propagate failure status and publish actionable test results.

C:

Inspect YAML dependsOn, resource approvals, migration job outcomes and test order. This would address a different situation, such as: A pipeline starts integration tests before deploying the dependent database migration, causing intermittent failures. In the present case, the most directly relevant evidence is: Review process exit codes, PublishTestResults task settings and test XML files. The crucial distinction is: CI test reporting must propagate failure status and publish actionable test results.

Question 809

The DevOps team must resolve this situation: An untrusted pull request can modify the secret-scanning workflow and disable scanning in its own run. Which engineering action is MOST appropriate?

  1. Enable Dependabot alerts and governed security updates with CI checks.
  2. Use risk-based triage with owners, remediation SLAs and documented waivers.
  3. Enable supported secret, dependency and code scanning for target Azure Repos repositories.
  4. Enforce independently controlled scanning status and immutable required checks on protected branches.

Explanation

Correct Answer

D:

Enforce independently controlled scanning status and immutable required checks on protected branches. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: A malicious PR cannot bypass mandatory secret scanning by editing workflow YAML. Security workflows require protected configuration and evaluation from trusted context.

Incorrect Answers

A:

Enable Dependabot alerts and governed security updates with CI checks. 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 engineering action is: Enforce independently controlled scanning status and immutable required checks on protected branches. The crucial distinction is: Security workflows require protected configuration and evaluation from trusted context.

B:

Use risk-based triage with owners, remediation SLAs and documented waivers. This would address a different situation, such as: Hundreds of low-severity dependency alerts crowd out a critical exploitable issue in production. In the present case, the most directly relevant engineering action is: Enforce independently controlled scanning status and immutable required checks on protected branches. The crucial distinction is: Security workflows require protected configuration and evaluation from trusted context.

C:

Enable supported secret, dependency and code scanning for target Azure Repos repositories. 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 engineering action is: Enforce independently controlled scanning status and immutable required checks on protected branches. The crucial distinction is: Security workflows require protected configuration and evaluation from trusted context.

Question 810

The DevOps team must resolve this situation: Release rollback fails because the pipeline cleaned the package version deployed last week. Which engineering action is MOST appropriate?

  1. Configure an approved upstream source and appropriate package permissions in Azure Artifacts.
  2. Commit a reviewed lockfile and run reproducible installation with dependency scanning.
  3. Authorize the consuming repository and assign minimum packages:read access.
  4. Protect deployed and rollback-candidate artifacts with defined retention exceptions.

Explanation

Correct Answer

D:

Protect deployed and rollback-candidate artifacts with defined retention exceptions. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: A rehearsal restores the prior release package without relying on an engineer cache. Retention must preserve artifacts and dependencies required for defined rollback windows.

Incorrect Answers

A:

Configure an approved upstream source and appropriate package permissions in Azure Artifacts. 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 engineering action is: Protect deployed and rollback-candidate artifacts with defined retention exceptions. The crucial distinction is: Retention must preserve artifacts and dependencies required for defined rollback windows.

B:

Commit a reviewed lockfile and run reproducible installation with dependency scanning. 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 engineering action is: Protect deployed and rollback-candidate artifacts with defined retention exceptions. The crucial distinction is: Retention must preserve artifacts and dependencies required for defined rollback windows.

C:

Authorize the consuming repository and assign minimum packages:read access. 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 engineering action is: Protect deployed and rollback-candidate artifacts with defined retention exceptions. The crucial distinction is: Retention must preserve artifacts and dependencies required for defined rollback windows.

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