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 93

Question 920

After implementing the change, the team verifies: A refactor changes a storage account name while the pipeline applies it directly to production. Which result would BEST demonstrate that the issue is corrected?

  1. A destructive replacement fails the gate unless explicitly approved with recovery arrangements.
  2. Expired exemptions are surfaced and prohibited deployments resume enforcement.
  3. A test template omission cannot delete an unrelated protected storage resource.
  4. Repeated plans use the same provider version and give consistent changes.

Explanation

Correct Answer

A:

A destructive replacement fails the gate unless explicitly approved with recovery arrangements. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Require reviewed what-if output and controlled data-preserving migration before deployment. Stateful IaC replacements require impact review and a migration plan.

Incorrect Answers

B:

Expired exemptions are surfaced and prohibited deployments resume enforcement. This would address a different situation, such as: A production deployment depends on a time-limited Azure Policy exemption that was never documented or reviewed. In the present case, the most directly relevant verification is: A destructive replacement fails the gate unless explicitly approved with recovery arrangements. The crucial distinction is: Stateful IaC replacements require impact review and a migration plan.

C:

A test template omission cannot delete an unrelated protected storage resource. This would address a different situation, such as: A deployment pipeline uses complete mode unintentionally and deletes resources omitted from an updated ARM template. In the present case, the most directly relevant verification is: A destructive replacement fails the gate unless explicitly approved with recovery arrangements. The crucial distinction is: Stateful IaC replacements require impact review and a migration plan.

D:

Repeated plans use the same provider version and give consistent changes. This would address a different situation, such as: The same Terraform source yields changed resource behavior because local users and CI select different provider versions. In the present case, the most directly relevant verification is: A destructive replacement fails the gate unless explicitly approved with recovery arrangements. The crucial distinction is: Stateful IaC replacements require impact review and a migration plan.

Question 921

An Azure DevOps engineering team evaluates this condition: A company combines experimental internal tools and regulated payment services into one deployment-frequency ranking. Which DevOps principle BEST explains the underlying weakness?

  1. Quality dashboards should show scope, omissions and relevant risk alongside pass rates.
  2. Operational metrics must be interpreted by service context and business risk.
  3. Flow metrics depend on consistent state-transition definitions and truthful process data.
  4. DevOps metrics require precise event definitions and consistent populations.

Explanation

Correct Answer

B:

Operational metrics must be interpreted by service context and business risk. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Review service classifications, deployment events, reliability targets and cohort selection. An appropriate controlled response is: Build service-segmented queries and complementary stability metrics.

Incorrect Answers

A:

Quality dashboards should show scope, omissions and relevant risk alongside pass rates. This would address a different situation, such as: A build dashboard reports 100% passing tests by excluding quarantined integration suites without disclosing the exclusions. In the present case, the most directly relevant principle is: Operational metrics must be interpreted by service context and business risk. The crucial distinction is: Operational metrics must be interpreted by service context and business risk.

C:

Flow metrics depend on consistent state-transition definitions and truthful process data. This would address a different situation, such as: Azure Boards reports near-zero cycle time because teams move stories to Active only when coding is almost finished. In the present case, the most directly relevant principle is: Operational metrics must be interpreted by service context and business risk. The crucial distinction is: Operational metrics must be interpreted by service context and business risk.

D:

DevOps metrics require precise event definitions and consistent populations. This would address a different situation, such as: A dashboard measures deployment frequency but calculates lead time from the first commit in an unrelated repository. In the present case, the most directly relevant principle is: Operational metrics must be interpreted by service context and business risk. The crucial distinction is: Operational metrics must be interpreted by service context and business risk.

Question 922

Before changing the pipeline or service, engineers find: A repository's default branch allows authors to approve their own high-risk changes without independent review. Which evidence should the engineer inspect FIRST?

  1. Inspect branch rules, bypass lists, review events and commit protections.
  2. Inspect collaborator roles, fork permissions and branch protection rules.
  3. Review reflogs, branch protections, merge strategy and downstream consumers.
  4. Inspect CODEOWNERS mappings, branch protection and reviewer bypass privileges.

Explanation

Correct Answer

A:

Inspect branch rules, bypass lists, review events and commit protections. This directly checks the uncertain behavior or control before changing production. Branch policies should enforce an independent review and required checks for protected code. The resulting targeted action is: Require independent pull request reviews and passing automated checks on main.

Incorrect Answers

B:

Inspect collaborator roles, fork permissions and branch protection rules. 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 evidence is: Inspect branch rules, bypass lists, review events and commit protections. The crucial distinction is: Branch policies should enforce an independent review and required checks for protected code.

C:

Review reflogs, branch protections, merge strategy and downstream consumers. 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 evidence is: Inspect branch rules, bypass lists, review events and commit protections. The crucial distinction is: Branch policies should enforce an independent review and required checks for protected code.

D:

Inspect CODEOWNERS mappings, branch protection and reviewer bypass privileges. 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 evidence is: Inspect branch rules, bypass lists, review events and commit protections. The crucial distinction is: Branch policies should enforce an independent review and required checks for protected code.

Question 923

The DevOps team must resolve this situation: A retailer wants to expose a new checkout feature to 5% of customers but its current flag is on or off for everyone. Which engineering action is MOST appropriate?

  1. Define a limited hotfix workflow with priority testing, accountable approval and later backport.
  2. Publish a reviewed Terraform plan and apply the exact approved plan under controls.
  3. Configure a controlled percentage or targeting filter with versioned rollout criteria.
  4. Deploy the candidate to a staging slot, validate health, then perform a controlled swap.

Explanation

Correct Answer

C:

Configure a controlled percentage or targeting filter with versioned rollout criteria. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: The test cohort receives the new flow while excluded users retain the original flow. Targeting filters can control feature exposure by cohort or percentage.

Incorrect Answers

A:

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: Configure a controlled percentage or targeting filter with versioned rollout criteria. The crucial distinction is: Targeting filters can control feature exposure by cohort or percentage.

B:

Publish a reviewed Terraform plan and apply the exact approved plan under controls. This would address a different situation, such as: A Terraform pipeline applies a production plan without showing that a changed resource will be destroyed. In the present case, the most directly relevant engineering action is: Configure a controlled percentage or targeting filter with versioned rollout criteria. The crucial distinction is: Targeting filters can control feature exposure by cohort or percentage.

D:

Deploy the candidate to a staging slot, validate health, then perform a controlled swap. This would address a different situation, such as: A web application must deploy without interruption, but direct production updates restart every active instance. In the present case, the most directly relevant engineering action is: Configure a controlled percentage or targeting filter with versioned rollout criteria. The crucial distinction is: Targeting filters can control feature exposure by cohort or percentage.

Question 924

A Microsoft DevOps team is addressing: A project relies entirely on container image vulnerability scanning while application source contains an authorization flaw. Which TWO complementary actions should be taken? Select TWO answers.

  1. Review SAST, dependency, image and integration security test coverage.
  2. Inspect GitHub Advanced Security CodeQL workflow, languages, SARIF results and merge gates.
  3. Combine appropriate code, dependency, secret and container scanning with tested authorization scenarios.
  4. Inspect workflow PR permissions, required checks and protected branch policy.
  5. Enable supported secret, dependency and code scanning for target Azure Repos repositories.

Explanation

Correct Answers

A:

Review SAST, dependency, image and integration security test coverage. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Combine appropriate code, dependency, secret and container scanning with tested authorization scenarios. Together they address: Different scanning methods cover different classes of weakness and require complementary controls.

C:

Combine appropriate code, dependency, secret and container scanning with tested authorization scenarios. This supplies the controlled implementation needed for the scenario. Its complementary step is: Review SAST, dependency, image and integration security test coverage. Together they address: Different scanning methods cover different classes of weakness and require complementary controls.

Incorrect Answers

B:

Inspect GitHub Advanced Security CodeQL workflow, languages, SARIF results and merge gates. This concerns a different DevOps situation: A C# API has risky SQL construction patterns, but pipeline checks only verify compilation. This case instead requires both a targeted investigation (Review SAST, dependency, image and integration security test coverage.) and a controlled change (Combine appropriate code, dependency, secret and container scanning with tested authorization scenarios.).

D:

Inspect workflow PR permissions, required checks and protected branch policy. This concerns a different DevOps situation: An untrusted pull request can modify the secret-scanning workflow and disable scanning in its own run. This case instead requires both a targeted investigation (Review SAST, dependency, image and integration security test coverage.) and a controlled change (Combine appropriate code, dependency, secret and container scanning with tested authorization scenarios.).

E:

Enable supported secret, dependency and code scanning for target Azure Repos repositories. This concerns a different DevOps situation: An Azure Repos project has GitHub Advanced Security licensed but required code and secret scanning were never enabled for key repos. This case instead requires both a targeted investigation (Review SAST, dependency, image and integration security test coverage.) and a controlled change (Combine appropriate code, dependency, secret and container scanning with tested authorization scenarios.).

Question 925

A Microsoft DevOps team is addressing: An Azure CLI task runs with set -x and echoes bearer tokens in the pipeline console log. Which TWO complementary actions should be taken? Select TWO answers.

  1. Use an authorized Azure Key Vault-backed secret reference with protected variable handling.
  2. Review certificate exposure, pipeline YAML, secure-file permissions and task usage.
  3. Inspect bash debug flags, Azure CLI output, log retention and secret masking.
  4. Inspect blob access, SAS lifetime, logs and secret-bearing file handling.
  5. Remove token-printing diagnostics and use restricted command output and log scanning.

Explanation

Correct Answers

C:

Inspect bash debug flags, Azure CLI output, log retention and secret masking. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Remove token-printing diagnostics and use restricted command output and log scanning. Together they address: Secretless authentication still requires careful handling of temporary token output.

E:

Remove token-printing diagnostics and use restricted command output and log scanning. This supplies the controlled implementation needed for the scenario. Its complementary step is: Inspect bash debug flags, Azure CLI output, log retention and secret masking. Together they address: Secretless authentication still requires careful handling of temporary token output.

Incorrect Answers

A:

Use an authorized Azure Key Vault-backed secret reference with protected variable handling. This concerns a different DevOps situation: A pipeline prints a database password stored in a plain YAML variable during environment deployment. This case instead requires both a targeted investigation (Inspect bash debug flags, Azure CLI output, log retention and secret masking.) and a controlled change (Remove token-printing diagnostics and use restricted command output and log scanning.).

B:

Review certificate exposure, pipeline YAML, secure-file permissions and task usage. This concerns a different DevOps situation: A mobile signing certificate is embedded as Base64 directly in a public pipeline YAML file. This case instead requires both a targeted investigation (Inspect bash debug flags, Azure CLI output, log retention and secret masking.) and a controlled change (Remove token-printing diagnostics and use restricted command output and log scanning.).

D:

Inspect blob access, SAS lifetime, logs and secret-bearing file handling. This concerns a different DevOps situation: A deployment downloads a private configuration file from a public blob URL before replacing placeholders. This case instead requires both a targeted investigation (Inspect bash debug flags, Azure CLI output, log retention and secret masking.) and a controlled change (Remove token-printing diagnostics and use restricted command output and log scanning.).

Question 926

Before changing the pipeline or service, engineers find: A deployment stage starts before the packaging stage publishes an artifact because stages are configured independently. Which evidence should the engineer inspect FIRST?

  1. Review stage condition expressions, dependency status and test results.
  2. Inspect dependsOn, output artifacts, stage conditions and run timelines.
  3. Inspect repository runner group rules, fork workflow triggers and credential persistence.
  4. Inspect library permissions, pipeline authorization, variable source and consumer identities.

Explanation

Correct Answer

B:

Inspect dependsOn, output artifacts, stage conditions and run timelines. This directly checks the uncertain behavior or control before changing production. YAML stage dependencies should express the actual required job order. The resulting targeted action is: Define explicit stage dependencies and artifact handoffs in the YAML pipeline.

Incorrect Answers

A:

Review stage condition expressions, dependency status and test results. 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 evidence is: Inspect dependsOn, output artifacts, stage conditions and run timelines. The crucial distinction is: YAML stage dependencies should express the actual required job order.

C:

Inspect repository runner group rules, fork workflow triggers and credential persistence. This would address a different situation, such as: A GitHub self-hosted runner accepts workflows from untrusted forks and shares its workspace with production credentials. In the present case, the most directly relevant evidence is: Inspect dependsOn, output artifacts, stage conditions and run timelines. The crucial distinction is: YAML stage dependencies should express the actual required job order.

D:

Inspect library permissions, pipeline authorization, variable source and consumer identities. This would address a different situation, such as: A shared variable group contains production connection strings, and every development pipeline can read them. In the present case, the most directly relevant evidence is: Inspect dependsOn, output artifacts, stage conditions and run timelines. The crucial distinction is: YAML stage dependencies should express the actual required job order.

Question 927

An Azure DevOps engineering team evaluates this condition: The same Terraform source yields changed resource behavior because local users and CI select different provider versions. Which DevOps principle BEST explains the underlying weakness?

  1. IaC dependency design must express when required resources and authorization are ready.
  2. Ephemeral environments need automated lifecycle, cost and access controls.
  3. IaC builds need controlled provider requirements and lockfile provenance.
  4. Policy effects differ between reporting and preventive enforcement.

Explanation

Correct Answer

C:

IaC builds need controlled provider requirements and lockfile provenance. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Review required_providers, lockfile, init results and changed plan outputs. An appropriate controlled response is: Pin and review provider versions with a committed lockfile and CI version checks.

Incorrect Answers

A:

IaC dependency design must express when required resources and authorization are ready. 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 principle is: IaC builds need controlled provider requirements and lockfile provenance. The crucial distinction is: IaC builds need controlled provider requirements and lockfile provenance.

B:

Ephemeral environments need automated lifecycle, cost and access controls. 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 principle is: IaC builds need controlled provider requirements and lockfile provenance. The crucial distinction is: IaC builds need controlled provider requirements and lockfile provenance.

D:

Policy effects differ between reporting and preventive enforcement. 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 principle is: IaC builds need controlled provider requirements and lockfile provenance. The crucial distinction is: IaC builds need controlled provider requirements and lockfile provenance.

Question 928

The DevOps team must resolve this situation: An architecture decision record is stored in a shared folder where anyone can overwrite approved design rationale without review. Which engineering action is MOST appropriate?

  1. Generate draft release notes from structured commits and require review of breaking changes.
  2. Configure the authorized Azure Boards-GitHub integration and linking conventions.
  3. Store decisions in a protected repository with named reviewers and link them to implementation work.
  4. Use stable event IDs and idempotent ticket creation with failure monitoring.

Explanation

Correct Answer

C:

Store decisions in a protected repository with named reviewers and link them to implementation work. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: A proposed architecture revision requires review and preserves earlier decision history. Architectural knowledge needs attributable change history and accountable reviewer approval.

Incorrect Answers

A:

Generate draft release notes from structured commits and require review of breaking changes. This would address a different situation, such as: An internal library ships monthly but its changelog omits breaking changes unless one maintainer remembers to edit it. In the present case, the most directly relevant engineering action is: Store decisions in a protected repository with named reviewers and link them to implementation work. The crucial distinction is: Architectural knowledge needs attributable change history and accountable reviewer approval.

B:

Configure the authorized Azure Boards-GitHub integration and linking conventions. This would address a different situation, such as: A team uses GitHub for code and Azure Boards for planning, but pull requests never appear in its work items. In the present case, the most directly relevant engineering action is: Store decisions in a protected repository with named reviewers and link them to implementation work. The crucial distinction is: Architectural knowledge needs attributable change history and accountable reviewer approval.

D:

Use stable event IDs and idempotent ticket creation with failure monitoring. This would address a different situation, such as: An Azure DevOps webhook creates duplicate change tickets whenever the receiving service retries a timeout. In the present case, the most directly relevant engineering action is: Store decisions in a protected repository with named reviewers and link them to implementation work. The crucial distinction is: Architectural knowledge needs attributable change history and accountable reviewer approval.

Question 929

Before changing the pipeline or service, engineers find: Intermittent API failures occur across a private network, but monitoring uses only application exception counts. Which evidence should the engineer inspect FIRST?

  1. Inspect Application Insights request/dependency telemetry, correlation IDs and trace configuration.
  2. Inspect Azure Monitor Agent, VM insights settings, counters and related crash logs.
  3. Inspect GitHub Actions run history, job timing, failure causes and usage trends.
  4. Inspect Azure Network Watcher/Monitor network metrics, connection monitoring and path diagnostics.

Explanation

Correct Answer

D:

Inspect Azure Network Watcher/Monitor network metrics, connection monitoring and path diagnostics. This directly checks the uncertain behavior or control before changing production. Network telemetry should complement application logs to locate connectivity failure. The resulting targeted action is: Enable an approved connection monitor for the critical private network path.

Incorrect Answers

A:

Inspect Application Insights request/dependency telemetry, correlation IDs and trace configuration. This would address a different situation, such as: A shopping application logs HTTP failures but does not show which downstream payment call caused the response delay. In the present case, the most directly relevant evidence is: Inspect Azure Network Watcher/Monitor network metrics, connection monitoring and path diagnostics. The crucial distinction is: Network telemetry should complement application logs to locate connectivity failure.

B:

Inspect Azure Monitor Agent, VM insights settings, counters and related crash logs. This would address a different situation, such as: A production VM experiences OOM kills while CPU remains normal and default platform graphs show no guest memory usage. In the present case, the most directly relevant evidence is: Inspect Azure Network Watcher/Monitor network metrics, connection monitoring and path diagnostics. The crucial distinction is: Network telemetry should complement application logs to locate connectivity failure.

C:

Inspect GitHub Actions run history, job timing, failure causes and usage trends. 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 evidence is: Inspect Azure Network Watcher/Monitor network metrics, connection monitoring and path diagnostics. The crucial distinction is: Network telemetry should complement application logs to locate connectivity failure.

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.

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