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 16

Question 150

After implementing the change, the team verifies: Designers repeatedly commit multi-gigabyte video assets as normal Git blobs and cloning takes hours. Which result would BEST demonstrate that the issue is corrected?

  1. A retag attempt is denied or detected without changing the previously approved release.
  2. The restored changes match the lost commit without overwriting colleagues' work.
  3. A fresh clone downloads code quickly and selected large assets on demand.
  4. The old credential is invalid and authorized scans find no active secret exposure.

Explanation

Correct Answer

C:

A fresh clone downloads code quickly and selected large assets on demand. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Migrate appropriate binaries to Git LFS and track pointers with controlled storage quotas. Large binary artifacts need purpose-built storage to avoid expanding ordinary Git history.

Incorrect Answers

A:

A retag attempt is denied or detected without changing the previously approved release. This would address a different situation, such as: A release build uses a mutable tag name that engineers can retarget to a different unreviewed commit. In the present case, the most directly relevant verification is: A fresh clone downloads code quickly and selected large assets on demand. The crucial distinction is: Large binary artifacts need purpose-built storage to avoid expanding ordinary Git history.

B:

The restored changes match the lost commit without overwriting colleagues' work. This would address a different situation, such as: A developer accidentally removes an important local commit during an interactive rebase, but it is still reachable from Git reflog. In the present case, the most directly relevant verification is: A fresh clone downloads code quickly and selected large assets on demand. The crucial distinction is: Large binary artifacts need purpose-built storage to avoid expanding ordinary Git history.

D:

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 fresh clone downloads code quickly and selected large assets on demand. The crucial distinction is: Large binary artifacts need purpose-built storage to avoid expanding ordinary Git history.

Question 151

After implementing the change, the team verifies: A pipeline script prints a test failure but exits with zero, leaving no test results visible in Azure Pipelines. Which result would BEST demonstrate that the issue is corrected?

  1. A deliberately failing unit test prevents the pull request from merging.
  2. A failing assertion fails the job and displays its exact test case.
  3. An intentionally vulnerable test image is blocked and an approved fixed image proceeds.
  4. A deliberately unresolved critical issue prevents production promotion until authorized disposition.

Explanation

Correct Answer

B:

A failing assertion fails the job and displays its exact test case. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Correct failure handling and publish supported JUnit/TRX results with fail-on-test-failure behavior. CI test reporting must propagate failure status and publish actionable test results.

Incorrect Answers

A:

A deliberately failing unit test prevents the pull request from merging. This would address a different situation, such as: A protected mainline accepts pull requests before a required unit test suite finishes, causing broken packages. In the present case, the most directly relevant verification is: A failing assertion fails the job and displays its exact test case. The crucial distinction is: CI test reporting must propagate failure status and publish actionable test results.

C:

An intentionally vulnerable test image is blocked and an approved fixed image proceeds. 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 verification is: A failing assertion fails the job and displays its exact test case. The crucial distinction is: CI test reporting must propagate failure status and publish actionable test results.

D:

A deliberately unresolved critical issue prevents production promotion until authorized disposition. 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 verification is: A failing assertion fails the job and displays its exact test case. The crucial distinction is: CI test reporting must propagate failure status and publish actionable test results.

Question 152

After implementing the change, the team verifies: A security scorecard shows the total number of alerts but cannot identify overdue critical fixes. Which result would BEST demonstrate that the issue is corrected?

  1. Sample completed stories show realistic cycle times that match actual engineering work.
  2. A deliberately overdue critical issue remains visible until independently resolved.
  3. A traced sample change reconciles to dashboard start and end timestamps.
  4. The report states response coverage and captures previously omitted contributor feedback.

Explanation

Correct Answer

B:

A deliberately overdue critical issue remains visible until independently resolved. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Build aging and SLA queries for critical findings with owner and disposition fields. Security metrics should track severity, exposure, accountable ownership and aging.

Incorrect Answers

A:

Sample completed stories show realistic cycle times that match actual engineering work. 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 verification is: A deliberately overdue critical issue remains visible until independently resolved. The crucial distinction is: Security metrics should track severity, exposure, accountable ownership and aging.

C:

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: A deliberately overdue critical issue remains visible until independently resolved. The crucial distinction is: Security metrics should track severity, exposure, accountable ownership and aging.

D:

The report states response coverage and captures previously omitted contributor feedback. 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 verification is: A deliberately overdue critical issue remains visible until independently resolved. The crucial distinction is: Security metrics should track severity, exposure, accountable ownership and aging.

Question 153

The DevOps team must resolve this situation: A maintainer rebases a shared release branch and force pushes, invalidating teammates' commit references. Which engineering action is MOST appropriate?

  1. Record the final mainline commit and linked PR/work item in deployment provenance.
  2. Maintain controlled support branches with signed or protected release tags and planned retirement.
  3. Restrict force pushes on shared branches and use approved non-destructive integration.
  4. Use fork-and-pull-request contributions with least-privilege branch access.

Explanation

Correct Answer

C:

Restrict force pushes on shared branches and use approved non-destructive integration. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: A collaborator can still resolve the original commit history after the next integration. History rewriting on shared branches requires explicit governance to protect provenance.

Incorrect Answers

A:

Record the final mainline commit and linked PR/work item in deployment provenance. 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 engineering action is: Restrict force pushes on shared branches and use approved non-destructive integration. The crucial distinction is: History rewriting on shared branches requires explicit governance to protect provenance.

B:

Maintain controlled support branches with signed or protected release tags and planned retirement. This would address a different situation, such as: Old supported product versions receive urgent fixes but the team deletes prior release references after every mainline update. In the present case, the most directly relevant engineering action is: Restrict force pushes on shared branches and use approved non-destructive integration. The crucial distinction is: History rewriting on shared branches requires explicit governance to protect provenance.

D:

Use fork-and-pull-request contributions with least-privilege branch access. This would address a different situation, such as: External contributors can directly edit protected organization branches rather than submitting reviewed fork-based changes. In the present case, the most directly relevant engineering action is: Restrict force pushes on shared branches and use approved non-destructive integration. The crucial distinction is: History rewriting on shared branches requires explicit governance to protect provenance.

Question 154

An Azure DevOps engineering team evaluates this condition: A Bicep pipeline deploys wildcard role assignments despite a known rule requiring narrowly scoped access. Which DevOps principle BEST explains the underlying weakness?

  1. IaC static analysis should detect risky patterns before production deployment.
  2. Ephemeral environments need automated lifecycle, cost and access controls.
  3. Deployment mode and scope determine whether absent resources may be removed.
  4. Self-service environment catalogs can standardize provisioning and lifecycle governance.

Explanation

Correct Answer

A:

IaC static analysis should detect risky patterns before production deployment. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Inspect linter rules, RBAC template details, warning severity and pipeline checks. An appropriate controlled response is: Run Bicep validation and reviewed security rules with blocking policy for critical findings.

Incorrect Answers

B:

Ephemeral environments need automated lifecycle, cost and access controls. 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 principle is: IaC static analysis should detect risky patterns before production deployment. The crucial distinction is: IaC static analysis should detect risky patterns before production deployment.

C:

Deployment mode and scope determine whether absent resources may be removed. This would address a different situation, such as: A deployment pipeline uses complete mode unintentionally and deletes resources omitted from an updated ARM template. In the present case, the most directly relevant principle is: IaC static analysis should detect risky patterns before production deployment. The crucial distinction is: IaC static analysis should detect risky patterns before production deployment.

D:

Self-service environment catalogs can standardize provisioning and lifecycle governance. 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 principle is: IaC static analysis should detect risky patterns before production deployment. The crucial distinction is: IaC static analysis should detect risky patterns before production deployment.

Question 155

Before changing the pipeline or service, engineers find: An ACR pipeline pushes vulnerable base images and deploys without considering scan results. Which evidence should the engineer inspect FIRST?

  1. Inspect alert severity, exploitability, exposure, service criticality and exceptions.
  2. Review SBOM, open-source license records, distribution type and exception approvals.
  3. Inspect image digests, scan results, base packages and policy thresholds.
  4. Inspect GitHub Advanced Security CodeQL workflow, languages, SARIF results and merge gates.

Explanation

Correct Answer

C:

Inspect image digests, scan results, base packages and policy thresholds. This directly checks the uncertain behavior or control before changing production. Container security assessment should map findings to immutable images and release risk. The resulting targeted action is: Integrate image vulnerability scanning and a reviewed enforcement gate before production.

Incorrect Answers

A:

Inspect alert severity, exploitability, exposure, service criticality and exceptions. This would address a different situation, such as: Hundreds of low-severity dependency alerts crowd out a critical exploitable issue in production. In the present case, the most directly relevant evidence is: Inspect image digests, scan results, base packages and policy thresholds. The crucial distinction is: Container security assessment should map findings to immutable images and release risk.

B:

Review SBOM, open-source license records, distribution type and exception approvals. This would address a different situation, such as: A binary distribution uses open-source dependencies but its release process does not check license obligations. In the present case, the most directly relevant evidence is: Inspect image digests, scan results, base packages and policy thresholds. The crucial distinction is: Container security assessment should map findings to immutable images and release risk.

D:

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 image digests, scan results, base packages and policy thresholds. The crucial distinction is: Container security assessment should map findings to immutable images and release risk.

Question 156

Before changing the pipeline or service, engineers find: A security vulnerability needs same-day correction but the organization’s normal three-week release train blocks all fixes. Which evidence should the engineer inspect FIRST?

  1. Review component versions, release dependencies, API contracts and pipeline stage graph.
  2. Inspect incident severity, release branch plan, mandatory checks and approver availability.
  3. Inspect Helm release history, rendered manifests, readiness probes and errors.
  4. Review schema changes, client versions, deployment order and rollback requirements.

Explanation

Correct Answer

B:

Inspect incident severity, release branch plan, mandatory checks and approver availability. This directly checks the uncertain behavior or control before changing production. A governed hotfix path can accelerate release while retaining minimum essential quality and traceability. The resulting targeted action is: Define a limited hotfix workflow with priority testing, accountable approval and later backport.

Incorrect Answers

A:

Review component versions, release dependencies, API contracts and pipeline stage graph. This would address a different situation, such as: A frontend release calls an API endpoint introduced only by a backend deployment scheduled later, breaking all sessions. In the present case, the most directly relevant evidence is: Inspect incident severity, release branch plan, mandatory checks and approver availability. The crucial distinction is: A governed hotfix path can accelerate release while retaining minimum essential quality and traceability.

C:

Inspect Helm release history, rendered manifests, readiness probes and errors. This would address a different situation, such as: An AKS Helm upgrade fails after rendering a misconfigured resource, leaving pods partially updated. In the present case, the most directly relevant evidence is: Inspect incident severity, release branch plan, mandatory checks and approver availability. The crucial distinction is: A governed hotfix path can accelerate release while retaining minimum essential quality and traceability.

D:

Review schema changes, client versions, deployment order and rollback requirements. 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 evidence is: Inspect incident severity, release branch plan, mandatory checks and approver availability. The crucial distinction is: A governed hotfix path can accelerate release while retaining minimum essential quality and traceability.

Question 157

Before changing the pipeline or service, engineers find: An organization deletes pipeline logs within a day even though deployment approvals must be auditable for a year. Which evidence should the engineer inspect FIRST?

  1. Inspect agent image announcement, demands, SDK versions and task compatibility.
  2. Inspect stage timeline, dependsOn graph, runner slots and data dependencies.
  3. Review queue latency, pool capacity, concurrent jobs and utilization.
  4. Inspect retention defaults, legal requirements, approval records and storage cost.

Explanation

Correct Answer

D:

Inspect retention defaults, legal requirements, approval records and storage cost. This directly checks the uncertain behavior or control before changing production. Retention policy should cover compliance evidence, release logs and artifact lifecycle. The resulting targeted action is: Configure differentiated retention for required pipelines and audit artifacts.

Incorrect Answers

A:

Inspect agent image announcement, demands, SDK versions and task compatibility. 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 evidence is: Inspect retention defaults, legal requirements, approval records and storage cost. The crucial distinction is: Retention policy should cover compliance evidence, release logs and artifact lifecycle.

B:

Inspect stage timeline, dependsOn graph, runner slots and data dependencies. 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 evidence is: Inspect retention defaults, legal requirements, approval records and storage cost. The crucial distinction is: Retention policy should cover compliance evidence, release logs and artifact lifecycle.

C:

Review queue latency, pool capacity, concurrent jobs and utilization. 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 evidence is: Inspect retention defaults, legal requirements, approval records and storage cost. The crucial distinction is: Retention policy should cover compliance evidence, release logs and artifact lifecycle.

Question 158

A Microsoft DevOps team is addressing: A test task writes its service principal secret into verbose logs on every failing run. Which TWO complementary actions should be taken? Select TWO answers.

  1. Move test credentials into a protected secret store and suppress token output.
  2. Inspect task arguments, secret masking, logs, scope and token issuance.
  3. Collect meaningful coverage with transparent exclusions and enforce reviewed thresholds.
  4. Inspect YAML dependsOn, resource approvals, migration job outcomes and test order.
  5. Add a risk-based container vulnerability scan gate before deployment approval.

Explanation

Correct Answers

A:

Move test credentials into a protected secret store and suppress token output. This supplies the controlled implementation needed for the scenario. Its complementary step is: Inspect task arguments, secret masking, logs, scope and token issuance. Together they address: Testing pipelines must avoid exposing credentials while preserving useful diagnostics.

B:

Inspect task arguments, secret masking, logs, scope and token issuance. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Move test credentials into a protected secret store and suppress token output. Together they address: Testing pipelines must avoid exposing credentials while preserving useful diagnostics.

Incorrect Answers

C:

Collect meaningful coverage with transparent exclusions and enforce reviewed thresholds. This concerns a different DevOps situation: A team's claimed 90% code coverage includes only generated code and excludes its core authorization module. This case instead requires both a targeted investigation (Inspect task arguments, secret masking, logs, scope and token issuance.) and a controlled change (Move test credentials into a protected secret store and suppress token output.).

D:

Inspect YAML dependsOn, resource approvals, migration job outcomes and test order. This concerns a different DevOps situation: A pipeline starts integration tests before deploying the dependent database migration, causing intermittent failures. This case instead requires both a targeted investigation (Inspect task arguments, secret masking, logs, scope and token issuance.) and a controlled change (Move test credentials into a protected secret store and suppress token output.).

E:

Add a risk-based container vulnerability scan gate before deployment approval. This concerns a different DevOps situation: A container image with a known critical vulnerability passes all unit tests and is promoted to production. This case instead requires both a targeted investigation (Inspect task arguments, secret masking, logs, scope and token issuance.) and a controlled change (Move test credentials into a protected secret store and suppress token output.).

Question 159

After implementing the change, the team verifies: An external auditor needs read access to one private repository, but is added as an owner of the whole organization. Which result would BEST demonstrate that the issue is corrected?

  1. A replacement instance uses the same authorized identity without sharing passwords.
  2. A test job cannot push code while an authorized publishing job retains needed access.
  3. The auditor views the specified repo but cannot inspect unrelated private repositories.
  4. A code author cannot self-approve a restricted deployment without a qualified reviewer.

Explanation

Correct Answer

C:

The auditor views the specified repo but cannot inspect unrelated private repositories. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Invite an outside collaborator with restricted access to the reviewed repository. External access should be scoped to the minimum repository and role.

Incorrect Answers

A:

A replacement instance uses the same authorized identity without sharing passwords. This would address a different situation, such as: An autoscaled deployment needs consistent identity across short-lived Azure compute instances that are replaced frequently. In the present case, the most directly relevant verification is: The auditor views the specified repo but cannot inspect unrelated private repositories. The crucial distinction is: External access should be scoped to the minimum repository and role.

B:

A test job cannot push code while an authorized publishing job retains needed access. This would address a different situation, such as: A GitHub Actions test workflow with untrusted input has contents:write even though it only runs tests. In the present case, the most directly relevant verification is: The auditor views the specified repo but cannot inspect unrelated private repositories. The crucial distinction is: External access should be scoped to the minimum repository and role.

D:

A code author cannot self-approve a restricted deployment without a qualified reviewer. 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 verification is: The auditor views the specified repo but cannot inspect unrelated private repositories. The crucial distinction is: External access should be scoped to the minimum repository and role.

Question 160

A Microsoft DevOps team is addressing: A team's claimed 90% code coverage includes only generated code and excludes its core authorization module. Which TWO complementary actions should be taken? Select TWO answers.

  1. Collect meaningful coverage with transparent exclusions and enforce reviewed thresholds.
  2. Require verified unit test checks as part of protected pull request policy.
  3. Inspect connection policy, test-stage service connections, database logs and environment settings.
  4. Inspect service connections, resource IDs, variables and test cleanup scripts.
  5. Review coverage collection filters, included assemblies and security-sensitive modules.

Explanation

Correct Answers

A:

Collect meaningful coverage with transparent exclusions and enforce reviewed thresholds. This supplies the controlled implementation needed for the scenario. Its complementary step is: Review coverage collection filters, included assemblies and security-sensitive modules. Together they address: Coverage gates must reflect relevant tested production code and disclose exclusions.

E:

Review coverage collection filters, included assemblies and security-sensitive modules. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Collect meaningful coverage with transparent exclusions and enforce reviewed thresholds. Together they address: Coverage gates must reflect relevant tested production code and disclose exclusions.

Incorrect Answers

B:

Require verified unit test checks as part of protected pull request policy. This concerns a different DevOps situation: A protected mainline accepts pull requests before a required unit test suite finishes, causing broken packages. This case instead requires both a targeted investigation (Review coverage collection filters, included assemblies and security-sensitive modules.) and a controlled change (Collect meaningful coverage with transparent exclusions and enforce reviewed thresholds.).

C:

Inspect connection policy, test-stage service connections, database logs and environment settings. This concerns a different DevOps situation: Service unit tests pass but integration fails because Azure SQL connectivity differs between staging and production. This case instead requires both a targeted investigation (Review coverage collection filters, included assemblies and security-sensitive modules.) and a controlled change (Collect meaningful coverage with transparent exclusions and enforce reviewed thresholds.).

D:

Inspect service connections, resource IDs, variables and test cleanup scripts. This concerns a different DevOps situation: A test pipeline reuses a production storage account and occasionally deletes customer fixtures. This case instead requires both a targeted investigation (Review coverage collection filters, included assemblies and security-sensitive modules.) and a controlled change (Collect meaningful coverage with transparent exclusions and enforce reviewed thresholds.).

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