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 37

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.

Question 361

After implementing the change, the team verifies: A legacy fleet uses Azure Automation State Configuration but receives no reliable reports of drift or node registration. Which result would BEST demonstrate that the issue is corrected?

  1. A new prohibited test storage deployment is rejected while approved configurations succeed.
  2. Running the same deployment twice produces no duplicate workspaces.
  3. A deliberately altered setting triggers the intended compliance detection and correction process.
  4. A deliberately broad assignment fails the CI gate before deployment.

Explanation

Correct Answer

C:

A deliberately altered setting triggers the intended compliance detection and correction process. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Review the legacy DSC setup and plan a supported configuration management transition or remediation. Desired state governance needs verified registration, pull frequency and compliance feedback.

Incorrect Answers

A:

A new prohibited test storage deployment is rejected while approved configurations succeed. 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 verification is: A deliberately altered setting triggers the intended compliance detection and correction process. The crucial distinction is: Desired state governance needs verified registration, pull frequency and compliance feedback.

B:

Running the same deployment twice produces no duplicate workspaces. This would address a different situation, such as: A shared Bicep deployment creates a new Log Analytics workspace on each run due to non-deterministic resource names. In the present case, the most directly relevant verification is: A deliberately altered setting triggers the intended compliance detection and correction process. The crucial distinction is: Desired state governance needs verified registration, pull frequency and compliance feedback.

D:

A deliberately broad assignment fails the CI gate before deployment. This would address a different situation, such as: A Bicep pipeline deploys wildcard role assignments despite a known rule requiring narrowly scoped access. In the present case, the most directly relevant verification is: A deliberately altered setting triggers the intended compliance detection and correction process. The crucial distinction is: Desired state governance needs verified registration, pull frequency and compliance feedback.

Question 362

A Microsoft DevOps team is addressing: A deployment job fails but the failure is not associated with the GitHub issue that requested the release. Which TWO complementary actions should be taken? Select TWO answers.

  1. Link dependent work items across teams and use delivery plans to visualize blockers.
  2. Configure work-item linking and automatic build/deployment associations in Azure Boards.
  3. Update related GitHub Issues from protected workflow events with release status and error context.
  4. Use a structured GitHub Issues intake process with ownership, labels and linked fixes.
  5. Review workflow run identities, issue references, failure events and notification rules.

Explanation

Correct Answers

C:

Update related GitHub Issues from protected workflow events with release status and error context. This supplies the controlled implementation needed for the scenario. Its complementary step is: Review workflow run identities, issue references, failure events and notification rules. Together they address: Closed-loop delivery needs automated status updates connected to the requesting work.

E:

Review workflow run identities, issue references, failure events and notification rules. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Update related GitHub Issues from protected workflow events with release status and error context. Together they address: Closed-loop delivery needs automated status updates connected to the requesting work.

Incorrect Answers

A:

Link dependent work items across teams and use delivery plans to visualize blockers. This concerns a different DevOps situation: A platform dependency blocks three application teams, but each Azure Boards team tracks a separate unrelated task. This case instead requires both a targeted investigation (Review workflow run identities, issue references, failure events and notification rules.) and a controlled change (Update related GitHub Issues from protected workflow events with release status and error context.).

B:

Configure work-item linking and automatic build/deployment associations in Azure Boards. This concerns a different DevOps situation: Azure Boards shows completed user stories, but there is no way to identify the commits and deployments delivering each story. This case instead requires both a targeted investigation (Review workflow run identities, issue references, failure events and notification rules.) and a controlled change (Update related GitHub Issues from protected workflow events with release status and error context.).

D:

Use a structured GitHub Issues intake process with ownership, labels and linked fixes. This concerns a different DevOps situation: Customer-reported bugs arrive in chat messages and are never consistently recorded for the development team. This case instead requires both a targeted investigation (Review workflow run identities, issue references, failure events and notification rules.) and a controlled change (Update related GitHub Issues from protected workflow events with release status and error context.).

Question 363

An engineering design review identifies: A business rule has 100% line coverage, but tests still pass when its comparison operator is reversed. Which shortcut should the team MOST specifically avoid for this case?

  1. Use an HTTP 200 response from the homepage as the only release test.
  2. Trust developers to manually notice production resource names during test runs.
  3. Insert a fixed 30-second sleep instead of checking actual readiness.
  4. Increase line coverage by executing statements without asserting their results.

Explanation

Correct Answer

D:

Increase line coverage by executing statements without asserting their results. This shortcut directly undermines the stated control or workflow. A safer action is: Improve boundary-value assertions and use mutation or targeted fault tests as appropriate. Explanation: Coverage alone does not establish assertion quality or defect-detection strength.

Incorrect Answers

A:

Use an HTTP 200 response from the homepage as the only release test. This would address a different situation, such as: A payment workflow completes an HTTP health check but fails after users submit the checkout form. In the present case, the most directly relevant unsafe shortcut is: Increase line coverage by executing statements without asserting their results. The crucial distinction is: Coverage alone does not establish assertion quality or defect-detection strength.

B:

Trust developers to manually notice production resource names during test runs. 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 unsafe shortcut is: Increase line coverage by executing statements without asserting their results. The crucial distinction is: Coverage alone does not establish assertion quality or defect-detection strength.

C:

Insert a fixed 30-second sleep instead of checking actual readiness. This would address a different situation, such as: A pipeline starts integration tests before deploying the dependent database migration, causing intermittent failures. In the present case, the most directly relevant unsafe shortcut is: Increase line coverage by executing statements without asserting their results. The crucial distinction is: Coverage alone does not establish assertion quality or defect-detection strength.

Question 364

After implementing the change, the team verifies: A GitHub Actions workflow receives 403 when installing a private package owned by another organization repository. Which result would BEST demonstrate that the issue is corrected?

  1. Two same-day builds remain separately traceable to their source commits.
  2. A fresh workflow installs the private package without a long-lived personal token.
  3. Two clean builds of the same commit restore an identical dependency graph.
  4. A clean CI installation resolves the audited transitive versions.

Explanation

Correct Answer

B:

A fresh workflow installs the private package without a long-lived personal token. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Authorize the consuming repository and assign minimum packages:read access. Private package access requires scoped workflow identity and authorized repository permissions.

Incorrect Answers

A:

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: A fresh workflow installs the private package without a long-lived personal token. The crucial distinction is: Private package access requires scoped workflow identity and authorized repository permissions.

C:

Two clean builds of the same commit restore an identical dependency graph. This would address a different situation, such as: The same Git commit restores different NuGet package versions one week apart and intermittently fails tests. In the present case, the most directly relevant verification is: A fresh workflow installs the private package without a long-lived personal token. The crucial distinction is: Private package access requires scoped workflow identity and authorized repository permissions.

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: A fresh workflow installs the private package without a long-lived personal token. The crucial distinction is: Private package access requires scoped workflow identity and authorized repository permissions.

Question 365

Before changing the pipeline or service, engineers find: A pipeline team wants 50 more hosted agent slots even though bottlenecks are serial manual approvals and limited integration environments. Which evidence should the engineer inspect FIRST?

  1. Inspect timeline, agent saturation, external dependencies and budget.
  2. Review alert subscriptions, team ownership, failure history and escalation paths.
  3. Inspect release references, retention rules, ACR manifests and recovery requirements.
  4. Inspect retry counts, per-test historical failure rates, queue and execution time.

Explanation

Correct Answer

A:

Inspect timeline, agent saturation, external dependencies and budget. This directly checks the uncertain behavior or control before changing production. Capacity changes should be justified by measured critical-path improvements and cost. The resulting targeted action is: Remove serial bottlenecks or right-size jobs before purchasing concurrency.

Incorrect Answers

B:

Review alert subscriptions, team ownership, failure history and escalation paths. 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 evidence is: Inspect timeline, agent saturation, external dependencies and budget. The crucial distinction is: Capacity changes should be justified by measured critical-path improvements and cost.

C:

Inspect release references, retention rules, ACR manifests and recovery requirements. 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 evidence is: Inspect timeline, agent saturation, external dependencies and budget. The crucial distinction is: Capacity changes should be justified by measured critical-path improvements and cost.

D:

Inspect retry counts, per-test historical failure rates, queue and execution time. This would address a different situation, such as: Pipeline duration grows because a flaky test is retried eight times but the dashboard still shows every build as green. In the present case, the most directly relevant evidence is: Inspect timeline, agent saturation, external dependencies and budget. The crucial distinction is: Capacity changes should be justified by measured critical-path improvements and cost.

Question 366

The DevOps team must resolve this situation: A Terraform workflow stores its state file in an unencrypted shared file share accessible to all developers. Which engineering action is MOST appropriate?

  1. Pin and review provider versions with a committed lockfile and CI version checks.
  2. Publish approved reusable templates with governed versioning and service-specific parameters.
  3. Require reviewed what-if output and controlled data-preserving migration before deployment.
  4. Use secured remote state with least-privilege identity and locking support.

Explanation

Correct Answer

D:

Use secured remote state with least-privilege identity and locking support. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: Unauthorized reads fail and concurrent plans cannot corrupt state. IaC state may contain sensitive values and requires protected remote storage and controlled locking.

Incorrect Answers

A:

Pin and review provider versions with a committed lockfile and CI version checks. 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 engineering action is: Use secured remote state with least-privilege identity and locking support. The crucial distinction is: IaC state may contain sensitive values and requires protected remote storage and controlled locking.

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 secured remote state with least-privilege identity and locking support. The crucial distinction is: IaC state may contain sensitive values and requires protected remote storage and controlled locking.

C:

Require reviewed what-if output and controlled data-preserving migration before deployment. This would address a different situation, such as: A refactor changes a storage account name while the pipeline applies it directly to production. In the present case, the most directly relevant engineering action is: Use secured remote state with least-privilege identity and locking support. The crucial distinction is: IaC state may contain sensitive values and requires protected remote storage and controlled locking.

Question 367

After implementing the change, the team verifies: A pipeline publishes Python wheels from a feed after an advisory identifies a vulnerable indirect dependency. 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. A verified public package version resolves through the governed feed after initial caching.
  3. A newly built wheel no longer includes the vulnerable dependency and tests pass.
  4. A replaced object fails the manifest digest check and cannot silently deploy.

Explanation

Correct Answer

C:

A newly built wheel no longer includes the vulnerable dependency and tests pass. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Update to an approved secure dependency version and rerun integration and compatibility checks. Dependency governance needs timely security updates while preserving compatibility testing.

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: A newly built wheel no longer includes the vulnerable dependency and tests pass. The crucial distinction is: Dependency governance needs timely security updates while preserving compatibility testing.

B:

A verified public package version resolves through the governed feed after initial caching. This would address a different situation, such as: A package feed cannot install vetted public dependencies during a disconnected corporate build unless developers manually copy files. In the present case, the most directly relevant verification is: A newly built wheel no longer includes the vulnerable dependency and tests pass. The crucial distinction is: Dependency governance needs timely security updates while preserving compatibility testing.

D:

A replaced object fails the manifest digest check and cannot silently deploy. This would address a different situation, such as: A build pipeline uploads a ZIP under a stable filename and a later build overwrites it before deployment. In the present case, the most directly relevant verification is: A newly built wheel no longer includes the vulnerable dependency and tests pass. The crucial distinction is: Dependency governance needs timely security updates while preserving compatibility testing.

Question 368

A Microsoft DevOps team is addressing: A deployment removes an application instance while it has open customer sessions, causing dropped purchases. Which TWO complementary actions should be taken? Select TWO answers.

  1. Inspect Deployment strategy, replica count, readiness probes and disruption events.
  2. Configure graceful shutdown and appropriate draining before removing active targets.
  3. Implement staged deployment rings with explicit gates and pause criteria.
  4. Use expand-and-contract database changes before traffic migration.
  5. Inspect load balancer deregistration delay, pod termination and request lifetimes.

Explanation

Correct Answers

B:

Configure graceful shutdown and appropriate draining before removing active targets. This supplies the controlled implementation needed for the scenario. Its complementary step is: Inspect load balancer deregistration delay, pod termination and request lifetimes. Together they address: Rolling replacement should account for connection draining and readiness transitions.

E:

Inspect load balancer deregistration delay, pod termination and request lifetimes. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Configure graceful shutdown and appropriate draining before removing active targets. Together they address: Rolling replacement should account for connection draining and readiness transitions.

Incorrect Answers

A:

Inspect Deployment strategy, replica count, readiness probes and disruption events. This concerns a different DevOps situation: An AKS update removes every API pod simultaneously because maxUnavailable equals the full replica count. This case instead requires both a targeted investigation (Inspect load balancer deregistration delay, pod termination and request lifetimes.) and a controlled change (Configure graceful shutdown and appropriate draining before removing active targets.).

C:

Implement staged deployment rings with explicit gates and pause criteria. This concerns a different DevOps situation: A desktop client update is rolled out to every employee globally at the same moment, causing a widespread outage. This case instead requires both a targeted investigation (Inspect load balancer deregistration delay, pod termination and request lifetimes.) and a controlled change (Configure graceful shutdown and appropriate draining before removing active targets.).

D:

Use expand-and-contract database changes before traffic migration. This concerns a different DevOps situation: An App Service slot swap puts new code online while old instances still write to a shared Azure SQL schema. This case instead requires both a targeted investigation (Inspect load balancer deregistration delay, pod termination and request lifetimes.) and a controlled change (Configure graceful shutdown and appropriate draining before removing active targets.).

Question 369

Before changing the pipeline or service, engineers find: A company protects main but permits unrestricted direct commits to an unprotected release branch deployed to production. Which evidence should the engineer inspect FIRST?

  1. Review deployment branch sources, permissions and branch policy coverage.
  2. Compare branch naming, workflow filters, release tags and production deployment records.
  3. Review reflogs, branch protections, merge strategy and downstream consumers.
  4. Inspect merge strategy, generated commit IDs, pull request metadata and release manifest.

Explanation

Correct Answer

A:

Review deployment branch sources, permissions and branch policy coverage. This directly checks the uncertain behavior or control before changing production. Every deployable branch needs controls proportionate to production impact. The resulting targeted action is: Apply equivalent required reviews and test gates to all protected release branches.

Incorrect Answers

B:

Compare branch naming, workflow filters, release tags and production deployment records. This would address a different situation, such as: Teams use dozens of release branches with ambiguous names, and automation often deploys the wrong branch. In the present case, the most directly relevant evidence is: Review deployment branch sources, permissions and branch policy coverage. The crucial distinction is: Every deployable branch needs controls proportionate to production impact.

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: Review deployment branch sources, permissions and branch policy coverage. The crucial distinction is: Every deployable branch needs controls proportionate to production impact.

D:

Inspect merge strategy, generated commit IDs, pull request metadata and release manifest. This would address a different situation, such as: An audit team cannot associate production features with reviewed pull requests after squash merging because release metadata records only original feature SHAs. In the present case, the most directly relevant evidence is: Review deployment branch sources, permissions and branch policy coverage. The crucial distinction is: Every deployable branch needs controls proportionate to production impact.

Question 370

The DevOps team must resolve this situation: Production VMs are configured by manual shell changes and new replacement VMs lack required OS baselines. Which engineering action is MOST appropriate?

  1. Apply an approved Azure Machine Configuration baseline with compliance evaluation.
  2. Pin and review provider versions with a committed lockfile and CI version checks.
  3. Publish a versioned Bicep networking module with secure defaults and reviewed parameters.
  4. Review the legacy DSC setup and plan a supported configuration management transition or remediation.

Explanation

Correct Answer

A:

Apply an approved Azure Machine Configuration baseline with compliance evaluation. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: A newly provisioned VM reports accurate guest configuration compliance. Guest desired-state policy should be measurable and enforceable across managed VMs.

Incorrect Answers

B:

Pin and review provider versions with a committed lockfile and CI version checks. 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 engineering action is: Apply an approved Azure Machine Configuration baseline with compliance evaluation. The crucial distinction is: Guest desired-state policy should be measurable and enforceable across managed VMs.

C:

Publish a versioned Bicep networking module with secure defaults and reviewed parameters. This would address a different situation, such as: Six teams manually create nearly identical VNets with inconsistent NSG defaults and missing diagnostics. In the present case, the most directly relevant engineering action is: Apply an approved Azure Machine Configuration baseline with compliance evaluation. The crucial distinction is: Guest desired-state policy should be measurable and enforceable across managed VMs.

D:

Review the legacy DSC setup and plan a supported configuration management transition or remediation. This would address a different situation, such as: A legacy fleet uses Azure Automation State Configuration but receives no reliable reports of drift or node registration. In the present case, the most directly relevant engineering action is: Apply an approved Azure Machine Configuration baseline with compliance evaluation. The crucial distinction is: Guest desired-state policy should be measurable and enforceable across managed VMs.

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