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 36

Question 350

An Azure DevOps engineering team evaluates this condition: A frontend release calls an API endpoint introduced only by a backend deployment scheduled later, breaking all sessions. Which DevOps principle BEST explains the underlying weakness?

  1. Blue-green rollout must preserve shared database compatibility during transition.
  2. Cross-service deployment order must respect compatibility and dependency contracts.
  3. Database deployment scripts should be repeatable or safely versioned with migration state.
  4. Rolling update policies should preserve minimum ready capacity during replacement.

Explanation

Correct Answer

B:

Cross-service deployment order must respect compatibility and dependency contracts. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Review component versions, release dependencies, API contracts and pipeline stage graph. An appropriate controlled response is: Use backward-compatible API rollout and explicit dependent stage ordering.

Incorrect Answers

A:

Blue-green rollout must preserve shared database compatibility during transition. This would address a different situation, such as: An App Service slot swap puts new code online while old instances still write to a shared Azure SQL schema. In the present case, the most directly relevant principle is: Cross-service deployment order must respect compatibility and dependency contracts. The crucial distinction is: Cross-service deployment order must respect compatibility and dependency contracts.

C:

Database deployment scripts should be repeatable or safely versioned with migration state. 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 principle is: Cross-service deployment order must respect compatibility and dependency contracts. The crucial distinction is: Cross-service deployment order must respect compatibility and dependency contracts.

D:

Rolling update policies should preserve minimum ready capacity during replacement. 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 principle is: Cross-service deployment order must respect compatibility and dependency contracts. The crucial distinction is: Cross-service deployment order must respect compatibility and dependency contracts.

Question 351

Before changing the pipeline or service, engineers find: A deployment removes an application instance while it has open customer sessions, causing dropped purchases. Which evidence should the engineer inspect FIRST?

  1. Inspect endpoint groups, telemetry, rollout schedule and early-ring feedback.
  2. Inspect ACR digest, release manifest, build provenance and tag permissions.
  3. Review artifact retention, release manifest, service health signals and restoration test.
  4. Inspect load balancer deregistration delay, pod termination and request lifetimes.

Explanation

Correct Answer

D:

Inspect load balancer deregistration delay, pod termination and request lifetimes. This directly checks the uncertain behavior or control before changing production. Rolling replacement should account for connection draining and readiness transitions. The resulting targeted action is: Configure graceful shutdown and appropriate draining before removing active targets.

Incorrect Answers

A:

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: Inspect load balancer deregistration delay, pod termination and request lifetimes. The crucial distinction is: Rolling replacement should account for connection draining and readiness transitions.

B:

Inspect ACR digest, release manifest, build provenance and tag permissions. 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 evidence is: Inspect load balancer deregistration delay, pod termination and request lifetimes. The crucial distinction is: Rolling replacement should account for connection draining and readiness transitions.

C:

Review artifact retention, release manifest, service health signals and restoration test. 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 evidence is: Inspect load balancer deregistration delay, pod termination and request lifetimes. The crucial distinction is: Rolling replacement should account for connection draining and readiness transitions.

Question 352

Before changing the pipeline or service, engineers find: A production deployment depends on a time-limited Azure Policy exemption that was never documented or reviewed. Which evidence should the engineer inspect FIRST?

  1. Inspect policy assignment, exemption resource metadata, business rationale and expiry.
  2. Inspect environment provisioning logs, resource tags, TTL and cleanup policies.
  3. Inspect environment definitions, project catalog, role assignments and teardown process.
  4. Inspect policy assignment parameters, effect, scope and compliance states.

Explanation

Correct Answer

A:

Inspect policy assignment, exemption resource metadata, business rationale and expiry. This directly checks the uncertain behavior or control before changing production. Policy exemptions need justified owner approval, scope and expiration. The resulting targeted action is: Create a governed scoped exemption with an owner and expiry or redesign for compliance.

Incorrect Answers

B:

Inspect environment provisioning logs, resource tags, TTL and cleanup policies. 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 evidence is: Inspect policy assignment, exemption resource metadata, business rationale and expiry. The crucial distinction is: Policy exemptions need justified owner approval, scope and expiration.

C:

Inspect environment definitions, project catalog, role assignments and teardown process. This would address a different situation, such as: Developers need consistent temporary test environments, but each manually provisions expensive subscriptions and forgets cleanup. In the present case, the most directly relevant evidence is: Inspect policy assignment, exemption resource metadata, business rationale and expiry. The crucial distinction is: Policy exemptions need justified owner approval, scope and expiration.

D:

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 policy assignment, exemption resource metadata, business rationale and expiry. The crucial distinction is: Policy exemptions need justified owner approval, scope and expiration.

Question 353

After implementing the change, the team verifies: Verbose diagnostic logging starts printing deployment tokens after a new task version update. Which result would BEST demonstrate that the issue is corrected?

  1. A production run uses exactly the tested artifact regardless of newer branch builds.
  2. A rollback exercise retrieves its signed prior image while obsolete builds expire.
  3. A representative debug run completes without exposing a valid credential.
  4. Maintained releases build correctly after old feed access is withdrawn.

Explanation

Correct Answer

C:

A representative debug run completes without exposing a valid credential. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Remove token emission and enforce safe logging with secret scanning of pipeline output. Pipeline monitoring must detect credential disclosure while retaining useful logs.

Incorrect Answers

A:

A production run uses exactly the tested artifact regardless of newer branch builds. This would address a different situation, such as: A production stage sometimes downloads an artifact from a different branch due to an ambiguous pipeline resource definition. In the present case, the most directly relevant verification is: A representative debug run completes without exposing a valid credential. The crucial distinction is: Pipeline monitoring must detect credential disclosure while retaining useful logs.

B:

A rollback exercise retrieves its signed prior image while obsolete builds expire. This would address a different situation, such as: A cost-reduction retention rule deletes the last known-good container image before the rollback period ends. In the present case, the most directly relevant verification is: A representative debug run completes without exposing a valid credential. The crucial distinction is: Pipeline monitoring must detect credential disclosure while retaining useful logs.

D:

Maintained releases build correctly after old feed access is withdrawn. This would address a different situation, such as: A package registry is scheduled for migration, but retired feeds still contain dependencies used by maintained builds. In the present case, the most directly relevant verification is: A representative debug run completes without exposing a valid credential. The crucial distinction is: Pipeline monitoring must detect credential disclosure while retaining useful logs.

Question 354

After implementing the change, the team verifies: A GitHub self-hosted runner accepts workflows from untrusted forks and shares its workspace with production credentials. Which result would BEST demonstrate that the issue is corrected?

  1. A job restores the private dependency while agent access remains restricted.
  2. A downstream task receives the intended endpoint from the current successful run.
  3. An untrusted fork cannot execute on the privileged production runner.
  4. A production deployment succeeds with a short-lived token and no stored client secret.

Explanation

Correct Answer

C:

An untrusted fork cannot execute on the privileged production runner. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Restrict runner access to trusted workflows and use ephemeral isolated runners for sensitive jobs. Self-hosted runners require trust boundaries and workload-specific isolation.

Incorrect Answers

A:

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: An untrusted fork cannot execute on the privileged production runner. The crucial distinction is: Self-hosted runners require trust boundaries and workload-specific isolation.

B:

A downstream task receives the intended endpoint from the current successful run. This would address a different situation, such as: A downstream stage cannot determine the storage endpoint created by an infrastructure provisioning stage. In the present case, the most directly relevant verification is: An untrusted fork cannot execute on the privileged production runner. The crucial distinction is: Self-hosted runners require trust boundaries and workload-specific isolation.

D:

A production deployment succeeds with a short-lived token and no stored client secret. This would address a different situation, such as: A GitHub Actions release stores a long-lived Azure service principal password in repository secrets for every deployment. In the present case, the most directly relevant verification is: An untrusted fork cannot execute on the privileged production runner. The crucial distinction is: Self-hosted runners require trust boundaries and workload-specific isolation.

Question 355

An Azure DevOps engineering team evaluates this condition: A pipeline caches packages under one global key even after lockfile changes, causing inconsistent builds. Which DevOps principle BEST explains the underlying weakness?

  1. Cache keys must include dependency inputs so old artifacts cannot silently corrupt builds.
  2. Self-hosted agent maintenance requires bounded workspace cleanup and cache retention.
  3. Artifact retention needs business-approved rollback and forensic windows.
  4. Migration must preserve policy-enforced approvals through supported protected resources.

Explanation

Correct Answer

A:

Cache keys must include dependency inputs so old artifacts cannot silently corrupt builds. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Review cache key configuration, lockfile hash, package restore logs and unexpected results. An appropriate controlled response is: Use dependency-aware cache keys and safe restore fallback behavior.

Incorrect Answers

B:

Self-hosted agent maintenance requires bounded workspace cleanup and cache retention. This would address a different situation, such as: A self-hosted agent fails after months because workspace and Docker layer caches exhaust disk space. In the present case, the most directly relevant principle is: Cache keys must include dependency inputs so old artifacts cannot silently corrupt builds. The crucial distinction is: Cache keys must include dependency inputs so old artifacts cannot silently corrupt builds.

C:

Artifact retention needs business-approved rollback and forensic windows. This would address a different situation, such as: A cost-reduction retention rule deletes the last known-good container image before the rollback period ends. In the present case, the most directly relevant principle is: Cache keys must include dependency inputs so old artifacts cannot silently corrupt builds. The crucial distinction is: Cache keys must include dependency inputs so old artifacts cannot silently corrupt builds.

D:

Migration must preserve policy-enforced approvals through supported protected resources. This would address a different situation, such as: After migrating to YAML, a production release skips mandatory human approval that existed in a classic release stage. In the present case, the most directly relevant principle is: Cache keys must include dependency inputs so old artifacts cannot silently corrupt builds. The crucial distinction is: Cache keys must include dependency inputs so old artifacts cannot silently corrupt builds.

Question 356

An Azure DevOps engineering team evaluates this condition: A release adds a non-null column while old and new application versions temporarily operate together. Which DevOps principle BEST explains the underlying weakness?

  1. Test execution should be isolated from production identities and destructive resources.
  2. Database deployment tests should validate backward compatibility throughout rollout.
  3. Coverage alone does not establish assertion quality or defect-detection strength.
  4. Performance testing should compare measured changes against approved regression budgets.

Explanation

Correct Answer

B:

Database deployment tests should validate backward compatibility throughout rollout. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Inspect schema migration scripts, live app versions, default values and rollback plans. An appropriate controlled response is: Test expand-and-contract schema changes against concurrent old and new application instances.

Incorrect Answers

A:

Test execution should be isolated from production identities and destructive resources. This would address a different situation, such as: A test pipeline reuses a production storage account and occasionally deletes customer fixtures. In the present case, the most directly relevant principle is: Database deployment tests should validate backward compatibility throughout rollout. The crucial distinction is: Database deployment tests should validate backward compatibility throughout rollout.

C:

Coverage alone does not establish assertion quality or defect-detection strength. 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 principle is: Database deployment tests should validate backward compatibility throughout rollout. The crucial distinction is: Database deployment tests should validate backward compatibility throughout rollout.

D:

Performance testing should compare measured changes against approved regression budgets. This would address a different situation, such as: An API's new release increases CPU costs by 60%, but the load test reports green because no baseline exists. In the present case, the most directly relevant principle is: Database deployment tests should validate backward compatibility throughout rollout. The crucial distinction is: Database deployment tests should validate backward compatibility throughout rollout.

Question 357

An Azure DevOps engineering team evaluates this condition: Pipeline duration grows because a flaky test is retried eight times but the dashboard still shows every build as green. Which DevOps principle BEST explains the underlying weakness?

  1. Retention policy should cover compliance evidence, release logs and artifact lifecycle.
  2. Pipeline health should surface flaky failures and retry overhead separately from success.
  3. Pipeline operational health needs assigned responders and maintained notification routing.
  4. Pipelines should declare supported tooling instead of depending on incidental agent image contents.

Explanation

Correct Answer

B:

Pipeline health should surface flaky failures and retry overhead separately from success. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Inspect retry counts, per-test historical failure rates, queue and execution time. An appropriate controlled response is: Track flaky test metrics and assign root-cause fixes rather than unconditional retries.

Incorrect Answers

A:

Retention policy should cover compliance evidence, release logs and artifact lifecycle. This would address a different situation, such as: An organization deletes pipeline logs within a day even though deployment approvals must be auditable for a year. In the present case, the most directly relevant principle is: Pipeline health should surface flaky failures and retry overhead separately from success. The crucial distinction is: Pipeline health should surface flaky failures and retry overhead separately from success.

C:

Pipeline operational health needs assigned responders and maintained notification routing. This would address a different situation, such as: A pipeline reports repeated deployment failures but no team receives notifications because the original owner left the company. In the present case, the most directly relevant principle is: Pipeline health should surface flaky failures and retry overhead separately from success. The crucial distinction is: Pipeline health should surface flaky failures and retry overhead separately from success.

D:

Pipelines should declare supported tooling instead of depending on incidental agent image contents. This would address a different situation, such as: Builds fail after an Azure Pipelines hosted image update because a legacy runtime was implicitly available before. In the present case, the most directly relevant principle is: Pipeline health should surface flaky failures and retry overhead separately from success. The crucial distinction is: Pipeline health should surface flaky failures and retry overhead separately from success.

Question 358

A Microsoft DevOps team is addressing: A monorepo pipeline skips tests for a common authentication library because its paths filter only includes one service folder. Which TWO complementary actions should be taken? Select TWO answers.

  1. Inspect GitHub workflow permissions, Entra federated identity credentials, scopes and token audience.
  2. Limit production deployment to permitted protected refs and validated build artifacts.
  3. Expand path filters to cover the service and relevant shared library changes.
  4. Define explicit stage dependencies and artifact handoffs in the YAML pipeline.
  5. Review folder ownership, trigger patterns, dependency graph and missed commits.

Explanation

Correct Answers

C:

Expand path filters to cover the service and relevant shared library changes. This supplies the controlled implementation needed for the scenario. Its complementary step is: Review folder ownership, trigger patterns, dependency graph and missed commits. Together they address: Path filters must include shared dependencies required by the target service.

E:

Review folder ownership, trigger patterns, dependency graph and missed commits. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Expand path filters to cover the service and relevant shared library changes. Together they address: Path filters must include shared dependencies required by the target service.

Incorrect Answers

A:

Inspect GitHub workflow permissions, Entra federated identity credentials, scopes and token audience. 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 (Review folder ownership, trigger patterns, dependency graph and missed commits.) and a controlled change (Expand path filters to cover the service and relevant shared library changes.).

B:

Limit production deployment to permitted protected refs and validated build artifacts. This concerns a different DevOps situation: A deployment pipeline runs on feature-branch pushes despite a policy requiring releases only from protected main. This case instead requires both a targeted investigation (Review folder ownership, trigger patterns, dependency graph and missed commits.) and a controlled change (Expand path filters to cover the service and relevant shared library changes.).

D:

Define explicit stage dependencies and artifact handoffs in the YAML pipeline. This concerns a different DevOps situation: A deployment stage starts before the packaging stage publishes an artifact because stages are configured independently. This case instead requires both a targeted investigation (Review folder ownership, trigger patterns, dependency graph and missed commits.) and a controlled change (Expand path filters to cover the service and relevant shared library changes.).

Question 359

The DevOps team must resolve this situation: Hundreds of nightly builds run when source code is unchanged, consuming expensive hosted parallel minutes. Which engineering action is MOST appropriate?

  1. Run independent tests in parallel within the approved concurrency and resource budget.
  2. Introduce relevant path/branch conditions and appropriately scheduled validation.
  3. Remove token emission and enforce safe logging with secret scanning of pipeline output.
  4. Right-size authorized agent capacity and prioritize critical release jobs.

Explanation

Correct Answer

B:

Introduce relevant path/branch conditions and appropriately scheduled validation. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: An unchanged low-risk repository does not trigger redundant builds while required scans still run. Pipeline cost optimization should remove redundant executions without weakening required checks.

Incorrect Answers

A:

Run independent tests in parallel within the approved concurrency and resource budget. This would address a different situation, such as: A large build spends most of its time serially running three independent test suites. In the present case, the most directly relevant engineering action is: Introduce relevant path/branch conditions and appropriately scheduled validation. The crucial distinction is: Pipeline cost optimization should remove redundant executions without weakening required checks.

C:

Remove token emission and enforce safe logging with secret scanning of pipeline output. This would address a different situation, such as: Verbose diagnostic logging starts printing deployment tokens after a new task version update. In the present case, the most directly relevant engineering action is: Introduce relevant path/branch conditions and appropriately scheduled validation. The crucial distinction is: Pipeline cost optimization should remove redundant executions without weakening required checks.

D:

Right-size authorized agent capacity and prioritize critical release jobs. This would address a different situation, such as: A pipeline runs quickly on an agent but waits 70 minutes in queue due to a limited self-hosted pool. In the present case, the most directly relevant engineering action is: Introduce relevant path/branch conditions and appropriately scheduled validation. The crucial distinction is: Pipeline cost optimization should remove redundant executions without weakening required checks.

Question 360

Before changing the pipeline or service, engineers find: A cross-platform CLI is built only on Windows and fails later when customers run it on Linux. Which evidence should the engineer inspect FIRST?

  1. Inspect supported OS/runtime targets, build matrix and test coverage.
  2. Inspect deployment jobs, environment references, resource checks and service connection access.
  3. Inspect task output names, stage dependencies and variable references.
  4. Inspect YAML trigger filters, branch protections and deployment conditions.

Explanation

Correct Answer

A:

Inspect supported OS/runtime targets, build matrix and test coverage. This directly checks the uncertain behavior or control before changing production. Matrix job strategies can validate supported platforms from one pipeline definition. The resulting targeted action is: Create a controlled matrix over required operating systems and runtime versions.

Incorrect Answers

B:

Inspect deployment jobs, environment references, resource checks and service connection access. This would address a different situation, such as: A YAML pipeline references a production environment but deploys through an unprotected job that never uses the environment resource. In the present case, the most directly relevant evidence is: Inspect supported OS/runtime targets, build matrix and test coverage. The crucial distinction is: Matrix job strategies can validate supported platforms from one pipeline definition.

C:

Inspect task output names, stage dependencies and variable references. This would address a different situation, such as: A downstream stage cannot determine the storage endpoint created by an infrastructure provisioning stage. In the present case, the most directly relevant evidence is: Inspect supported OS/runtime targets, build matrix and test coverage. The crucial distinction is: Matrix job strategies can validate supported platforms from one pipeline definition.

D:

Inspect YAML trigger filters, branch protections and deployment conditions. This would address a different situation, such as: A deployment pipeline runs on feature-branch pushes despite a policy requiring releases only from protected main. In the present case, the most directly relevant evidence is: Inspect supported OS/runtime targets, build matrix and test coverage. The crucial distinction is: Matrix job strategies can validate supported platforms from one pipeline definition.

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