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 66

Question 650

Before changing the pipeline or service, engineers find: A microservice changes a JSON field name while a downstream consumer still relies on the old name. Which evidence should the engineer inspect FIRST?

  1. Inspect coverage details, assertions, mutation results and test cases.
  2. Inspect producer schemas, consumer tests, artifact versions and failure logs.
  3. Review load profile, Azure Load Testing results, request percentiles and capacity metrics.
  4. Inspect schema migration scripts, live app versions, default values and rollback plans.

Explanation

Correct Answer

B:

Inspect producer schemas, consumer tests, artifact versions and failure logs. This directly checks the uncertain behavior or control before changing production. Consumer contract tests should detect interface-breaking changes before coordinated release. The resulting targeted action is: Run automated producer-consumer contract checks with backward-compatible staging.

Incorrect Answers

A:

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: Inspect producer schemas, consumer tests, artifact versions and failure logs. The crucial distinction is: Consumer contract tests should detect interface-breaking changes before coordinated release.

C:

Review load profile, Azure Load Testing results, request percentiles and capacity metrics. This would address a different situation, such as: An API passes functional tests for one user but violates latency objectives under 1,000 concurrent clients. In the present case, the most directly relevant evidence is: Inspect producer schemas, consumer tests, artifact versions and failure logs. The crucial distinction is: Consumer contract tests should detect interface-breaking changes before coordinated release.

D:

Inspect schema migration scripts, live app versions, default values and rollback plans. 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 evidence is: Inspect producer schemas, consumer tests, artifact versions and failure logs. The crucial distinction is: Consumer contract tests should detect interface-breaking changes before coordinated release.

Question 651

The DevOps team must resolve this situation: An Azure Functions staging slot unexpectedly processes production queue messages before its swap because a trigger configuration was not isolated. Which engineering action is MOST appropriate?

  1. Isolate the tested change and instrument comparable outcome metrics across randomized cohorts.
  2. Use slot-sticky settings and suppress staging triggers until explicitly authorized.
  3. Implement staged deployment rings with explicit gates and pause criteria.
  4. Use governed secret reference/rotation patterns with staged compatibility testing.

Explanation

Correct Answer

B:

Use slot-sticky settings and suppress staging triggers until explicitly authorized. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: A staged function validates safely without consuming production messages. Slot deployment must isolate environment-specific connection and trigger settings.

Incorrect Answers

A:

Isolate the tested change and instrument comparable outcome metrics across randomized cohorts. This would address a different situation, such as: Two user interface variants are shown, but the team changes both pricing logic and checkout latency simultaneously and cannot attribute outcomes. In the present case, the most directly relevant engineering action is: Use slot-sticky settings and suppress staging triggers until explicitly authorized. The crucial distinction is: Slot deployment must isolate environment-specific connection and trigger settings.

C:

Implement staged deployment rings with explicit gates and pause criteria. 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 engineering action is: Use slot-sticky settings and suppress staging triggers until explicitly authorized. The crucial distinction is: Slot deployment must isolate environment-specific connection and trigger settings.

D:

Use governed secret reference/rotation patterns with staged compatibility testing. 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 engineering action is: Use slot-sticky settings and suppress staging triggers until explicitly authorized. The crucial distinction is: Slot deployment must isolate environment-specific connection and trigger settings.

Question 652

After implementing the change, the team verifies: An internal SDK removes a public method yet publishes the next build as a patch release, breaking consumers. Which result would BEST demonstrate that the issue is corrected?

  1. A rehearsal restores the prior release package without relying on an engineer cache.
  2. Existing consumers remain on supported prior versions unless they explicitly upgrade.
  3. An ordinary consumer can restore packages but cannot remove published releases.
  4. A clean CI installation resolves the audited transitive versions.

Explanation

Correct Answer

B:

Existing consumers remain on supported prior versions unless they explicitly upgrade. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Publish an appropriate major version with migration guidance and compatibility gates. SemVer major versions communicate incompatible public API changes.

Incorrect Answers

A:

A rehearsal restores the prior release package without relying on an engineer cache. This would address a different situation, such as: Release rollback fails because the pipeline cleaned the package version deployed last week. In the present case, the most directly relevant verification is: Existing consumers remain on supported prior versions unless they explicitly upgrade. The crucial distinction is: SemVer major versions communicate incompatible public API changes.

C:

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: Existing consumers remain on supported prior versions unless they explicitly upgrade. The crucial distinction is: SemVer major versions communicate incompatible public API changes.

D:

A clean CI installation resolves the audited transitive versions. 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 verification is: Existing consumers remain on supported prior versions unless they explicitly upgrade. The crucial distinction is: SemVer major versions communicate incompatible public API changes.

Question 653

An Azure DevOps engineering team evaluates this condition: A maintainer rebases a shared release branch and force pushes, invalidating teammates' commit references. Which DevOps principle BEST explains the underlying weakness?

  1. History rewriting on shared branches requires explicit governance to protect provenance.
  2. Feature toggles can separate deployment from activation while limiting branch divergence.
  3. Frequent integration into a protected trunk reduces accumulated merge risk.
  4. Hotfix processes must propagate tested corrections to every maintained affected line.

Explanation

Correct Answer

A:

History rewriting on shared branches requires explicit governance to protect provenance. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Review reflogs, branch protections, merge strategy and downstream consumers. An appropriate controlled response is: Restrict force pushes on shared branches and use approved non-destructive integration.

Incorrect Answers

B:

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: History rewriting on shared branches requires explicit governance to protect provenance. The crucial distinction is: History rewriting on shared branches requires explicit governance to protect provenance.

C:

Frequent integration into a protected trunk reduces accumulated merge risk. 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 principle is: History rewriting on shared branches requires explicit governance to protect provenance. The crucial distinction is: History rewriting on shared branches requires explicit governance to protect provenance.

D:

Hotfix processes must propagate tested corrections to every maintained affected line. This would address a different situation, such as: A critical production fix is committed to an old release branch and never reaches the mainline, so the bug returns next month. In the present case, the most directly relevant principle is: History rewriting on shared branches requires explicit governance to protect provenance. The crucial distinction is: History rewriting on shared branches requires explicit governance to protect provenance.

Question 654

A Microsoft DevOps team is addressing: Pipeline duration grows because a flaky test is retried eight times but the dashboard still shows every build as green. Which TWO complementary actions should be taken? Select TWO answers.

  1. Inspect run timelines, environment approval events and task durations.
  2. Review alert subscriptions, team ownership, failure history and escalation paths.
  3. Configure environment-level approvals and checks outside untrusted YAML modification paths.
  4. Track flaky test metrics and assign root-cause fixes rather than unconditional retries.
  5. Inspect retry counts, per-test historical failure rates, queue and execution time.

Explanation

Correct Answers

D:

Track flaky test metrics and assign root-cause fixes rather than unconditional retries. This supplies the controlled implementation needed for the scenario. Its complementary step is: Inspect retry counts, per-test historical failure rates, queue and execution time. Together they address: Pipeline health should surface flaky failures and retry overhead separately from success.

E:

Inspect retry counts, per-test historical failure rates, queue and execution time. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Track flaky test metrics and assign root-cause fixes rather than unconditional retries. Together they address: Pipeline health should surface flaky failures and retry overhead separately from success.

Incorrect Answers

A:

Inspect run timelines, environment approval events and task durations. This concerns a different DevOps situation: An approval gate makes a release appear to take two hours, but actual deployment work takes five minutes. This case instead requires both a targeted investigation (Inspect retry counts, per-test historical failure rates, queue and execution time.) and a controlled change (Track flaky test metrics and assign root-cause fixes rather than unconditional retries.).

B:

Review alert subscriptions, team ownership, failure history and escalation paths. This concerns a different DevOps situation: A pipeline reports repeated deployment failures but no team receives notifications because the original owner left the company. This case instead requires both a targeted investigation (Inspect retry counts, per-test historical failure rates, queue and execution time.) and a controlled change (Track flaky test metrics and assign root-cause fixes rather than unconditional retries.).

C:

Configure environment-level approvals and checks outside untrusted YAML modification paths. This concerns a different DevOps situation: After migrating to YAML, a production release skips mandatory human approval that existed in a classic release stage. This case instead requires both a targeted investigation (Inspect retry counts, per-test historical failure rates, queue and execution time.) and a controlled change (Track flaky test metrics and assign root-cause fixes rather than unconditional retries.).

Question 655

An engineering design review identifies: An Azure Functions staging slot unexpectedly processes production queue messages before its swap because a trigger configuration was not isolated. Which shortcut should the team MOST specifically avoid for this case?

  1. Point all staging functions to production service bus queues for realism.
  2. Use a hardcoded true flag in production while testing is incomplete.
  3. Disable readiness checks so Kubernetes reports every new pod healthy immediately.
  4. Copy the secret into a container layer to prevent future runtime changes.

Explanation

Correct Answer

A:

Point all staging functions to production service bus queues for realism. This shortcut directly undermines the stated control or workflow. A safer action is: Use slot-sticky settings and suppress staging triggers until explicitly authorized. Explanation: Slot deployment must isolate environment-specific connection and trigger settings.

Incorrect Answers

B:

Use a hardcoded true flag in production while testing is incomplete. This would address a different situation, such as: A half-finished payment feature accidentally activates immediately when its code merges into main. In the present case, the most directly relevant unsafe shortcut is: Point all staging functions to production service bus queues for realism. The crucial distinction is: Slot deployment must isolate environment-specific connection and trigger settings.

C:

Disable readiness checks so Kubernetes reports every new pod healthy immediately. 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 unsafe shortcut is: Point all staging functions to production service bus queues for realism. The crucial distinction is: Slot deployment must isolate environment-specific connection and trigger settings.

D:

Copy the secret into a container layer to prevent future runtime changes. 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 unsafe shortcut is: Point all staging functions to production service bus queues for realism. The crucial distinction is: Slot deployment must isolate environment-specific connection and trigger settings.

Question 656

An engineering design review identifies: An application release references a database secret version that was deleted during automatic rotation, causing downtime. Which shortcut should the team MOST specifically avoid for this case?

  1. Make the configuration container public so all build agents can retrieve it.
  2. Trust every branch and fork workflow to make experimentation easier.
  3. Store the private signing key in a public repository subfolder named secrets.
  4. Delete the active secret version before dependent services refresh credentials.

Explanation

Correct Answer

D:

Delete the active secret version before dependent services refresh credentials. This shortcut directly undermines the stated control or workflow. A safer action is: Adopt a tested version-management and rotation workflow with rollback compatibility. Explanation: Secret rotation must coordinate client update, version retention and recovery.

Incorrect Answers

A:

Make the configuration container public so all build agents can retrieve it. 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 unsafe shortcut is: Delete the active secret version before dependent services refresh credentials. The crucial distinction is: Secret rotation must coordinate client update, version retention and recovery.

B:

Trust every branch and fork workflow to make experimentation easier. This would address a different situation, such as: A federated Azure identity accepts tokens from any branch in a public GitHub repository and can deploy production resources. In the present case, the most directly relevant unsafe shortcut is: Delete the active secret version before dependent services refresh credentials. The crucial distinction is: Secret rotation must coordinate client update, version retention and recovery.

C:

Store the private signing key in a public repository subfolder named secrets. 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 unsafe shortcut is: Delete the active secret version before dependent services refresh credentials. The crucial distinction is: Secret rotation must coordinate client update, version retention and recovery.

Question 657

An Azure DevOps engineering team evaluates this condition: AKS pods restart frequently but the team captures only the last running pod's console output. Which DevOps principle BEST explains the underlying weakness?

  1. Workflow insight metrics should distinguish failed jobs, timing and relevant branches.
  2. Operational monitoring must include service request errors, latency and availability, not just capacity.
  3. Operational monitoring should route significant pipeline failures to accountable responders.
  4. Container observability should preserve workload logs and restart context centrally.

Explanation

Correct Answer

D:

Container observability should preserve workload logs and restart context centrally. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Inspect Azure Monitor Container Insights, pod events, collection coverage and retention. An appropriate controlled response is: Enable supported AKS container telemetry with resource labels and actionable alerts.

Incorrect Answers

A:

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: Container observability should preserve workload logs and restart context centrally. The crucial distinction is: Container observability should preserve workload logs and restart context centrally.

B:

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: Container observability should preserve workload logs and restart context centrally. The crucial distinction is: Container observability should preserve workload logs and restart context centrally.

C:

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: Container observability should preserve workload logs and restart context centrally. The crucial distinction is: Container observability should preserve workload logs and restart context centrally.

Question 658

Before changing the pipeline or service, engineers find: A test task writes its service principal secret into verbose logs on every failing run. Which evidence should the engineer inspect FIRST?

  1. Inspect global.json, agent image capabilities, use-dotnet steps and restore failures.
  2. Review load profile, Azure Load Testing results, request percentiles and capacity metrics.
  3. Inspect connection policy, test-stage service connections, database logs and environment settings.
  4. Inspect task arguments, secret masking, logs, scope and token issuance.

Explanation

Correct Answer

D:

Inspect task arguments, secret masking, logs, scope and token issuance. This directly checks the uncertain behavior or control before changing production. Testing pipelines must avoid exposing credentials while preserving useful diagnostics. The resulting targeted action is: Move test credentials into a protected secret store and suppress token output.

Incorrect Answers

A:

Inspect global.json, agent image capabilities, use-dotnet steps and restore failures. 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 evidence is: Inspect task arguments, secret masking, logs, scope and token issuance. The crucial distinction is: Testing pipelines must avoid exposing credentials while preserving useful diagnostics.

B:

Review load profile, Azure Load Testing results, request percentiles and capacity metrics. This would address a different situation, such as: An API passes functional tests for one user but violates latency objectives under 1,000 concurrent clients. In the present case, the most directly relevant evidence is: Inspect task arguments, secret masking, logs, scope and token issuance. The crucial distinction is: Testing pipelines must avoid exposing credentials while preserving useful diagnostics.

C:

Inspect connection policy, test-stage service connections, database logs and environment settings. This would address a different situation, such as: Service unit tests pass but integration fails because Azure SQL connectivity differs between staging and production. In the present case, the most directly relevant evidence is: Inspect task arguments, secret masking, logs, scope and token issuance. The crucial distinction is: Testing pipelines must avoid exposing credentials while preserving useful diagnostics.

Question 659

Before changing the pipeline or service, engineers find: A database credential is removed from the latest Git commit but remains visible in old revisions. Which evidence should the engineer inspect FIRST?

  1. Review code duplication, package provenance, semver constraints and release history.
  2. Inspect reflog entries, commit IDs, branch history and garbage collection status.
  3. Inspect repository history, leaked secret versions, access logs and rotation status.
  4. Inspect archive settings, organization memberships, permissions and recent pushes.

Explanation

Correct Answer

C:

Inspect repository history, leaked secret versions, access logs and rotation status. This directly checks the uncertain behavior or control before changing production. Removing a secret from the latest tree does not revoke credentials or erase history. The resulting targeted action is: Revoke or rotate the credential, restrict exposure and perform controlled history remediation if necessary.

Incorrect Answers

A:

Review code duplication, package provenance, semver constraints and release history. This would address a different situation, such as: Two separate repositories copy and edit a common authentication library independently, producing inconsistent fixes. In the present case, the most directly relevant evidence is: Inspect repository history, leaked secret versions, access logs and rotation status. The crucial distinction is: Removing a secret from the latest tree does not revoke credentials or erase history.

B:

Inspect reflog entries, commit IDs, branch history and garbage collection status. This would address a different situation, such as: A developer accidentally removes an important local commit during an interactive rebase, but it is still reachable from Git reflog. In the present case, the most directly relevant evidence is: Inspect repository history, leaked secret versions, access logs and rotation status. The crucial distinction is: Removing a secret from the latest tree does not revoke credentials or erase history.

D:

Inspect archive settings, organization memberships, permissions and recent pushes. This would address a different situation, such as: An archived security-sensitive repository remains writable by former project members and receives unreviewed commits. In the present case, the most directly relevant evidence is: Inspect repository history, leaked secret versions, access logs and rotation status. The crucial distinction is: Removing a secret from the latest tree does not revoke credentials or erase history.

Question 660

Before changing the pipeline or service, engineers find: A build must reach private package infrastructure inaccessible from Microsoft-hosted agents. Which evidence should the engineer inspect FIRST?

  1. Inspect library permissions, pipeline authorization, variable source and consumer identities.
  2. Inspect firewall paths, private DNS, hosted-agent restrictions and required build tools.
  3. Review stage condition expressions, dependency status and test results.
  4. Inspect endpoint authorization, service principal federation subject and Azure RBAC scope.

Explanation

Correct Answer

B:

Inspect firewall paths, private DNS, hosted-agent restrictions and required build tools. This directly checks the uncertain behavior or control before changing production. Agent placement should satisfy network access and security constraints without overprivilege. The resulting targeted action is: Deploy a governed self-hosted Azure Pipelines agent with controlled network connectivity.

Incorrect Answers

A:

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 firewall paths, private DNS, hosted-agent restrictions and required build tools. The crucial distinction is: Agent placement should satisfy network access and security constraints without overprivilege.

C:

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 firewall paths, private DNS, hosted-agent restrictions and required build tools. The crucial distinction is: Agent placement should satisfy network access and security constraints without overprivilege.

D:

Inspect endpoint authorization, service principal federation subject and Azure RBAC scope. This would address a different situation, such as: An Azure DevOps pipeline's Azure Resource Manager service connection fails each quarter when its client secret expires. In the present case, the most directly relevant evidence is: Inspect firewall paths, private DNS, hosted-agent restrictions and required build tools. The crucial distinction is: Agent placement should satisfy network access and security constraints without overprivilege.

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