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 11

Question 100

An Azure DevOps engineering team evaluates this condition: A federated Azure identity accepts tokens from any branch in a public GitHub repository and can deploy production resources. Which DevOps principle BEST explains the underlying weakness?

  1. Secret rotation must coordinate client update, version retention and recovery.
  2. OIDC federation trust should restrict audience, issuer and repository/environment subject.
  3. Sensitive deployment files should use authenticated encrypted storage and tightly scoped access.
  4. Pipeline secrets should be retrieved from controlled stores and kept out of source and logs.

Explanation

Correct Answer

B:

OIDC federation trust should restrict audience, issuer and repository/environment subject. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Inspect Entra federated credentials, GitHub workflow identity claims and Azure roles. An appropriate controlled response is: Limit trust to an approved protected repository environment and least-privilege scope.

Incorrect Answers

A:

Secret rotation must coordinate client update, version retention and recovery. This would address a different situation, such as: An application release references a database secret version that was deleted during automatic rotation, causing downtime. In the present case, the most directly relevant principle is: OIDC federation trust should restrict audience, issuer and repository/environment subject. The crucial distinction is: OIDC federation trust should restrict audience, issuer and repository/environment subject.

C:

Sensitive deployment files should use authenticated encrypted storage and tightly scoped access. This would address a different situation, such as: A deployment downloads a private configuration file from a public blob URL before replacing placeholders. In the present case, the most directly relevant principle is: OIDC federation trust should restrict audience, issuer and repository/environment subject. The crucial distinction is: OIDC federation trust should restrict audience, issuer and repository/environment subject.

D:

Pipeline secrets should be retrieved from controlled stores and kept out of source and logs. This would address a different situation, such as: A pipeline prints a database password stored in a plain YAML variable during environment deployment. In the present case, the most directly relevant principle is: OIDC federation trust should restrict audience, issuer and repository/environment subject. The crucial distinction is: OIDC federation trust should restrict audience, issuer and repository/environment subject.

Question 101

Before changing the pipeline or service, engineers find: An API dashboard shows acceptable average response time even though the slowest 5% of requests exceed the customer SLA. Which evidence should the engineer inspect FIRST?

  1. Inspect request duration distribution, service cohorts, and p95/p99 KQL queries.
  2. Compare application failures, deployment annotations, version IDs and request telemetry.
  3. Inspect sign-in records, principal IDs, resource IDs, times and failure causes.
  4. Inspect Application Insights sampling settings, exceptions, operation IDs and request volumes.

Explanation

Correct Answer

A:

Inspect request duration distribution, service cohorts, and p95/p99 KQL queries. This directly checks the uncertain behavior or control before changing production. Performance analysis should include tail latency percentiles rather than mean alone. The resulting targeted action is: Measure and alert on relevant latency percentiles with suitable dimensions.

Incorrect Answers

B:

Compare application failures, deployment annotations, version IDs and request telemetry. This would address a different situation, such as: A new release increases HTTP 500s, but the team cannot match failures to deployment timestamps. In the present case, the most directly relevant evidence is: Inspect request duration distribution, service cohorts, and p95/p99 KQL queries. The crucial distinction is: Performance analysis should include tail latency percentiles rather than mean alone.

C:

Inspect sign-in records, principal IDs, resource IDs, times and failure causes. This would address a different situation, such as: Azure resource logs show unusual production service principal sign-ins, but a dashboard aggregates all identities together. In the present case, the most directly relevant evidence is: Inspect request duration distribution, service cohorts, and p95/p99 KQL queries. The crucial distinction is: Performance analysis should include tail latency percentiles rather than mean alone.

D:

Inspect Application Insights sampling settings, exceptions, operation IDs and request volumes. This would address a different situation, such as: A low-volume payment failure disappears from diagnostic traces because sampling drops all relevant requests. In the present case, the most directly relevant evidence is: Inspect request duration distribution, service cohorts, and p95/p99 KQL queries. The crucial distinction is: Performance analysis should include tail latency percentiles rather than mean alone.

Question 102

An Azure DevOps engineering team evaluates this condition: A repository wiki describes a build script that was removed six months ago and breaks onboarding. Which DevOps principle BEST explains the underlying weakness?

  1. API documentation must be published from the approved version and checked for compatibility.
  2. Cross-platform collaboration requires configured repository and work-item integration.
  3. Documentation should be versioned with the workflow it explains and validated during change.
  4. Diagrams should reflect executable workflow dependencies and be maintainable with source.

Explanation

Correct Answer

C:

Documentation should be versioned with the workflow it explains and validated during change. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Compare wiki revisions, pipeline definitions, links and onboarding incident history. An appropriate controlled response is: Keep technical runbooks alongside source changes with reviewed documentation checks.

Incorrect Answers

A:

API documentation must be published from the approved version and checked for compatibility. This would address a different situation, such as: A versioned REST API deploys successfully but its consumer documentation still lists removed fields. In the present case, the most directly relevant principle is: Documentation should be versioned with the workflow it explains and validated during change. The crucial distinction is: Documentation should be versioned with the workflow it explains and validated during change.

B:

Cross-platform collaboration requires configured repository and work-item integration. This would address a different situation, such as: A team uses GitHub for code and Azure Boards for planning, but pull requests never appear in its work items. In the present case, the most directly relevant principle is: Documentation should be versioned with the workflow it explains and validated during change. The crucial distinction is: Documentation should be versioned with the workflow it explains and validated during change.

D:

Diagrams should reflect executable workflow dependencies and be maintainable with source. This would address a different situation, such as: New engineers misread a multi-stage release dependency diagram because process documentation uses an obsolete screenshot. In the present case, the most directly relevant principle is: Documentation should be versioned with the workflow it explains and validated during change. The crucial distinction is: Documentation should be versioned with the workflow it explains and validated during change.

Question 103

Before changing the pipeline or service, engineers find: An internal library ships monthly but its changelog omits breaking changes unless one maintainer remembers to edit it. Which evidence should the engineer inspect FIRST?

  1. Review commit labels, semantic versions, pull request metadata and changelog history.
  2. Review OpenAPI specification, release artifact version and documentation publication stage.
  3. Review pipeline notification subscriptions, Teams integration, owners and incident escalation.
  4. Compare wiki revisions, pipeline definitions, links and onboarding incident history.

Explanation

Correct Answer

A:

Review commit labels, semantic versions, pull request metadata and changelog history. This directly checks the uncertain behavior or control before changing production. Release documentation should reconcile source changes with versioning and consumer impact. The resulting targeted action is: Generate draft release notes from structured commits and require review of breaking changes.

Incorrect Answers

B:

Review OpenAPI specification, release artifact version and documentation publication stage. This would address a different situation, such as: A versioned REST API deploys successfully but its consumer documentation still lists removed fields. In the present case, the most directly relevant evidence is: Review commit labels, semantic versions, pull request metadata and changelog history. The crucial distinction is: Release documentation should reconcile source changes with versioning and consumer impact.

C:

Review pipeline notification subscriptions, Teams integration, owners and incident escalation. 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 evidence is: Review commit labels, semantic versions, pull request metadata and changelog history. The crucial distinction is: Release documentation should reconcile source changes with versioning and consumer impact.

D:

Compare wiki revisions, pipeline definitions, links and onboarding incident history. 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 evidence is: Review commit labels, semantic versions, pull request metadata and changelog history. The crucial distinction is: Release documentation should reconcile source changes with versioning and consumer impact.

Question 104

After implementing the change, the team verifies: Release rollback fails because the pipeline cleaned the package version deployed last week. Which result would BEST demonstrate that the issue is corrected?

  1. A newly built wheel no longer includes the vulnerable dependency and tests pass.
  2. Existing consumers remain on supported prior versions unless they explicitly upgrade.
  3. A rehearsal restores the prior release package without relying on an engineer cache.
  4. A clean hosted agent resolves the approved package without a developer workstation.

Explanation

Correct Answer

C:

A rehearsal restores the prior release package without relying on an engineer cache. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Protect deployed and rollback-candidate artifacts with defined retention exceptions. Retention must preserve artifacts and dependencies required for defined rollback windows.

Incorrect Answers

A:

A newly built wheel no longer includes the vulnerable dependency and tests pass. This would address a different situation, such as: A pipeline publishes Python wheels from a feed after an advisory identifies a vulnerable indirect dependency. In the present case, the most directly relevant verification is: A rehearsal restores the prior release package without relying on an engineer cache. The crucial distinction is: Retention must preserve artifacts and dependencies required for defined rollback windows.

B:

Existing consumers remain on supported prior versions unless they explicitly upgrade. This would address a different situation, such as: An internal SDK removes a public method yet publishes the next build as a patch release, breaking consumers. In the present case, the most directly relevant verification is: A rehearsal restores the prior release package without relying on an engineer cache. The crucial distinction is: Retention must preserve artifacts and dependencies required for defined rollback windows.

D:

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: A rehearsal restores the prior release package without relying on an engineer cache. The crucial distinction is: Retention must preserve artifacts and dependencies required for defined rollback windows.

Question 105

The DevOps team must resolve this situation: A post-deployment verification job runs even when staging tests fail because its condition overrides the default dependency check. Which engineering action is MOST appropriate?

  1. Include explicit succeeded dependencies in the custom promotion condition.
  2. Optimize test partitions and concurrency to fit approved parallel job capacity.
  3. Use protected secret variables or Key Vault integration and suppress credential output.
  4. Separate production variables and restrict group use to approved production pipelines.

Explanation

Correct Answer

A:

Include explicit succeeded dependencies in the custom promotion condition. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: A failed test stage prevents the dependent production verification and deployment. Custom YAML conditions must retain required success prerequisites.

Incorrect Answers

B:

Optimize test partitions and concurrency to fit approved parallel job capacity. This would address a different situation, such as: A large repository launches 100 independent test jobs though the organization owns only 10 paid parallel agent slots. In the present case, the most directly relevant engineering action is: Include explicit succeeded dependencies in the custom promotion condition. The crucial distinction is: Custom YAML conditions must retain required success prerequisites.

C:

Use protected secret variables or Key Vault integration and suppress credential output. This would address a different situation, such as: An Azure Pipelines task group exposes a deployment secret as a plain variable and prints it during release. In the present case, the most directly relevant engineering action is: Include explicit succeeded dependencies in the custom promotion condition. The crucial distinction is: Custom YAML conditions must retain required success prerequisites.

D:

Separate production variables and restrict group use to approved production pipelines. 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 engineering action is: Include explicit succeeded dependencies in the custom promotion condition. The crucial distinction is: Custom YAML conditions must retain required success prerequisites.

Question 106

An engineering design review identifies: A pipeline caches packages under one global key even after lockfile changes, causing inconsistent builds. Which shortcut should the team MOST specifically avoid for this case?

  1. Delete the original feed before checking consuming projects.
  2. Reuse the same stale cache forever regardless of package changes.
  3. Ignore expiry because yesterday's deployment was successful.
  4. Increase application test timeouts to address agent scheduling delays.

Explanation

Correct Answer

B:

Reuse the same stale cache forever regardless of package changes. This shortcut directly undermines the stated control or workflow. A safer action is: Use dependency-aware cache keys and safe restore fallback behavior. Explanation: Cache keys must include dependency inputs so old artifacts cannot silently corrupt builds.

Incorrect Answers

A:

Delete the original feed before checking consuming projects. This would address a different situation, such as: A package registry is scheduled for migration, but retired feeds still contain dependencies used by maintained builds. In the present case, the most directly relevant unsafe shortcut is: Reuse the same stale cache forever regardless of package changes. The crucial distinction is: Cache keys must include dependency inputs so old artifacts cannot silently corrupt builds.

C:

Ignore expiry because yesterday's deployment was successful. This would address a different situation, such as: A legacy release service principal secret is set to expire tomorrow and pipeline maintenance has no automated credential lifecycle. In the present case, the most directly relevant unsafe shortcut is: Reuse the same stale cache forever regardless of package changes. The crucial distinction is: Cache keys must include dependency inputs so old artifacts cannot silently corrupt builds.

D:

Increase application test timeouts to address agent scheduling delays. 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 unsafe shortcut is: Reuse the same stale cache forever regardless of package changes. The crucial distinction is: Cache keys must include dependency inputs so old artifacts cannot silently corrupt builds.

Question 107

An Azure DevOps engineering team evaluates this condition: An AKS update removes every API pod simultaneously because maxUnavailable equals the full replica count. Which DevOps principle BEST explains the underlying weakness?

  1. Rolling update policies should preserve minimum ready capacity during replacement.
  2. Database deployment scripts should be repeatable or safely versioned with migration state.
  3. Deployment strategy must preserve known-good artifacts and tested rollback paths.
  4. Ring deployment sequences exposure through controlled representative cohorts.

Explanation

Correct Answer

A:

Rolling update policies should preserve minimum ready capacity during replacement. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Inspect Deployment strategy, replica count, readiness probes and disruption events. An appropriate controlled response is: Set appropriate maxUnavailable/maxSurge and validate readiness during rollout.

Incorrect Answers

B:

Database deployment scripts should be repeatable or safely versioned with migration state. This would address a different situation, such as: A release database task retries after a timeout and creates duplicate schema objects, causing subsequent deployments to fail. In the present case, the most directly relevant principle is: Rolling update policies should preserve minimum ready capacity during replacement. The crucial distinction is: Rolling update policies should preserve minimum ready capacity during replacement.

C:

Deployment strategy must preserve known-good artifacts and tested rollback paths. This would address a different situation, such as: A release detects elevated errors but cannot roll back because the prior verified package was deleted. In the present case, the most directly relevant principle is: Rolling update policies should preserve minimum ready capacity during replacement. The crucial distinction is: Rolling update policies should preserve minimum ready capacity during replacement.

D:

Ring deployment sequences exposure through controlled representative cohorts. This would address a different situation, such as: A desktop client update is rolled out to every employee globally at the same moment, causing a widespread outage. In the present case, the most directly relevant principle is: Rolling update policies should preserve minimum ready capacity during replacement. The crucial distinction is: Rolling update policies should preserve minimum ready capacity during replacement.

Question 108

After implementing the change, the team verifies: A critical production fix is committed to an old release branch and never reaches the mainline, so the bug returns next month. Which result would BEST demonstrate that the issue is corrected?

  1. An added failing commit invalidates prior green status until retested.
  2. A sample outside contribution requires approved checks before entering protected mainline.
  3. A release process selects the exact approved commit instead of a similarly named branch.
  4. The corrected test fails before and passes after the fix on both maintained lines.

Explanation

Correct Answer

D:

The corrected test fails before and passes after the fix on both maintained lines. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Require reviewed back-merges or cherry-picks of hotfixes into active branches. Hotfix processes must propagate tested corrections to every maintained affected line.

Incorrect Answers

A:

An added failing commit invalidates prior green status until retested. This would address a different situation, such as: A pull request passes security tests, then receives new commits but can merge without rerunning required checks. In the present case, the most directly relevant verification is: The corrected test fails before and passes after the fix on both maintained lines. The crucial distinction is: Hotfix processes must propagate tested corrections to every maintained affected line.

B:

A sample outside contribution requires approved checks before entering protected mainline. 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 verification is: The corrected test fails before and passes after the fix on both maintained lines. The crucial distinction is: Hotfix processes must propagate tested corrections to every maintained affected line.

C:

A release process selects the exact approved commit instead of a similarly named branch. 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 verification is: The corrected test fails before and passes after the fix on both maintained lines. The crucial distinction is: Hotfix processes must propagate tested corrections to every maintained affected line.

Question 109

An Azure DevOps engineering team evaluates this condition: External contributors can directly edit protected organization branches rather than submitting reviewed fork-based changes. Which DevOps principle BEST explains the underlying weakness?

  1. Maintenance branching should match support windows and preserve immutable release history.
  2. Every deployable branch needs controls proportionate to production impact.
  3. External contributions should use constrained write scope and enforced review.
  4. Feature toggles can separate deployment from activation while limiting branch divergence.

Explanation

Correct Answer

C:

External contributions should use constrained write scope and enforced review. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Inspect collaborator roles, fork permissions and branch protection rules. An appropriate controlled response is: Use fork-and-pull-request contributions with least-privilege branch access.

Incorrect Answers

A:

Maintenance branching should match support windows and preserve immutable release history. 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 principle is: External contributions should use constrained write scope and enforced review. The crucial distinction is: External contributions should use constrained write scope and enforced review.

B:

Every deployable branch needs controls proportionate to production impact. This would address a different situation, such as: A company protects main but permits unrestricted direct commits to an unprotected release branch deployed to production. In the present case, the most directly relevant principle is: External contributions should use constrained write scope and enforced review. The crucial distinction is: External contributions should use constrained write scope and enforced review.

D:

Feature toggles can separate deployment from activation while limiting branch divergence. This would address a different situation, such as: A feature needs gradual rollout, but the team maintains a year-long divergent branch to hide unfinished functionality. In the present case, the most directly relevant principle is: External contributions should use constrained write scope and enforced review. The crucial distinction is: External contributions should use constrained write scope and enforced review.

Question 110

Before changing the pipeline or service, engineers find: New engineers misread a multi-stage release dependency diagram because process documentation uses an obsolete screenshot. Which evidence should the engineer inspect FIRST?

  1. Inspect pipeline YAML dependencies, existing diagrams and documentation change records.
  2. Inspect Azure Boards GitHub connection, repository authorization and linked work items.
  3. Compare wiki revisions, pipeline definitions, links and onboarding incident history.
  4. Inspect document edit rights, source history, code review ownership and decision status.

Explanation

Correct Answer

A:

Inspect pipeline YAML dependencies, existing diagrams and documentation change records. This directly checks the uncertain behavior or control before changing production. Diagrams should reflect executable workflow dependencies and be maintainable with source. The resulting targeted action is: Maintain a reviewed Mermaid diagram generated or updated alongside pipeline changes.

Incorrect Answers

B:

Inspect Azure Boards GitHub connection, repository authorization and linked work items. This would address a different situation, such as: A team uses GitHub for code and Azure Boards for planning, but pull requests never appear in its work items. In the present case, the most directly relevant evidence is: Inspect pipeline YAML dependencies, existing diagrams and documentation change records. The crucial distinction is: Diagrams should reflect executable workflow dependencies and be maintainable with source.

C:

Compare wiki revisions, pipeline definitions, links and onboarding incident history. 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 evidence is: Inspect pipeline YAML dependencies, existing diagrams and documentation change records. The crucial distinction is: Diagrams should reflect executable workflow dependencies and be maintainable with source.

D:

Inspect document edit rights, source history, code review ownership and decision status. This would address a different situation, such as: An architecture decision record is stored in a shared folder where anyone can overwrite approved design rationale without review. In the present case, the most directly relevant evidence is: Inspect pipeline YAML dependencies, existing diagrams and documentation change records. The crucial distinction is: Diagrams should reflect executable workflow dependencies and be maintainable with source.

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