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 26

Question 250

Before changing the pipeline or service, engineers find: An Azure service uses a TLS certificate uploaded to Key Vault, but the deployment copies only the public certificate without the private-key binding. Which evidence should the engineer inspect FIRST?

  1. Review certificate exposure, pipeline YAML, secure-file permissions and task usage.
  2. Inspect blob access, SAS lifetime, logs and secret-bearing file handling.
  3. Inspect Key Vault version stages, runtime cache, rotation timeline and access policy.
  4. Inspect Key Vault certificate/secret objects, identity rights and App Service bindings.

Explanation

Correct Answer

D:

Inspect Key Vault certificate/secret objects, identity rights and App Service bindings. This directly checks the uncertain behavior or control before changing production. Certificate deployment must match required private-key access and target service configuration. The resulting targeted action is: Deploy the appropriately authorized certificate material through supported bindings and managed access.

Incorrect Answers

A:

Review certificate exposure, pipeline YAML, secure-file permissions and task usage. 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 evidence is: Inspect Key Vault certificate/secret objects, identity rights and App Service bindings. The crucial distinction is: Certificate deployment must match required private-key access and target service configuration.

B:

Inspect blob access, SAS lifetime, logs and secret-bearing file handling. This would address a different situation, such as: A deployment downloads a private configuration file from a public blob URL before replacing placeholders. In the present case, the most directly relevant evidence is: Inspect Key Vault certificate/secret objects, identity rights and App Service bindings. The crucial distinction is: Certificate deployment must match required private-key access and target service configuration.

C:

Inspect Key Vault version stages, runtime cache, rotation timeline and access policy. 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 evidence is: Inspect Key Vault certificate/secret objects, identity rights and App Service bindings. The crucial distinction is: Certificate deployment must match required private-key access and target service configuration.

Question 251

After implementing the change, the team verifies: An Azure DevOps pipeline's Azure Resource Manager service connection fails each quarter when its client secret expires. Which result would BEST demonstrate that the issue is corrected?

  1. A test pipeline deploys after the old secret is revoked and stays least-privileged.
  2. A job restores the private dependency while agent access remains restricted.
  3. A shared security fix is adopted through a reviewed template update in each consumer.
  4. A test-only job cannot mutate repository releases while publish job remains authorized.

Explanation

Correct Answer

A:

A test pipeline deploys after the old secret is revoked and stays least-privileged. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Migrate the service connection to supported workload identity federation with scoped access. Azure service connections can use workload identity federation instead of expiring shared secrets.

Incorrect Answers

B:

A job restores the private dependency while agent access remains restricted. This would address a different situation, such as: A build must reach private package infrastructure inaccessible from Microsoft-hosted agents. In the present case, the most directly relevant verification is: A test pipeline deploys after the old secret is revoked and stays least-privileged. The crucial distinction is: Azure service connections can use workload identity federation instead of expiring shared secrets.

C:

A shared security fix is adopted through a reviewed template update in each consumer. This would address a different situation, such as: Teams each copy a deployment YAML template and security fixes reach only some repositories. In the present case, the most directly relevant verification is: A test pipeline deploys after the old secret is revoked and stays least-privileged. The crucial distinction is: Azure service connections can use workload identity federation instead of expiring shared secrets.

D:

A test-only job cannot mutate repository releases while publish job remains authorized. This would address a different situation, such as: A reusable GitHub Actions workflow grants write permissions to every job although most only compile and test. In the present case, the most directly relevant verification is: A test pipeline deploys after the old secret is revoked and stays least-privileged. The crucial distinction is: Azure service connections can use workload identity federation instead of expiring shared secrets.

Question 252

After implementing the change, the team verifies: An App Service slot swap puts new code online while old instances still write to a shared Azure SQL schema. Which result would BEST demonstrate that the issue is corrected?

  1. Both old and new versions handle transactions until old traffic drains safely.
  2. A rotation rehearsal preserves authorization and active service availability.
  3. A sample rollout maintains required ready endpoints with no response interruption.
  4. A test urgent fix reaches production through review and is merged to maintained branches.

Explanation

Correct Answer

A:

Both old and new versions handle transactions until old traffic drains safely. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Use expand-and-contract database changes before traffic migration. Blue-green rollout must preserve shared database compatibility during transition.

Incorrect Answers

B:

A rotation rehearsal preserves authorization and active service availability. This would address a different situation, such as: A production release references an unversioned shared secret and breaks when a different team rotates it mid-deployment. In the present case, the most directly relevant verification is: Both old and new versions handle transactions until old traffic drains safely. The crucial distinction is: Blue-green rollout must preserve shared database compatibility during transition.

C:

A sample rollout maintains required ready endpoints with no response interruption. This would address a different situation, such as: An AKS update removes every API pod simultaneously because maxUnavailable equals the full replica count. In the present case, the most directly relevant verification is: Both old and new versions handle transactions until old traffic drains safely. The crucial distinction is: Blue-green rollout must preserve shared database compatibility during transition.

D:

A test urgent fix reaches production through review and is merged to maintained branches. 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 verification is: Both old and new versions handle transactions until old traffic drains safely. The crucial distinction is: Blue-green rollout must preserve shared database compatibility during transition.

Question 253

The DevOps team must resolve this situation: A deployment pipeline uses complete mode unintentionally and deletes resources omitted from an updated ARM template. Which engineering action is MOST appropriate?

  1. Apply an approved Azure Machine Configuration baseline with compliance evaluation.
  2. Publish approved reusable templates with governed versioning and service-specific parameters.
  3. Use a safe scoped deployment strategy with reviewed change previews and deletion protections.
  4. Add explicit dependency and readiness checks where Azure role propagation needs validation.

Explanation

Correct Answer

C:

Use a safe scoped deployment strategy with reviewed change previews and deletion protections. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: A test template omission cannot delete an unrelated protected storage resource. Deployment mode and scope determine whether absent resources may be removed.

Incorrect Answers

A:

Apply an approved Azure Machine Configuration baseline with compliance evaluation. This would address a different situation, such as: Production VMs are configured by manual shell changes and new replacement VMs lack required OS baselines. In the present case, the most directly relevant engineering action is: Use a safe scoped deployment strategy with reviewed change previews and deletion protections. The crucial distinction is: Deployment mode and scope determine whether absent resources may be removed.

B:

Publish approved reusable templates with governed versioning and service-specific parameters. This would address a different situation, such as: Each team's pipeline provisions Azure Container Apps independently, with inconsistent health probes and identity. In the present case, the most directly relevant engineering action is: Use a safe scoped deployment strategy with reviewed change previews and deletion protections. The crucial distinction is: Deployment mode and scope determine whether absent resources may be removed.

D:

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: Use a safe scoped deployment strategy with reviewed change previews and deletion protections. The crucial distinction is: Deployment mode and scope determine whether absent resources may be removed.

Question 254

After implementing the change, the team verifies: A developer needs one service from a huge monorepo, but each checkout transfers every unrelated project and binary. Which result would BEST demonstrate that the issue is corrected?

  1. The target service builds correctly with only its required repository content.
  2. The old credential is invalid and authorized scans find no active secret exposure.
  3. The same repository commit builds on both the intended Windows and Linux agents.
  4. Two builds of the same main commit use the exact approved submodule revision.

Explanation

Correct Answer

A:

The target service builds correctly with only its required repository content. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Configure supported sparse checkout or Scalar/partial clone for constrained workflows. Large repositories can use sparse checkout and partial clone to reduce unnecessary working data.

Incorrect Answers

B:

The old credential is invalid and authorized scans find no active secret exposure. This would address a different situation, such as: A database credential is removed from the latest Git commit but remains visible in old revisions. In the present case, the most directly relevant verification is: The target service builds correctly with only its required repository content. The crucial distinction is: Large repositories can use sparse checkout and partial clone to reduce unnecessary working data.

C:

The same repository commit builds on both the intended Windows and Linux agents. This would address a different situation, such as: A service builds on a Windows workstation but fails on Linux CI because a source import differs only in filename case. In the present case, the most directly relevant verification is: The target service builds correctly with only its required repository content. The crucial distinction is: Large repositories can use sparse checkout and partial clone to reduce unnecessary working data.

D:

Two builds of the same main commit use the exact approved submodule revision. This would address a different situation, such as: A build references a Git submodule by moving branch and occasionally acquires incompatible dependency changes. In the present case, the most directly relevant verification is: The target service builds correctly with only its required repository content. The crucial distinction is: Large repositories can use sparse checkout and partial clone to reduce unnecessary working data.

Question 255

After implementing the change, the team verifies: The same Git commit restores different NuGet package versions one week apart and intermittently fails tests. Which result would BEST demonstrate that the issue is corrected?

  1. Two clean builds of the same commit restore an identical dependency graph.
  2. A policy-prohibited dependency blocks promotion with a reviewable report.
  3. Two same-day builds remain separately traceable to their source commits.
  4. An ordinary consumer can restore packages but cannot remove published releases.

Explanation

Correct Answer

A:

Two clean builds of the same commit restore an identical dependency graph. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Pin approved package ranges with lockfiles and deterministic restore settings. Reproducible builds require controlled package versions and lockfile inputs.

Incorrect Answers

B:

A policy-prohibited dependency blocks promotion with a reviewable report. This would address a different situation, such as: A development team uses a package with licensing obligations incompatible with a proprietary distribution without checking the transitive tree. In the present case, the most directly relevant verification is: Two clean builds of the same commit restore an identical dependency graph. The crucial distinction is: Reproducible builds require controlled package versions and lockfile inputs.

C:

Two same-day builds remain separately traceable to their source commits. 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 verification is: Two clean builds of the same commit restore an identical dependency graph. The crucial distinction is: Reproducible builds require controlled package versions and lockfile inputs.

D:

An ordinary consumer can restore packages but cannot remove published releases. 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 verification is: Two clean builds of the same commit restore an identical dependency graph. The crucial distinction is: Reproducible builds require controlled package versions and lockfile inputs.

Question 256

After implementing the change, the team verifies: Two production deployments target the same App Service slot simultaneously and the earlier one overwrites the newer release. Which result would BEST demonstrate that the issue is corrected?

  1. A simulated pair of releases leaves the later approved version running.
  2. A failed test stage prevents the dependent production verification and deployment.
  3. A sample GitHub pull request launches a traceable Azure Pipeline check.
  4. A test run completes faster without exceeding the owned concurrency budget.

Explanation

Correct Answer

A:

A simulated pair of releases leaves the later approved version running. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Configure appropriate exclusive locks or deployment concurrency controls per environment. Concurrent deployments require serialization or controlled exclusive access to shared environments.

Incorrect Answers

B:

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 simulated pair of releases leaves the later approved version running. The crucial distinction is: Concurrent deployments require serialization or controlled exclusive access to shared environments.

C:

A sample GitHub pull request launches a traceable Azure Pipeline check. This would address a different situation, such as: An Azure DevOps pipeline uses a GitHub repository but cannot run pull-request validation because its repository connection is misconfigured. In the present case, the most directly relevant verification is: A simulated pair of releases leaves the later approved version running. The crucial distinction is: Concurrent deployments require serialization or controlled exclusive access to shared environments.

D:

A test run completes faster without exceeding the owned concurrency budget. This would address a different situation, such as: A large repository launches 100 independent test jobs though the organization owns only 10 paid parallel agent slots. In the present case, the most directly relevant verification is: A simulated pair of releases leaves the later approved version running. The crucial distinction is: Concurrent deployments require serialization or controlled exclusive access to shared environments.

Question 257

The DevOps team must resolve this situation: A release adds a non-null column while old and new application versions temporarily operate together. Which engineering action is MOST appropriate?

  1. Give parallel tests isolated data and synchronize genuine shared dependencies.
  2. Install or select the approved SDK version in the pipeline before test execution.
  3. Run supported code scanning on pull requests with risk-appropriate merge gates.
  4. Test expand-and-contract schema changes against concurrent old and new application instances.

Explanation

Correct Answer

D:

Test expand-and-contract schema changes against concurrent old and new application instances. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: Both app versions write correctly during transition and a rollback stays feasible. Database deployment tests should validate backward compatibility throughout rollout.

Incorrect Answers

A:

Give parallel tests isolated data and synchronize genuine shared dependencies. This would address a different situation, such as: A nightly integration suite fails intermittently because test data is shared between parallel jobs. In the present case, the most directly relevant engineering action is: Test expand-and-contract schema changes against concurrent old and new application instances. The crucial distinction is: Database deployment tests should validate backward compatibility throughout rollout.

B:

Install or select the approved SDK version in the pipeline before test execution. 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 engineering action is: Test expand-and-contract schema changes against concurrent old and new application instances. The crucial distinction is: Database deployment tests should validate backward compatibility throughout rollout.

C:

Run supported code scanning on pull requests with risk-appropriate merge gates. This would address a different situation, such as: A GitHub repository scans vulnerabilities once a month but merges vulnerable code daily. In the present case, the most directly relevant engineering action is: Test expand-and-contract schema changes against concurrent old and new application instances. The crucial distinction is: Database deployment tests should validate backward compatibility throughout rollout.

Question 258

Before changing the pipeline or service, engineers find: An App Service slot swap puts new code online while old instances still write to a shared Azure SQL schema. Which evidence should the engineer inspect FIRST?

  1. Inspect Helm release history, rendered manifests, readiness probes and errors.
  2. Inspect schema migration history, transaction boundaries, retry logs and object existence.
  3. Review schema changes, client versions, deployment order and rollback requirements.
  4. Inspect endpoint groups, telemetry, rollout schedule and early-ring feedback.

Explanation

Correct Answer

C:

Review schema changes, client versions, deployment order and rollback requirements. This directly checks the uncertain behavior or control before changing production. Blue-green rollout must preserve shared database compatibility during transition. The resulting targeted action is: Use expand-and-contract database changes before traffic migration.

Incorrect Answers

A:

Inspect Helm release history, rendered manifests, readiness probes and errors. This would address a different situation, such as: An AKS Helm upgrade fails after rendering a misconfigured resource, leaving pods partially updated. In the present case, the most directly relevant evidence is: Review schema changes, client versions, deployment order and rollback requirements. The crucial distinction is: Blue-green rollout must preserve shared database compatibility during transition.

B:

Inspect schema migration history, transaction boundaries, retry logs and object existence. 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 evidence is: Review schema changes, client versions, deployment order and rollback requirements. The crucial distinction is: Blue-green rollout must preserve shared database compatibility during transition.

D:

Inspect endpoint groups, telemetry, rollout schedule and early-ring feedback. This would address a different situation, such as: A desktop client update is rolled out to every employee globally at the same moment, causing a widespread outage. In the present case, the most directly relevant evidence is: Review schema changes, client versions, deployment order and rollback requirements. The crucial distinction is: Blue-green rollout must preserve shared database compatibility during transition.

Question 259

A Microsoft DevOps team is addressing: A versioned REST API deploys successfully but its consumer documentation still lists removed fields. Which TWO complementary actions should be taken? Select TWO answers.

  1. Review OpenAPI specification, release artifact version and documentation publication stage.
  2. Inspect webhook delivery IDs, response codes, receiver transaction IDs and retry rules.
  3. Generate and publish versioned API documentation as a release-gated artifact.
  4. Inspect Azure Boards GitHub connection, repository authorization and linked work items.
  5. Generate draft release notes from structured commits and require review of breaking changes.

Explanation

Correct Answers

A:

Review OpenAPI specification, release artifact version and documentation publication stage. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Generate and publish versioned API documentation as a release-gated artifact. Together they address: API documentation must be published from the approved version and checked for compatibility.

C:

Generate and publish versioned API documentation as a release-gated artifact. This supplies the controlled implementation needed for the scenario. Its complementary step is: Review OpenAPI specification, release artifact version and documentation publication stage. Together they address: API documentation must be published from the approved version and checked for compatibility.

Incorrect Answers

B:

Inspect webhook delivery IDs, response codes, receiver transaction IDs and retry rules. This concerns a different DevOps situation: An Azure DevOps webhook creates duplicate change tickets whenever the receiving service retries a timeout. This case instead requires both a targeted investigation (Review OpenAPI specification, release artifact version and documentation publication stage.) and a controlled change (Generate and publish versioned API documentation as a release-gated artifact.).

D:

Inspect Azure Boards GitHub connection, repository authorization and linked work items. This concerns a different DevOps situation: A team uses GitHub for code and Azure Boards for planning, but pull requests never appear in its work items. This case instead requires both a targeted investigation (Review OpenAPI specification, release artifact version and documentation publication stage.) and a controlled change (Generate and publish versioned API documentation as a release-gated artifact.).

E:

Generate draft release notes from structured commits and require review of breaking changes. This concerns a different DevOps situation: An internal library ships monthly but its changelog omits breaking changes unless one maintainer remembers to edit it. This case instead requires both a targeted investigation (Review OpenAPI specification, release artifact version and documentation publication stage.) and a controlled change (Generate and publish versioned API documentation as a release-gated artifact.).

Question 260

A Microsoft DevOps team is addressing: Operators modify a production firewall directly, but the Terraform plan assumes its prior values remain in place. Which TWO complementary actions should be taken? Select TWO answers.

  1. Inspect provider refresh results, plan drift and authorized manual changes.
  2. Inspect backend settings, state access policy, encryption and concurrent writes.
  3. Run governed drift detection and reconcile approved changes through IaC.
  4. Inspect template inputs, source history, Key Vault access and deployment output.
  5. Pass verified immutable image identifiers through a controlled IaC deployment interface.

Explanation

Correct Answers

A:

Inspect provider refresh results, plan drift and authorized manual changes. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Run governed drift detection and reconcile approved changes through IaC. Together they address: Desired state must be reconciled with real infrastructure before applying further changes.

C:

Run governed drift detection and reconcile approved changes through IaC. This supplies the controlled implementation needed for the scenario. Its complementary step is: Inspect provider refresh results, plan drift and authorized manual changes. Together they address: Desired state must be reconciled with real infrastructure before applying further changes.

Incorrect Answers

B:

Inspect backend settings, state access policy, encryption and concurrent writes. This concerns a different DevOps situation: A Terraform workflow stores its state file in an unencrypted shared file share accessible to all developers. This case instead requires both a targeted investigation (Inspect provider refresh results, plan drift and authorized manual changes.) and a controlled change (Run governed drift detection and reconcile approved changes through IaC.).

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 provider refresh results, plan drift and authorized manual changes.) and a controlled change (Run governed drift detection and reconcile approved changes through IaC.).

E:

Pass verified immutable image identifiers through a controlled IaC deployment interface. This concerns a different DevOps situation: Application images are deployed manually after infra provisioning and the deployed image tag is not recorded in Bicep or the release pipeline. This case instead requires both a targeted investigation (Inspect provider refresh results, plan drift and authorized manual changes.) and a controlled change (Run governed drift detection and reconcile approved changes through IaC.).

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