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 24

Question 230

An Azure DevOps engineering team evaluates this condition: An Azure DevOps pipeline's Azure Resource Manager service connection fails each quarter when its client secret expires. Which DevOps principle BEST explains the underlying weakness?

  1. Agent placement should satisfy network access and security constraints without overprivilege.
  2. Environment approvals apply only when pipelines use the protected deployment resource correctly.
  3. Variable groups must have environment-specific authorization and secret access controls.
  4. Azure service connections can use workload identity federation instead of expiring shared secrets.

Explanation

Correct Answer

D:

Azure service connections can use workload identity federation instead of expiring shared secrets. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Inspect endpoint authorization, service principal federation subject and Azure RBAC scope. An appropriate controlled response is: Migrate the service connection to supported workload identity federation with scoped access.

Incorrect Answers

A:

Agent placement should satisfy network access and security constraints without overprivilege. This would address a different situation, such as: A build must reach private package infrastructure inaccessible from Microsoft-hosted agents. In the present case, the most directly relevant principle is: Azure service connections can use workload identity federation instead of expiring shared secrets. The crucial distinction is: Azure service connections can use workload identity federation instead of expiring shared secrets.

B:

Environment approvals apply only when pipelines use the protected deployment resource correctly. This would address a different situation, such as: A YAML pipeline references a production environment but deploys through an unprotected job that never uses the environment resource. In the present case, the most directly relevant principle is: Azure service connections can use workload identity federation instead of expiring shared secrets. The crucial distinction is: Azure service connections can use workload identity federation instead of expiring shared secrets.

C:

Variable groups must have environment-specific authorization and secret access controls. 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 principle is: Azure service connections can use workload identity federation instead of expiring shared secrets. The crucial distinction is: Azure service connections can use workload identity federation instead of expiring shared secrets.

Question 231

Before changing the pipeline or service, engineers find: A deployment workflow has a client secret in a variable group that is copied between projects and never rotated. Which evidence should the engineer inspect FIRST?

  1. Inspect organization membership, outside collaborator assignments and repository visibility.
  2. Inspect service connection credentials, Entra federated subject, role assignments and usage logs.
  3. Inspect token scope, audit events, bot responsibilities and repository installation.
  4. Inspect project memberships, access level, team role and pipeline permissions.

Explanation

Correct Answer

B:

Inspect service connection credentials, Entra federated subject, role assignments and usage logs. This directly checks the uncertain behavior or control before changing production. Federated workload identity can provide scoped short-lived Azure access without stored shared secrets. The resulting targeted action is: Adopt supported workload identity federation with least-privilege Azure scope.

Incorrect Answers

A:

Inspect organization membership, outside collaborator assignments and repository visibility. 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 evidence is: Inspect service connection credentials, Entra federated subject, role assignments and usage logs. The crucial distinction is: Federated workload identity can provide scoped short-lived Azure access without stored shared secrets.

C:

Inspect token scope, audit events, bot responsibilities and repository installation. This would address a different situation, such as: An automation bot uses a maintainer's all-repository personal access token to comment on pull requests. In the present case, the most directly relevant evidence is: Inspect service connection credentials, Entra federated subject, role assignments and usage logs. The crucial distinction is: Federated workload identity can provide scoped short-lived Azure access without stored shared secrets.

D:

Inspect project memberships, access level, team role and pipeline permissions. 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 evidence is: Inspect service connection credentials, Entra federated subject, role assignments and usage logs. The crucial distinction is: Federated workload identity can provide scoped short-lived Azure access without stored shared secrets.

Question 232

A Microsoft DevOps team is addressing: Release notes are composed from memory and routinely omit merged security improvements. Which TWO complementary actions should be taken? Select TWO answers.

  1. Inspect Azure Boards development links, commit conventions and pipeline release metadata.
  2. Link dependent work items across teams and use delivery plans to visualize blockers.
  3. Compare release tags, merged pull requests, linked work items and note generation rules.
  4. Update related GitHub Issues from protected workflow events with release status and error context.
  5. Generate reviewed release notes from the changes between immutable release references.

Explanation

Correct Answers

C:

Compare release tags, merged pull requests, linked work items and note generation rules. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Generate reviewed release notes from the changes between immutable release references. Together they address: Release summaries should be derived from verified source and work-item changes.

E:

Generate reviewed release notes from the changes between immutable release references. This supplies the controlled implementation needed for the scenario. Its complementary step is: Compare release tags, merged pull requests, linked work items and note generation rules. Together they address: Release summaries should be derived from verified source and work-item changes.

Incorrect Answers

A:

Inspect Azure Boards development links, commit conventions and pipeline release metadata. This concerns a different DevOps situation: Azure Boards shows completed user stories, but there is no way to identify the commits and deployments delivering each story. This case instead requires both a targeted investigation (Compare release tags, merged pull requests, linked work items and note generation rules.) and a controlled change (Generate reviewed release notes from the changes between immutable release references.).

B:

Link dependent work items across teams and use delivery plans to visualize blockers. This concerns a different DevOps situation: A platform dependency blocks three application teams, but each Azure Boards team tracks a separate unrelated task. This case instead requires both a targeted investigation (Compare release tags, merged pull requests, linked work items and note generation rules.) and a controlled change (Generate reviewed release notes from the changes between immutable release references.).

D:

Update related GitHub Issues from protected workflow events with release status and error context. This concerns a different DevOps situation: A deployment job fails but the failure is not associated with the GitHub issue that requested the release. This case instead requires both a targeted investigation (Compare release tags, merged pull requests, linked work items and note generation rules.) and a controlled change (Generate reviewed release notes from the changes between immutable release references.).

Question 233

An Azure DevOps engineering team evaluates this condition: Service unit tests pass but integration fails because Azure SQL connectivity differs between staging and production. Which DevOps principle BEST explains the underlying weakness?

  1. Test stages must declare prerequisite environment and schema dependencies explicitly.
  2. Unit test gates should complete successfully against the proposed change before merge.
  3. Integration tests must exercise representative dependent services and configuration.
  4. Security policy gates should prevent release of unapproved critical vulnerabilities.

Explanation

Correct Answer

C:

Integration tests must exercise representative dependent services and configuration. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Inspect connection policy, test-stage service connections, database logs and environment settings. An appropriate controlled response is: Run isolated integration tests against approved representative Azure SQL dependencies.

Incorrect Answers

A:

Test stages must declare prerequisite environment and schema dependencies explicitly. This would address a different situation, such as: A pipeline starts integration tests before deploying the dependent database migration, causing intermittent failures. In the present case, the most directly relevant principle is: Integration tests must exercise representative dependent services and configuration. The crucial distinction is: Integration tests must exercise representative dependent services and configuration.

B:

Unit test gates should complete successfully against the proposed change before merge. 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 principle is: Integration tests must exercise representative dependent services and configuration. The crucial distinction is: Integration tests must exercise representative dependent services and configuration.

D:

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: Integration tests must exercise representative dependent services and configuration. The crucial distinction is: Integration tests must exercise representative dependent services and configuration.

Question 234

A Microsoft DevOps team is addressing: An untrusted pull request can modify the secret-scanning workflow and disable scanning in its own run. Which TWO complementary actions should be taken? Select TWO answers.

  1. Combine appropriate code, dependency, secret and container scanning with tested authorization scenarios.
  2. Enforce independently controlled scanning status and immutable required checks on protected branches.
  3. Use risk-based triage with owners, remediation SLAs and documented waivers.
  4. Inspect image digests, scan results, base packages and policy thresholds.
  5. Inspect workflow PR permissions, required checks and protected branch policy.

Explanation

Correct Answers

B:

Enforce independently controlled scanning status and immutable required checks on protected branches. This supplies the controlled implementation needed for the scenario. Its complementary step is: Inspect workflow PR permissions, required checks and protected branch policy. Together they address: Security workflows require protected configuration and evaluation from trusted context.

E:

Inspect workflow PR permissions, required checks and protected branch policy. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Enforce independently controlled scanning status and immutable required checks on protected branches. Together they address: Security workflows require protected configuration and evaluation from trusted context.

Incorrect Answers

A:

Combine appropriate code, dependency, secret and container scanning with tested authorization scenarios. This concerns a different DevOps situation: A project relies entirely on container image vulnerability scanning while application source contains an authorization flaw. This case instead requires both a targeted investigation (Inspect workflow PR permissions, required checks and protected branch policy.) and a controlled change (Enforce independently controlled scanning status and immutable required checks on protected branches.).

C:

Use risk-based triage with owners, remediation SLAs and documented waivers. 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 workflow PR permissions, required checks and protected branch policy.) and a controlled change (Enforce independently controlled scanning status and immutable required checks on protected branches.).

D:

Inspect image digests, scan results, base packages and policy thresholds. This concerns a different DevOps situation: An ACR pipeline pushes vulnerable base images and deploys without considering scan results. This case instead requires both a targeted investigation (Inspect workflow PR permissions, required checks and protected branch policy.) and a controlled change (Enforce independently controlled scanning status and immutable required checks on protected branches.).

Question 235

Before changing the pipeline or service, engineers find: A downstream stage cannot determine the storage endpoint created by an infrastructure provisioning stage. Which evidence should the engineer inspect FIRST?

  1. Inspect library permissions, pipeline authorization, variable source and consumer identities.
  2. Review pipeline execution settings, resource locks and deployment timestamps.
  3. Inspect GitHub workflow permissions, Entra federated identity credentials, scopes and token audience.
  4. Inspect task output names, stage dependencies and variable references.

Explanation

Correct Answer

D:

Inspect task output names, stage dependencies and variable references. This directly checks the uncertain behavior or control before changing production. Cross-stage values must be explicitly published and referenced through supported output syntax. The resulting targeted action is: Emit a named output variable and consume it through the appropriate dependency expression.

Incorrect Answers

A:

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 task output names, stage dependencies and variable references. The crucial distinction is: Cross-stage values must be explicitly published and referenced through supported output syntax.

B:

Review pipeline execution settings, resource locks and deployment timestamps. This would address a different situation, such as: Two production deployments target the same App Service slot simultaneously and the earlier one overwrites the newer release. In the present case, the most directly relevant evidence is: Inspect task output names, stage dependencies and variable references. The crucial distinction is: Cross-stage values must be explicitly published and referenced through supported output syntax.

C:

Inspect GitHub workflow permissions, Entra federated identity credentials, scopes and token audience. This would address a different situation, such as: A GitHub Actions release stores a long-lived Azure service principal password in repository secrets for every deployment. In the present case, the most directly relevant evidence is: Inspect task output names, stage dependencies and variable references. The crucial distinction is: Cross-stage values must be explicitly published and referenced through supported output syntax.

Question 236

Before changing the pipeline or service, engineers find: Customer-reported bugs arrive in chat messages and are never consistently recorded for the development team. Which evidence should the engineer inspect FIRST?

  1. Compare branch ages, pull request histories, work-item links and release tags.
  2. Compare support messages, GitHub Issues labels, assignees and issue closure history.
  3. Review parent features, dependency links, delivery plans and blocked work items.
  4. Review workflow run identities, issue references, failure events and notification rules.

Explanation

Correct Answer

B:

Compare support messages, GitHub Issues labels, assignees and issue closure history. This directly checks the uncertain behavior or control before changing production. Feedback must enter an owned trackable workflow with prioritization and resolution evidence. The resulting targeted action is: Use a structured GitHub Issues intake process with ownership, labels and linked fixes.

Incorrect Answers

A:

Compare branch ages, pull request histories, work-item links and release tags. This would address a different situation, such as: An engineering organization uses long-lived feature branches, and its hotfixes regularly miss previously merged changes. In the present case, the most directly relevant evidence is: Compare support messages, GitHub Issues labels, assignees and issue closure history. The crucial distinction is: Feedback must enter an owned trackable workflow with prioritization and resolution evidence.

C:

Review parent features, dependency links, delivery plans and blocked work items. This would address a different situation, such as: A platform dependency blocks three application teams, but each Azure Boards team tracks a separate unrelated task. In the present case, the most directly relevant evidence is: Compare support messages, GitHub Issues labels, assignees and issue closure history. The crucial distinction is: Feedback must enter an owned trackable workflow with prioritization and resolution evidence.

D:

Review workflow run identities, issue references, failure events and notification rules. This would address a different situation, such as: A deployment job fails but the failure is not associated with the GitHub issue that requested the release. In the present case, the most directly relevant evidence is: Compare support messages, GitHub Issues labels, assignees and issue closure history. The crucial distinction is: Feedback must enter an owned trackable workflow with prioritization and resolution evidence.

Question 237

After implementing the change, the team verifies: A deployment job fails but the failure is not associated with the GitHub issue that requested the release. Which result would BEST demonstrate that the issue is corrected?

  1. A hotfix reaches the protected mainline through review with all intended prior changes intact.
  2. A failed sample release leaves the linked issue open and alerts its responsible team.
  3. The shared platform dependency appears before downstream releases in an integrated plan.
  4. An intentionally blocked security review is visible to the correct owner before merge.

Explanation

Correct Answer

B:

A failed sample release leaves the linked issue open and alerts its responsible team. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Update related GitHub Issues from protected workflow events with release status and error context. Closed-loop delivery needs automated status updates connected to the requesting work.

Incorrect Answers

A:

A hotfix reaches the protected mainline through review with all intended prior changes intact. This would address a different situation, such as: An engineering organization uses long-lived feature branches, and its hotfixes regularly miss previously merged changes. In the present case, the most directly relevant verification is: A failed sample release leaves the linked issue open and alerts its responsible team. The crucial distinction is: Closed-loop delivery needs automated status updates connected to the requesting work.

C:

The shared platform dependency appears before downstream releases in an integrated plan. This would address a different situation, such as: A platform dependency blocks three application teams, but each Azure Boards team tracks a separate unrelated task. In the present case, the most directly relevant verification is: A failed sample release leaves the linked issue open and alerts its responsible team. The crucial distinction is: Closed-loop delivery needs automated status updates connected to the requesting work.

D:

An intentionally blocked security review is visible to the correct owner before merge. This would address a different situation, such as: A team cannot tell when a pull request is waiting for security approval versus failed tests. In the present case, the most directly relevant verification is: A failed sample release leaves the linked issue open and alerts its responsible team. The crucial distinction is: Closed-loop delivery needs automated status updates connected to the requesting work.

Question 238

A Microsoft DevOps team is addressing: After migrating to YAML, a production release skips mandatory human approval that existed in a classic release stage. Which TWO complementary actions should be taken? Select TWO answers.

  1. Track flaky test metrics and assign root-cause fixes rather than unconditional retries.
  2. Compare classic stage approvals with YAML environment checks and service-connection authorization.
  3. Configure environment-level approvals and checks outside untrusted YAML modification paths.
  4. Pin or explicitly install supported toolchains and test migrations before image retirement.
  5. Remove token emission and enforce safe logging with secret scanning of pipeline output.

Explanation

Correct Answers

B:

Compare classic stage approvals with YAML environment checks and service-connection authorization. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Configure environment-level approvals and checks outside untrusted YAML modification paths. Together they address: Migration must preserve policy-enforced approvals through supported protected resources.

C:

Configure environment-level approvals and checks outside untrusted YAML modification paths. This supplies the controlled implementation needed for the scenario. Its complementary step is: Compare classic stage approvals with YAML environment checks and service-connection authorization. Together they address: Migration must preserve policy-enforced approvals through supported protected resources.

Incorrect Answers

A:

Track flaky test metrics and assign root-cause fixes rather than unconditional retries. This concerns a different DevOps situation: Pipeline duration grows because a flaky test is retried eight times but the dashboard still shows every build as green. This case instead requires both a targeted investigation (Compare classic stage approvals with YAML environment checks and service-connection authorization.) and a controlled change (Configure environment-level approvals and checks outside untrusted YAML modification paths.).

D:

Pin or explicitly install supported toolchains and test migrations before image retirement. This concerns a different DevOps situation: Builds fail after an Azure Pipelines hosted image update because a legacy runtime was implicitly available before. This case instead requires both a targeted investigation (Compare classic stage approvals with YAML environment checks and service-connection authorization.) and a controlled change (Configure environment-level approvals and checks outside untrusted YAML modification paths.).

E:

Remove token emission and enforce safe logging with secret scanning of pipeline output. This concerns a different DevOps situation: Verbose diagnostic logging starts printing deployment tokens after a new task version update. This case instead requires both a targeted investigation (Compare classic stage approvals with YAML environment checks and service-connection authorization.) and a controlled change (Configure environment-level approvals and checks outside untrusted YAML modification paths.).

Question 239

After implementing the change, the team verifies: A binary distribution uses open-source dependencies but its release process does not check license obligations. Which result would BEST demonstrate that the issue is corrected?

  1. A package from an unapproved registry fails the review despite passing unit tests.
  2. A sample repository finding is visible to authorized central security analysts.
  3. A deliberate injection-pattern test creates a security finding before merge.
  4. A policy-incompatible dependency prevents publication until disposition.

Explanation

Correct Answer

D:

A policy-incompatible dependency prevents publication until disposition. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Add software composition/license policy checks and reviewed exceptions to CI. Compliance scanning should identify licensing constraints before external software distribution.

Incorrect Answers

A:

A package from an unapproved registry fails the review despite passing unit tests. This would address a different situation, such as: A dependency update workflow proposes a new package version but its artifact origin is not recorded, weakening supply-chain review. In the present case, the most directly relevant verification is: A policy-incompatible dependency prevents publication until disposition. The crucial distinction is: Compliance scanning should identify licensing constraints before external software distribution.

B:

A sample repository finding is visible to authorized central security analysts. This would address a different situation, such as: Security findings in Azure DevOps repositories never appear in the organization's central Defender for Cloud dashboard. In the present case, the most directly relevant verification is: A policy-incompatible dependency prevents publication until disposition. The crucial distinction is: Compliance scanning should identify licensing constraints before external software distribution.

C:

A deliberate injection-pattern test creates a security finding before merge. 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 verification is: A policy-incompatible dependency prevents publication until disposition. The crucial distinction is: Compliance scanning should identify licensing constraints before external software distribution.

Question 240

The DevOps team must resolve this situation: Application images are deployed manually after infra provisioning and the deployed image tag is not recorded in Bicep or the release pipeline. Which engineering action is MOST appropriate?

  1. Reference protected secrets via governed Key Vault/identity patterns without logging values.
  2. Pass verified immutable image identifiers through a controlled IaC deployment interface.
  3. Use a reviewed Deny policy where prevention is required and remediate existing noncompliance separately.
  4. Publish a versioned Bicep networking module with secure defaults and reviewed parameters.

Explanation

Correct Answer

B:

Pass verified immutable image identifiers through a controlled IaC deployment interface. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: Production uses the approved digest recorded in the associated pipeline run. Infrastructure and application delivery need traceable version handoff without mutable assumptions.

Incorrect Answers

A:

Reference protected secrets via governed Key Vault/identity patterns without logging values. This would address a different situation, such as: A Bicep parameter file stores database administrator passwords in plaintext committed to Git. In the present case, the most directly relevant engineering action is: Pass verified immutable image identifiers through a controlled IaC deployment interface. The crucial distinction is: Infrastructure and application delivery need traceable version handoff without mutable assumptions.

C:

Use a reviewed Deny policy where prevention is required and remediate existing noncompliance separately. This would address a different situation, such as: A platform team thinks an Azure Policy Audit effect blocks deployment of unencrypted storage, but noncompliant accounts continue being created. In the present case, the most directly relevant engineering action is: Pass verified immutable image identifiers through a controlled IaC deployment interface. The crucial distinction is: Infrastructure and application delivery need traceable version handoff without mutable assumptions.

D:

Publish a versioned Bicep networking module with secure defaults and reviewed parameters. This would address a different situation, such as: Six teams manually create nearly identical VNets with inconsistent NSG defaults and missing diagnostics. In the present case, the most directly relevant engineering action is: Pass verified immutable image identifiers through a controlled IaC deployment interface. The crucial distinction is: Infrastructure and application delivery need traceable version handoff without mutable assumptions.

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