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 6

Question 50

Before changing the pipeline or service, engineers find: A reusable GitHub Actions workflow grants write permissions to every job although most only compile and test. Which evidence should the engineer inspect FIRST?

  1. Inspect workflow permission scopes, reusable call contracts and job operations.
  2. Inspect library permissions, pipeline authorization, variable source and consumer identities.
  3. Review stage condition expressions, dependency status and test results.
  4. Inspect repository runner group rules, fork workflow triggers and credential persistence.

Explanation

Correct Answer

A:

Inspect workflow permission scopes, reusable call contracts and job operations. This directly checks the uncertain behavior or control before changing production. Job-level token permissions should match each workflow task's minimum needs. The resulting targeted action is: Restrict default GITHUB_TOKEN permissions and grant write scopes only to required jobs.

Incorrect Answers

B:

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 workflow permission scopes, reusable call contracts and job operations. The crucial distinction is: Job-level token permissions should match each workflow task's minimum needs.

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 workflow permission scopes, reusable call contracts and job operations. The crucial distinction is: Job-level token permissions should match each workflow task's minimum needs.

D:

Inspect repository runner group rules, fork workflow triggers and credential persistence. This would address a different situation, such as: A GitHub self-hosted runner accepts workflows from untrusted forks and shares its workspace with production credentials. In the present case, the most directly relevant evidence is: Inspect workflow permission scopes, reusable call contracts and job operations. The crucial distinction is: Job-level token permissions should match each workflow task's minimum needs.

Question 51

After implementing the change, the team verifies: A company combines experimental internal tools and regulated payment services into one deployment-frequency ranking. Which result would BEST demonstrate that the issue is corrected?

  1. A traced sample change reconciles to dashboard start and end timestamps.
  2. A test job delayed by runner scarcity shows queue time rather than slow compilation.
  3. Payment release performance can be evaluated without being distorted by sandbox builds.
  4. The report exposes a deliberately excluded critical integration suite as a gap.

Explanation

Correct Answer

C:

Payment release performance can be evaluated without being distorted by sandbox builds. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Build service-segmented queries and complementary stability metrics. Operational metrics must be interpreted by service context and business risk.

Incorrect Answers

A:

A traced sample change reconciles to dashboard start and end timestamps. 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 verification is: Payment release performance can be evaluated without being distorted by sandbox builds. The crucial distinction is: Operational metrics must be interpreted by service context and business risk.

B:

A test job delayed by runner scarcity shows queue time rather than slow compilation. This would address a different situation, such as: A pipeline takes 50 minutes, but dashboard owners cannot distinguish runner queue delays from actual build execution. In the present case, the most directly relevant verification is: Payment release performance can be evaluated without being distorted by sandbox builds. The crucial distinction is: Operational metrics must be interpreted by service context and business risk.

D:

The report exposes a deliberately excluded critical integration suite as a gap. This would address a different situation, such as: A build dashboard reports 100% passing tests by excluding quarantined integration suites without disclosing the exclusions. In the present case, the most directly relevant verification is: Payment release performance can be evaluated without being distorted by sandbox builds. The crucial distinction is: Operational metrics must be interpreted by service context and business risk.

Question 52

An Azure DevOps engineering team evaluates this condition: Each team's pipeline provisions Azure Container Apps independently, with inconsistent health probes and identity. Which DevOps principle BEST explains the underlying weakness?

  1. IaC dependency design must express when required resources and authorization are ready.
  2. Guest desired-state policy should be measurable and enforceable across managed VMs.
  3. Desired state must be reconciled with real infrastructure before applying further changes.
  4. Infrastructure templates should codify consistent application platform controls.

Explanation

Correct Answer

D:

Infrastructure templates should codify consistent application platform controls. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Compare YAML and Bicep modules, probes, managed identity choices and review history. An appropriate controlled response is: Publish approved reusable templates with governed versioning and service-specific parameters.

Incorrect Answers

A:

IaC dependency design must express when required resources and authorization are ready. This would address a different situation, such as: A Bicep deployment creates an application before the required Key Vault access is effective, causing startup failures. In the present case, the most directly relevant principle is: Infrastructure templates should codify consistent application platform controls. The crucial distinction is: Infrastructure templates should codify consistent application platform controls.

B:

Guest desired-state policy should be measurable and enforceable across managed VMs. This would address a different situation, such as: Production VMs are configured by manual shell changes and new replacement VMs lack required OS baselines. In the present case, the most directly relevant principle is: Infrastructure templates should codify consistent application platform controls. The crucial distinction is: Infrastructure templates should codify consistent application platform controls.

C:

Desired state must be reconciled with real infrastructure before applying further changes. This would address a different situation, such as: Operators modify a production firewall directly, but the Terraform plan assumes its prior values remain in place. In the present case, the most directly relevant principle is: Infrastructure templates should codify consistent application platform controls. The crucial distinction is: Infrastructure templates should codify consistent application platform controls.

Question 53

After implementing the change, the team verifies: An App Service accesses Azure Storage using a connection string containing an account key in source control. Which result would BEST demonstrate that the issue is corrected?

  1. The approved pipeline deploys after the static client secret is removed.
  2. The auditor views the specified repo but cannot inspect unrelated private repositories.
  3. The app accesses its authorized container after the account key is revoked.
  4. The manager can create permitted work items but cannot change release environments.

Explanation

Correct Answer

C:

The app accesses its authorized container after the account key is revoked. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Enable system-assigned managed identity and grant narrow storage data-plane roles. Managed identity can replace application-stored credentials when the target service supports Azure RBAC.

Incorrect Answers

A:

The approved pipeline deploys after the static client secret is removed. This would address a different situation, such as: A deployment workflow has a client secret in a variable group that is copied between projects and never rotated. In the present case, the most directly relevant verification is: The app accesses its authorized container after the account key is revoked. The crucial distinction is: Managed identity can replace application-stored credentials when the target service supports Azure RBAC.

B:

The auditor views the specified repo but cannot inspect unrelated private repositories. This would address a different situation, such as: An external auditor needs read access to one private repository, but is added as an owner of the whole organization. In the present case, the most directly relevant verification is: The app accesses its authorized container after the account key is revoked. The crucial distinction is: Managed identity can replace application-stored credentials when the target service supports Azure RBAC.

D:

The manager can create permitted work items but cannot change release environments. This would address a different situation, such as: A product manager needs to view Azure Boards and submit work items but is given full build administration permissions. In the present case, the most directly relevant verification is: The app accesses its authorized container after the account key is revoked. The crucial distinction is: Managed identity can replace application-stored credentials when the target service supports Azure RBAC.

Question 54

The DevOps team must resolve this situation: An autoscaled deployment needs consistent identity across short-lived Azure compute instances that are replaced frequently. Which engineering action is MOST appropriate?

  1. Use suitable Stakeholder access and restrict code/pipeline administration.
  2. Invite an outside collaborator with restricted access to the reviewed repository.
  3. Attach an approved user-assigned managed identity to the participating compute resources.
  4. Separate pipeline authors from release-approval administrators and audit exceptions.

Explanation

Correct Answer

C:

Attach an approved user-assigned managed identity to the participating compute resources. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: A replacement instance uses the same authorized identity without sharing passwords. A user-assigned managed identity can preserve identity lifecycle independently of individual resources.

Incorrect Answers

A:

Use suitable Stakeholder access and restrict code/pipeline administration. This would address a different situation, such as: A product manager needs to view Azure Boards and submit work items but is given full build administration permissions. In the present case, the most directly relevant engineering action is: Attach an approved user-assigned managed identity to the participating compute resources. The crucial distinction is: A user-assigned managed identity can preserve identity lifecycle independently of individual resources.

B:

Invite an outside collaborator with restricted access to the reviewed repository. This would address a different situation, such as: An external auditor needs read access to one private repository, but is added as an owner of the whole organization. In the present case, the most directly relevant engineering action is: Attach an approved user-assigned managed identity to the participating compute resources. The crucial distinction is: A user-assigned managed identity can preserve identity lifecycle independently of individual resources.

D:

Separate pipeline authors from release-approval administrators and audit exceptions. This would address a different situation, such as: Developers can edit protected deployment environments and approve their own releases because one group owns all project settings. In the present case, the most directly relevant engineering action is: Attach an approved user-assigned managed identity to the participating compute resources. The crucial distinction is: A user-assigned managed identity can preserve identity lifecycle independently of individual resources.

Question 55

A Microsoft DevOps team is addressing: Designers repeatedly commit multi-gigabyte video assets as normal Git blobs and cloning takes hours. Which TWO complementary actions should be taken? Select TWO answers.

  1. Normalize names and case-correct imports with cross-platform validation in PR checks.
  2. Archive the repository or lock write access with audited exception handling.
  3. Inspect file types, object sizes, clone profiles and LFS availability.
  4. Inspect repository layout, dependency graph, clone filters and build requirements.
  5. Migrate appropriate binaries to Git LFS and track pointers with controlled storage quotas.

Explanation

Correct Answers

C:

Inspect file types, object sizes, clone profiles and LFS availability. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Migrate appropriate binaries to Git LFS and track pointers with controlled storage quotas. Together they address: Large binary artifacts need purpose-built storage to avoid expanding ordinary Git history.

E:

Migrate appropriate binaries to Git LFS and track pointers with controlled storage quotas. This supplies the controlled implementation needed for the scenario. Its complementary step is: Inspect file types, object sizes, clone profiles and LFS availability. Together they address: Large binary artifacts need purpose-built storage to avoid expanding ordinary Git history.

Incorrect Answers

A:

Normalize names and case-correct imports with cross-platform validation in PR checks. This concerns a different DevOps situation: A service builds on a Windows workstation but fails on Linux CI because a source import differs only in filename case. This case instead requires both a targeted investigation (Inspect file types, object sizes, clone profiles and LFS availability.) and a controlled change (Migrate appropriate binaries to Git LFS and track pointers with controlled storage quotas.).

B:

Archive the repository or lock write access with audited exception handling. This concerns a different DevOps situation: An archived security-sensitive repository remains writable by former project members and receives unreviewed commits. This case instead requires both a targeted investigation (Inspect file types, object sizes, clone profiles and LFS availability.) and a controlled change (Migrate appropriate binaries to Git LFS and track pointers with controlled storage quotas.).

D:

Inspect repository layout, dependency graph, clone filters and build requirements. This concerns a different DevOps situation: A developer needs one service from a huge monorepo, but each checkout transfers every unrelated project and binary. This case instead requires both a targeted investigation (Inspect file types, object sizes, clone profiles and LFS availability.) and a controlled change (Migrate appropriate binaries to Git LFS and track pointers with controlled storage quotas.).

Question 56

Before changing the pipeline or service, engineers find: A dependency update workflow proposes a new package version but its artifact origin is not recorded, weakening supply-chain review. Which evidence should the engineer inspect FIRST?

  1. Inspect repository secret-scanning alerts, token audit logs and response workflow.
  2. Inspect GitHub Advanced Security CodeQL workflow, languages, SARIF results and merge gates.
  3. Inspect lockfile changes, package registry source, published checksums and CI scan reports.
  4. Inspect workflow PR permissions, required checks and protected branch policy.

Explanation

Correct Answer

C:

Inspect lockfile changes, package registry source, published checksums and CI scan reports. This directly checks the uncertain behavior or control before changing production. Automated security/compliance scanning should retain dependency provenance and approved package sources. The resulting targeted action is: Require reviewed package source, SBOM and policy gates before accepting dependency updates.

Incorrect Answers

A:

Inspect repository secret-scanning alerts, token audit logs and response workflow. This would address a different situation, such as: A developer accidentally commits a cloud token, but the repository has no automated alerting on leaked credentials. In the present case, the most directly relevant evidence is: Inspect lockfile changes, package registry source, published checksums and CI scan reports. The crucial distinction is: Automated security/compliance scanning should retain dependency provenance and approved package sources.

B:

Inspect GitHub Advanced Security CodeQL workflow, languages, SARIF results and merge gates. This would address a different situation, such as: A C# API has risky SQL construction patterns, but pipeline checks only verify compilation. In the present case, the most directly relevant evidence is: Inspect lockfile changes, package registry source, published checksums and CI scan reports. The crucial distinction is: Automated security/compliance scanning should retain dependency provenance and approved package sources.

D:

Inspect workflow PR permissions, required checks and protected branch policy. This would address a different situation, such as: An untrusted pull request can modify the secret-scanning workflow and disable scanning in its own run. In the present case, the most directly relevant evidence is: Inspect lockfile changes, package registry source, published checksums and CI scan reports. The crucial distinction is: Automated security/compliance scanning should retain dependency provenance and approved package sources.

Question 57

An Azure DevOps engineering team evaluates this condition: A versioned REST API deploys successfully but its consumer documentation still lists removed fields. Which DevOps principle BEST explains the underlying weakness?

  1. Documentation should be versioned with the workflow it explains and validated during change.
  2. Notifications should reach accountable responders through monitored channels with useful context.
  3. API documentation must be published from the approved version and checked for compatibility.
  4. Cross-tool event integrations need idempotent handling and observability.

Explanation

Correct Answer

C:

API documentation must be published from the approved version and checked for compatibility. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Review OpenAPI specification, release artifact version and documentation publication stage. An appropriate controlled response is: Generate and publish versioned API documentation as a release-gated artifact.

Incorrect Answers

A:

Documentation should be versioned with the workflow it explains and validated during change. This would address a different situation, such as: A repository wiki describes a build script that was removed six months ago and breaks onboarding. In the present case, the most directly relevant principle is: API documentation must be published from the approved version and checked for compatibility. The crucial distinction is: API documentation must be published from the approved version and checked for compatibility.

B:

Notifications should reach accountable responders through monitored channels with useful context. This would address a different situation, such as: Critical production deployment failures send only email to an unattended shared mailbox. In the present case, the most directly relevant principle is: API documentation must be published from the approved version and checked for compatibility. The crucial distinction is: API documentation must be published from the approved version and checked for compatibility.

D:

Cross-tool event integrations need idempotent handling and observability. This would address a different situation, such as: An Azure DevOps webhook creates duplicate change tickets whenever the receiving service retries a timeout. In the present case, the most directly relevant principle is: API documentation must be published from the approved version and checked for compatibility. The crucial distinction is: API documentation must be published from the approved version and checked for compatibility.

Question 58

The DevOps team must resolve this situation: A team's claimed 90% code coverage includes only generated code and excludes its core authorization module. Which engineering action is MOST appropriate?

  1. Run isolated integration tests against approved representative Azure SQL dependencies.
  2. Collect meaningful coverage with transparent exclusions and enforce reviewed thresholds.
  3. Test expand-and-contract schema changes against concurrent old and new application instances.
  4. Move test credentials into a protected secret store and suppress token output.

Explanation

Correct Answer

B:

Collect meaningful coverage with transparent exclusions and enforce reviewed thresholds. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: The authorization module appears in coverage results and reduced testing is detected. Coverage gates must reflect relevant tested production code and disclose exclusions.

Incorrect Answers

A:

Run isolated integration tests against approved representative Azure SQL dependencies. 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 engineering action is: Collect meaningful coverage with transparent exclusions and enforce reviewed thresholds. The crucial distinction is: Coverage gates must reflect relevant tested production code and disclose exclusions.

C:

Test expand-and-contract schema changes against concurrent old and new application instances. 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 engineering action is: Collect meaningful coverage with transparent exclusions and enforce reviewed thresholds. The crucial distinction is: Coverage gates must reflect relevant tested production code and disclose exclusions.

D:

Move test credentials into a protected secret store and suppress token output. This would address a different situation, such as: A test task writes its service principal secret into verbose logs on every failing run. In the present case, the most directly relevant engineering action is: Collect meaningful coverage with transparent exclusions and enforce reviewed thresholds. The crucial distinction is: Coverage gates must reflect relevant tested production code and disclose exclusions.

Question 59

After implementing the change, the team verifies: A legacy release service principal secret is set to expire tomorrow and pipeline maintenance has no automated credential lifecycle. Which result would BEST demonstrate that the issue is corrected?

  1. A clean replacement hosted image reproduces the expected build.
  2. A new deployment succeeds after retiring the old secret while preserving permissions.
  3. A rollback exercise retrieves its signed prior image while obsolete builds expire.
  4. A historical release can be reconstructed within the mandated retention period.

Explanation

Correct Answer

B:

A new deployment succeeds after retiring the old secret while preserving permissions. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Migrate to workload identity federation or controlled rotation with alerting. Deployment identities should support safe rotation or federation without release downtime.

Incorrect Answers

A:

A clean replacement hosted image reproduces the expected build. 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 verification is: A new deployment succeeds after retiring the old secret while preserving permissions. The crucial distinction is: Deployment identities should support safe rotation or federation without release downtime.

C:

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 new deployment succeeds after retiring the old secret while preserving permissions. The crucial distinction is: Deployment identities should support safe rotation or federation without release downtime.

D:

A historical release can be reconstructed within the mandated retention period. 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 verification is: A new deployment succeeds after retiring the old secret while preserving permissions. The crucial distinction is: Deployment identities should support safe rotation or federation without release downtime.

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.

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