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 7

Question 60

The DevOps team must resolve this situation: A build dashboard reports 100% passing tests by excluding quarantined integration suites without disclosing the exclusions. Which engineering action is MOST appropriate?

  1. Publish excluded and flaky test counts with test trends and actionable owner assignments.
  2. Build service-segmented queries and complementary stability metrics.
  3. Calculate lead time for eligible service changes from commit to actual production deployment.
  4. Define recovery completion using service-level restoration and compute the metric accordingly.

Explanation

Correct Answer

A:

Publish excluded and flaky test counts with test trends and actionable owner assignments. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: The report exposes a deliberately excluded critical integration suite as a gap. Quality dashboards should show scope, omissions and relevant risk alongside pass rates.

Incorrect Answers

B:

Build service-segmented queries and complementary stability metrics. This would address a different situation, such as: A company combines experimental internal tools and regulated payment services into one deployment-frequency ranking. In the present case, the most directly relevant engineering action is: Publish excluded and flaky test counts with test trends and actionable owner assignments. The crucial distinction is: Quality dashboards should show scope, omissions and relevant risk alongside pass rates.

C:

Calculate lead time for eligible service changes from commit to actual production deployment. This would address a different situation, such as: A dashboard measures deployment frequency but calculates lead time from the first commit in an unrelated repository. In the present case, the most directly relevant engineering action is: Publish excluded and flaky test counts with test trends and actionable owner assignments. The crucial distinction is: Quality dashboards should show scope, omissions and relevant risk alongside pass rates.

D:

Define recovery completion using service-level restoration and compute the metric accordingly. This would address a different situation, such as: An operations dashboard reports recovery time ending when a VM restarts, although customer transactions remain unavailable. In the present case, the most directly relevant engineering action is: Publish excluded and flaky test counts with test trends and actionable owner assignments. The crucial distinction is: Quality dashboards should show scope, omissions and relevant risk alongside pass rates.

Question 61

The DevOps team must resolve this situation: A pipeline script prints a test failure but exits with zero, leaving no test results visible in Azure Pipelines. Which engineering action is MOST appropriate?

  1. Use a dedicated test subscription or resource group with restricted identity permissions.
  2. Require accountable acceptance or closure of critical security blockers before promotion.
  3. Correct failure handling and publish supported JUnit/TRX results with fail-on-test-failure behavior.
  4. Run supported code scanning on pull requests with risk-appropriate merge gates.

Explanation

Correct Answer

C:

Correct failure handling and publish supported JUnit/TRX results with fail-on-test-failure behavior. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: A failing assertion fails the job and displays its exact test case. CI test reporting must propagate failure status and publish actionable test results.

Incorrect Answers

A:

Use a dedicated test subscription or resource group with restricted identity permissions. 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 engineering action is: Correct failure handling and publish supported JUnit/TRX results with fail-on-test-failure behavior. The crucial distinction is: CI test reporting must propagate failure status and publish actionable test results.

B:

Require accountable acceptance or closure of critical security blockers before promotion. This would address a different situation, such as: A deployment receives approval even when a required penetration-test issue remains unresolved and unaccepted. In the present case, the most directly relevant engineering action is: Correct failure handling and publish supported JUnit/TRX results with fail-on-test-failure behavior. The crucial distinction is: CI test reporting must propagate failure status and publish actionable test results.

D:

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: Correct failure handling and publish supported JUnit/TRX results with fail-on-test-failure behavior. The crucial distinction is: CI test reporting must propagate failure status and publish actionable test results.

Question 62

A Microsoft DevOps team is addressing: Each team's pipeline provisions Azure Container Apps independently, with inconsistent health probes and identity. Which TWO complementary actions should be taken? Select TWO answers.

  1. Publish approved reusable templates with governed versioning and service-specific parameters.
  2. Compare YAML and Bicep modules, probes, managed identity choices and review history.
  3. Inspect Azure what-if operations, storage data dependency, naming constraints and resource references.
  4. Publish a versioned Bicep networking module with secure defaults and reviewed parameters.
  5. Inspect policy assignment, exemption resource metadata, business rationale and expiry.

Explanation

Correct Answers

A:

Publish approved reusable templates with governed versioning and service-specific parameters. This supplies the controlled implementation needed for the scenario. Its complementary step is: Compare YAML and Bicep modules, probes, managed identity choices and review history. Together they address: Infrastructure templates should codify consistent application platform controls.

B:

Compare YAML and Bicep modules, probes, managed identity choices and review history. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Publish approved reusable templates with governed versioning and service-specific parameters. Together they address: Infrastructure templates should codify consistent application platform controls.

Incorrect Answers

C:

Inspect Azure what-if operations, storage data dependency, naming constraints and resource references. This concerns a different DevOps situation: A refactor changes a storage account name while the pipeline applies it directly to production. This case instead requires both a targeted investigation (Compare YAML and Bicep modules, probes, managed identity choices and review history.) and a controlled change (Publish approved reusable templates with governed versioning and service-specific parameters.).

D:

Publish a versioned Bicep networking module with secure defaults and reviewed parameters. This concerns a different DevOps situation: Six teams manually create nearly identical VNets with inconsistent NSG defaults and missing diagnostics. This case instead requires both a targeted investigation (Compare YAML and Bicep modules, probes, managed identity choices and review history.) and a controlled change (Publish approved reusable templates with governed versioning and service-specific parameters.).

E:

Inspect policy assignment, exemption resource metadata, business rationale and expiry. This concerns a different DevOps situation: A production deployment depends on a time-limited Azure Policy exemption that was never documented or reviewed. This case instead requires both a targeted investigation (Compare YAML and Bicep modules, probes, managed identity choices and review history.) and a controlled change (Publish approved reusable templates with governed versioning and service-specific parameters.).

Question 63

After implementing the change, the team verifies: A cost-reduction retention rule deletes the last known-good container image before the rollback period ends. 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. The same full test suite finishes faster without skipped checks.
  3. An unchanged low-risk repository does not trigger redundant builds while required scans still run.
  4. A rollback exercise retrieves its signed prior image while obsolete builds expire.

Explanation

Correct Answer

D:

A rollback exercise retrieves its signed prior image while obsolete builds expire. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Protect recent deployed digests and remove only eligible unreferenced artifacts. Artifact retention needs business-approved rollback and forensic windows.

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 rollback exercise retrieves its signed prior image while obsolete builds expire. The crucial distinction is: Artifact retention needs business-approved rollback and forensic windows.

B:

The same full test suite finishes faster without skipped checks. 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 verification is: A rollback exercise retrieves its signed prior image while obsolete builds expire. The crucial distinction is: Artifact retention needs business-approved rollback and forensic windows.

C:

An unchanged low-risk repository does not trigger redundant builds while required scans still run. This would address a different situation, such as: Hundreds of nightly builds run when source code is unchanged, consuming expensive hosted parallel minutes. In the present case, the most directly relevant verification is: A rollback exercise retrieves its signed prior image while obsolete builds expire. The crucial distinction is: Artifact retention needs business-approved rollback and forensic windows.

Question 64

An Azure DevOps engineering team evaluates this condition: A test pipeline reuses a production storage account and occasionally deletes customer fixtures. Which DevOps principle BEST explains the underlying weakness?

  1. Security policy gates should prevent release of unapproved critical vulnerabilities.
  2. Test execution should be isolated from production identities and destructive resources.
  3. Code-scanning feedback should be available on proposed changes before merge.
  4. Consumer contract tests should detect interface-breaking changes before coordinated release.

Explanation

Correct Answer

B:

Test execution should be isolated from production identities and destructive resources. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Inspect service connections, resource IDs, variables and test cleanup scripts. An appropriate controlled response is: Use a dedicated test subscription or resource group with restricted identity permissions.

Incorrect Answers

A:

Security policy gates should prevent release of unapproved critical vulnerabilities. This would address a different situation, such as: A container image with a known critical vulnerability passes all unit tests and is promoted to production. In the present case, the most directly relevant principle is: Test execution should be isolated from production identities and destructive resources. The crucial distinction is: Test execution should be isolated from production identities and destructive resources.

C:

Code-scanning feedback should be available on proposed changes before merge. 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 principle is: Test execution should be isolated from production identities and destructive resources. The crucial distinction is: Test execution should be isolated from production identities and destructive resources.

D:

Consumer contract tests should detect interface-breaking changes before coordinated release. This would address a different situation, such as: A microservice changes a JSON field name while a downstream consumer still relies on the old name. In the present case, the most directly relevant principle is: Test execution should be isolated from production identities and destructive resources. The crucial distinction is: Test execution should be isolated from production identities and destructive resources.

Question 65

After implementing the change, the team verifies: A release build uses a mutable tag name that engineers can retarget to a different unreviewed commit. Which result would BEST demonstrate that the issue is corrected?

  1. Both consumers can choose approved versions and receive a security fix predictably.
  2. A retag attempt is denied or detected without changing the previously approved release.
  3. The old credential is invalid and authorized scans find no active secret exposure.
  4. The same repository commit builds on both the intended Windows and Linux agents.

Explanation

Correct Answer

B:

A retag attempt is denied or detected without changing the previously approved release. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Protect release tags and record immutable commit or artifact digests in release manifests. Release references must be protected or cryptographically verified to preserve provenance.

Incorrect Answers

A:

Both consumers can choose approved versions and receive a security fix predictably. 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 verification is: A retag attempt is denied or detected without changing the previously approved release. The crucial distinction is: Release references must be protected or cryptographically verified to preserve provenance.

C:

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: A retag attempt is denied or detected without changing the previously approved release. The crucial distinction is: Release references must be protected or cryptographically verified to preserve provenance.

D:

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: A retag attempt is denied or detected without changing the previously approved release. The crucial distinction is: Release references must be protected or cryptographically verified to preserve provenance.

Question 66

The DevOps team must resolve this situation: A company protects main but permits unrestricted direct commits to an unprotected release branch deployed to production. Which engineering action is MOST appropriate?

  1. Restrict force pushes on shared branches and use approved non-destructive integration.
  2. Adopt short-lived feature branches with required tests and frequent mainline integration.
  3. Require independent pull request reviews and passing automated checks on main.
  4. Apply equivalent required reviews and test gates to all protected release branches.

Explanation

Correct Answer

D:

Apply equivalent required reviews and test gates to all protected release branches. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: A direct unauthorized push to the release branch is rejected. Every deployable branch needs controls proportionate to production impact.

Incorrect Answers

A:

Restrict force pushes on shared branches and use approved non-destructive integration. 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 engineering action is: Apply equivalent required reviews and test gates to all protected release branches. The crucial distinction is: Every deployable branch needs controls proportionate to production impact.

B:

Adopt short-lived feature branches with required tests and frequent mainline integration. 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 engineering action is: Apply equivalent required reviews and test gates to all protected release branches. The crucial distinction is: Every deployable branch needs controls proportionate to production impact.

C:

Require independent pull request reviews and passing automated checks on main. This would address a different situation, such as: A repository's default branch allows authors to approve their own high-risk changes without independent review. In the present case, the most directly relevant engineering action is: Apply equivalent required reviews and test gates to all protected release branches. The crucial distinction is: Every deployable branch needs controls proportionate to production impact.

Question 67

Before changing the pipeline or service, engineers find: An operations dashboard reports recovery time ending when a VM restarts, although customer transactions remain unavailable. Which evidence should the engineer inspect FIRST?

  1. Inspect vulnerability discovery times, severity classifications, exception approvals and closure evidence.
  2. Inspect survey population, response rates, roles and unanswered groups.
  3. Inspect workflow states, audit logs, start-of-work criteria and board queries.
  4. Review incident start, synthetic transaction recovery, customer impact and closure events.

Explanation

Correct Answer

D:

Review incident start, synthetic transaction recovery, customer impact and closure events. This directly checks the uncertain behavior or control before changing production. Time to restore service should reflect verified business-service recovery. The resulting targeted action is: Define recovery completion using service-level restoration and compute the metric accordingly.

Incorrect Answers

A:

Inspect vulnerability discovery times, severity classifications, exception approvals and closure evidence. This would address a different situation, such as: A security scorecard shows the total number of alerts but cannot identify overdue critical fixes. In the present case, the most directly relevant evidence is: Review incident start, synthetic transaction recovery, customer impact and closure events. The crucial distinction is: Time to restore service should reflect verified business-service recovery.

B:

Inspect survey population, response rates, roles and unanswered groups. This would address a different situation, such as: A team reports excellent developer experience based only on responses from its three most active maintainers. In the present case, the most directly relevant evidence is: Review incident start, synthetic transaction recovery, customer impact and closure events. The crucial distinction is: Time to restore service should reflect verified business-service recovery.

C:

Inspect workflow states, audit logs, start-of-work criteria and board queries. This would address a different situation, such as: Azure Boards reports near-zero cycle time because teams move stories to Active only when coding is almost finished. In the present case, the most directly relevant evidence is: Review incident start, synthetic transaction recovery, customer impact and closure events. The crucial distinction is: Time to restore service should reflect verified business-service recovery.

Question 68

A Microsoft DevOps team is addressing: Security findings in Azure DevOps repositories never appear in the organization's central Defender for Cloud dashboard. Which TWO complementary actions should be taken? Select TWO answers.

  1. Inspect Defender for Cloud DevOps connector, authorization and repository inventory.
  2. Connect supported Azure DevOps/GitHub resources to Defender for Cloud DevOps Security.
  3. Inspect lockfile changes, package registry source, published checksums and CI scan reports.
  4. Inspect alert severity, exploitability, exposure, service criticality and exceptions.
  5. Configure approved CodeQL analysis and risk-based remediation gates.

Explanation

Correct Answers

A:

Inspect Defender for Cloud DevOps connector, authorization and repository inventory. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Connect supported Azure DevOps/GitHub resources to Defender for Cloud DevOps Security. Together they address: DevOps security posture can be integrated into centralized cloud risk monitoring.

B:

Connect supported Azure DevOps/GitHub resources to Defender for Cloud DevOps Security. This supplies the controlled implementation needed for the scenario. Its complementary step is: Inspect Defender for Cloud DevOps connector, authorization and repository inventory. Together they address: DevOps security posture can be integrated into centralized cloud risk monitoring.

Incorrect Answers

C:

Inspect lockfile changes, package registry source, published checksums and CI scan reports. This concerns a different DevOps situation: A dependency update workflow proposes a new package version but its artifact origin is not recorded, weakening supply-chain review. This case instead requires both a targeted investigation (Inspect Defender for Cloud DevOps connector, authorization and repository inventory.) and a controlled change (Connect supported Azure DevOps/GitHub resources to Defender for Cloud DevOps Security.).

D:

Inspect alert severity, exploitability, exposure, service criticality and exceptions. This concerns a different DevOps situation: Hundreds of low-severity dependency alerts crowd out a critical exploitable issue in production. This case instead requires both a targeted investigation (Inspect Defender for Cloud DevOps connector, authorization and repository inventory.) and a controlled change (Connect supported Azure DevOps/GitHub resources to Defender for Cloud DevOps Security.).

E:

Configure approved CodeQL analysis and risk-based remediation gates. This concerns a different DevOps situation: A C# API has risky SQL construction patterns, but pipeline checks only verify compilation. This case instead requires both a targeted investigation (Inspect Defender for Cloud DevOps connector, authorization and repository inventory.) and a controlled change (Connect supported Azure DevOps/GitHub resources to Defender for Cloud DevOps Security.).

Question 69

The DevOps team must resolve this situation: A project enables Git LFS but build agents repeatedly fail because downloads exceed the organization's storage bandwidth quota. Which engineering action is MOST appropriate?

  1. Revoke or rotate the credential, restrict exposure and perform controlled history remediation if necessary.
  2. Pin the submodule to an approved commit and update it through reviewed changes.
  3. Govern large-file retention, selective downloads and authorized capacity increases.
  4. Stop tracking generated outputs and plan reviewed history cleanup with team coordination.

Explanation

Correct Answer

C:

Govern large-file retention, selective downloads and authorized capacity increases. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: A representative CI job retrieves necessary LFS objects within quota and reports failures. Repository strategies must monitor large-file storage limits and build consumption patterns.

Incorrect Answers

A:

Revoke or rotate the credential, restrict exposure and perform controlled history remediation if necessary. 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 engineering action is: Govern large-file retention, selective downloads and authorized capacity increases. The crucial distinction is: Repository strategies must monitor large-file storage limits and build consumption patterns.

B:

Pin the submodule to an approved commit and update it through reviewed changes. 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 engineering action is: Govern large-file retention, selective downloads and authorized capacity increases. The crucial distinction is: Repository strategies must monitor large-file storage limits and build consumption patterns.

D:

Stop tracking generated outputs and plan reviewed history cleanup with team coordination. This would address a different situation, such as: A project accidentally committed generated build outputs and its repository history grew by several gigabytes. In the present case, the most directly relevant engineering action is: Govern large-file retention, selective downloads and authorized capacity increases. The crucial distinction is: Repository strategies must monitor large-file storage limits and build consumption patterns.

Question 70

After implementing the change, the team verifies: An organization uses calendar-versioned nightly internal tools but deployments cannot distinguish two builds made on the same day. Which result would BEST demonstrate that the issue is corrected?

  1. Two same-day builds remain separately traceable to their source commits.
  2. The production artifact SHA matches the artifact that completed staging verification.
  3. A clean hosted agent resolves the approved package without a developer workstation.
  4. A replaced object fails the manifest digest check and cannot silently deploy.

Explanation

Correct Answer

A:

Two same-day builds remain separately traceable to their source commits. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Add a consistent unique build identifier to the approved CalVer scheme. Date-based versions need an unambiguous unique revision component and provenance.

Incorrect Answers

B:

The production artifact SHA matches the artifact that completed staging verification. This would address a different situation, such as: A release pipeline downloads the latest build artifact by name instead of the approved artifact from staging. In the present case, the most directly relevant verification is: Two same-day builds remain separately traceable to their source commits. The crucial distinction is: Date-based versions need an unambiguous unique revision component and provenance.

C:

A clean hosted agent resolves the approved package without a developer workstation. This would address a different situation, such as: A.NET service pulls internal NuGet libraries from a developer laptop because no shared feed exists. In the present case, the most directly relevant verification is: Two same-day builds remain separately traceable to their source commits. The crucial distinction is: Date-based versions need an unambiguous unique revision component and provenance.

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: Two same-day builds remain separately traceable to their source commits. The crucial distinction is: Date-based versions need an unambiguous unique revision component and provenance.

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