Pass Microsoft DevOps AZ-400 Exam in First Attempt Easily
Real Microsoft DevOps AZ-400 Exam Questions, Accurate & Verified Answers As Experienced in the Actual Test!

Verified by experts
3 products

You save $69.98

AZ-400 Premium Bundle

  • Premium File 398 Questions & Answers
  • Last Update: Nov 11, 2026
  • Training Course 27 Lectures
  • Study Guide 784 Pages
$79.99 $149.97

Purchase Individually

  • Premium File

    398 Questions & Answers
    Last Update: Nov 11, 2026

    $76.99
    $69.99
  • Training Course

    27 Lectures

    $43.99
    $39.99
  • Study Guide

    784 Pages

    $43.99
    $39.99

Designing and Implementing Microsoft DevOps Solutions AZ-400 Practice Test 22

Question 210

An automation bot holds a user personal access token with access to every organization repository solely to open pull requests.

What is the most appropriate action for this DevOps team?

  1. Separate credentials by environment and purpose, use short lifetimes or federation, and test rotation and revocation.
  2. Use a GitHub App installation with narrowly requested repository permissions and short-lived installation tokens.
  3. Use a managed identity for the Azure-hosted workload and assign minimal target-resource RBAC roles.
  4. Scope service connection roles and approvals to the smallest necessary Azure resources and pipeline consumers.

Explanation

Correct Answer

B:

Use a GitHub App installation with narrowly requested repository permissions and short-lived installation tokens. GitHub Apps separate automation identity from a human account and can grant repository-scoped, revocable access. A useful check is that the bot updates only installed repositories with the approved permissions and cannot read unrelated projects.

Incorrect Answers

A:

This is designed for Secret rotation and scope: Scoped identities and rehearsed rotation reduce the security impact and operational disruption of credential compromise.

C:

That intervention fits Managed identity versus service principal: Azure-managed workload identities authenticate Azure resources without an application-managed secret, with access granted through role assignments.

D:

This is designed for Service connection scope: Service connections are privileged deployment identities, so resource RBAC and use restrictions should match actual blast radius.

Question 211

A regulated project needs repeatable Azure infrastructure deployments reviewed in the same pull requests as application changes.

Which risk most directly follows if the team leaves this problem unresolved?

  1. Unapproved customers may see incomplete functionality and rollback may require an entire emergency release.
  2. Secret exposure or accidental cross-environment configuration can compromise production systems.
  3. Manual resource creation produces inconsistent environments and untraceable production changes.
  4. An unanticipated deletion or configuration drift reaches production without prior impact review.

Explanation

Correct Answer

C:

Manual resource creation produces inconsistent environments and untraceable production changes. The failure follows from the described gap because declarative IaC expresses intended Azure resource configurations and enables repeatable, reviewed deployment rather than manual portal drift. Mitigate it by choosing to define Azure resources in version-controlled Bicep modules and deploy them through reviewed pipelines.

Incorrect Answers

A:

That is a credible failure of Feature flag dark launch: Feature flags decouple delivery of code from exposure of functionality, allowing targeted enablement and rapid disablement. The present scenario instead leaves the bicep as code requirement unresolved, which creates this more direct risk: manual resource creation produces inconsistent environments and untraceable production changes.

B:

This risk is associated with Environment parameters without secrets: Version-controlled IaC can contain safe configuration values, but privileged credentials require a protected secret delivery path. The present scenario instead leaves the bicep as code requirement unresolved, which creates this more direct risk: manual resource creation produces inconsistent environments and untraceable production changes.

D:

That is a credible failure of ARM what-if safety: What-if predicts resource effects without modifying live state, supporting risk review of declarative changes. The present scenario instead leaves the bicep as code requirement unresolved, which creates this more direct risk: manual resource creation produces inconsistent environments and untraceable production changes.

Question 212

A critical production defect needs a patch today, but the normal release train includes unrelated unverified features.

Which risk most directly follows if the team leaves this problem unresolved?

  1. A direct replacement can create avoidable downtime or expose startup failures to all users.
  2. Exposed services continue using vulnerable components because nobody can map library usage to releases.
  3. A latent production-only defect affects all customers at once after a full switch.
  4. Deploying the entire main branch may introduce unapproved features during emergency remediation.

Explanation

Correct Answer

D:

Deploying the entire main branch may introduce unapproved features during emergency remediation. The failure follows from the described gap because a distinct expedited path preserves essential test and approval controls while avoiding unrelated functionality. Mitigate it by choosing to create a controlled hotfix path from the production release, validate the targeted change and reconcile it into main.

Incorrect Answers

A:

This risk is associated with Azure App Service deployment slot: Slots provide a separately deployed target and controlled swap that can reduce disruption when application startup is validated. The present scenario instead leaves the hotfix path requirement unresolved, which creates this more direct risk: deploying the entire main branch may introduce unapproved features during emergency remediation.

B:

That consequence is characteristic of Package vulnerability response: Traceable package metadata and dependency scanning link vulnerabilities to actual consumers and enable controlled remediation. The present scenario instead leaves the hotfix path requirement unresolved, which creates this more direct risk: deploying the entire main branch may introduce unapproved features during emergency remediation.

C:

That is a credible failure of Canary progressive exposure: Progressive exposure limits the blast radius of a defective release and generates production observations before full cutover. The present scenario instead leaves the hotfix path requirement unresolved, which creates this more direct risk: deploying the entire main branch may introduce unapproved features during emergency remediation.

Question 213

A deployment pipeline needs to reach a restricted internal network that public hosted runners cannot access.

Which observation most directly confirms the required DevOps control is effective?

  1. The build uses the approved compiler and private endpoint while runner image and permissions are controlled.
  2. A pipeline attempting to omit the approved template or run a prohibited task is rejected before a protected release.
  3. Deployments consume the approved module version and vary only explicit reviewed parameters.
  4. Publish or deploy starts only after all required predecessor tests and signing checks succeed.

Explanation

Correct Answer

A:

The build uses the approved compiler and private endpoint while runner image and permissions are controlled. This shows that the control was implemented as intended: provision managed self-hosted runners or agents with required toolchains, networking and hardened lifecycle controls. It matters because custom execution environments support private dependencies while making the organization responsible for patching, isolation and capacity.

Incorrect Answers

B:

That result would verify Extends security template, where the relevant control is use a governed YAML extends template and required-template checks for enforceable pipeline structure.

C:

This observation would support Bicep module reuse, where the relevant control is package reusable Bicep modules with reviewed parameters and approved module versions.

D:

Such evidence would establish YAML multi-stage dependency, where the relevant control is declare explicit YAML stage/job dependencies and conditions to enforce required execution order.

Question 214

A repository administrator grants all automation identities write access to every project for convenience.

Which observation most directly confirms the required DevOps control is effective?

  1. Direct pushes are rejected and proposed changes merge only after the configured approvals and successful checks.
  2. Permission tests confirm the vendor can create required reports but cannot modify protected source or settings.
  3. Developers can clone code efficiently and retrieve versioned large binaries through an authorized LFS endpoint.
  4. The exposed token no longer authenticates and approved history-remediation checks find no accessible sensitive object.

Explanation

Correct Answer

B:

Permission tests confirm the vendor can create required reports but cannot modify protected source or settings. This shows that the control was implemented as intended: assign repository permissions by task and restrict branch write operations to approved roles and workflows. It matters because least-privilege repository authorization minimizes the impact of a compromised user or automation token.

Incorrect Answers

A:

That result would verify Feature branching with reviews, where the relevant control is use short-lived feature branches and protected pull requests with required reviewers and checks.

C:

Such evidence would establish Git LFS for binaries, where the relevant control is use Git LFS for large binaries with explicit patterns while leaving source code in ordinary Git storage.

D:

That result would verify Remove leaked credential from Git, where the relevant control is revoke and rotate the exposed credential immediately, remove sensitive history using an approved rewrite and coordinate downstream cleanup.

Question 215

An online store needs to test a new checkout API with a small subset of users before a global rollout.

Which observation most directly confirms the required DevOps control is effective?

  1. An incompatible schema breaks the contract test before either service can release the change.
  2. Both old and new application versions pass compatibility tests during the overlap window.
  3. Small-percentage traffic meets agreed latency and error thresholds before the rollout expands.
  4. A failed error-rate or availability threshold stops promotion and restores the known-good version.

Explanation

Correct Answer

C:

Small-percentage traffic meets agreed latency and error thresholds before the rollout expands. This shows that the control was implemented as intended: use a canary deployment with gradually increased traffic and health-based rollback thresholds. It matters because progressive exposure limits the blast radius of a defective release and generates production observations before full cutover.

Incorrect Answers

A:

This observation would support Contract testing independent release, where the relevant control is add producer-consumer contract tests to both pipelines and gate incompatible interface changes before rollout.

B:

Such evidence would establish Database expand-contract migration, where the relevant control is use backward-compatible expand-and-contract schema changes before removing old fields.

D:

This observation would support Rollback health criteria, where the relevant control is gate deployment completion on service-health metrics and invoke rollback when agreed thresholds fail.

Question 216

An engineer adds command-line tracing to debug production release steps, revealing secret task arguments.

Which risk most directly follows if the team leaves this problem unresolved?

  1. A leaked or expired static credential can enable unauthorized deployments or interrupt legitimate release work.
  2. One leaked token compromises multiple environments and emergency rotation breaks unrelated services.
  3. Credential exposure through YAML or build output can compromise downstream production resources.
  4. Build readers can recover credentials from logs even when vault access itself is restricted.

Explanation

Correct Answer

D:

Build readers can recover credentials from logs even when vault access itself is restricted. The failure follows from the described gap because masked variables are not a substitute for avoiding secret output; transformed or embedded secret strings can evade automatic redaction. Mitigate it by choosing to disable unsafe shell tracing and redact credentials while using approved secret variables and non-sensitive diagnostic output.

Incorrect Answers

A:

That consequence is characteristic of Workload identity federation: OIDC-based federation exchanges trusted workflow identity assertions for short-lived cloud access, reducing static credential exposure. The present scenario instead leaves the secret log masking and command safety requirement unresolved, which creates this more direct risk: build readers can recover credentials from logs even when vault access itself is restricted.

B:

That is a credible failure of Secret rotation and scope: Scoped identities and rehearsed rotation reduce the security impact and operational disruption of credential compromise. The present scenario instead leaves the secret log masking and command safety requirement unresolved, which creates this more direct risk: build readers can recover credentials from logs even when vault access itself is restricted.

C:

This risk is associated with Key Vault runtime secret retrieval: A dedicated secret store provides access control, rotation and auditing while preventing credentials from becoming ordinary source artifacts. The present scenario instead leaves the secret log masking and command safety requirement unresolved, which creates this more direct risk: build readers can recover credentials from logs even when vault access itself is restricted.

Question 217

A pipeline maintains one broad credential for staging, production and audit systems with no rotation procedure.

Which risk most directly follows if the team leaves this problem unresolved?

  1. One leaked token compromises multiple environments and emergency rotation breaks unrelated services.
  2. Credential exposure through YAML or build output can compromise downstream production resources.
  3. A secret may become reachable in repository history even if subsequent commits delete the visible line.
  4. A private certificate or provisioning file may be leaked through normal artifact downloads.

Explanation

Correct Answer

A:

One leaked token compromises multiple environments and emergency rotation breaks unrelated services. The failure follows from the described gap because scoped identities and rehearsed rotation reduce the security impact and operational disruption of credential compromise. Mitigate it by choosing to separate credentials by environment and purpose, use short lifetimes or federation, and test rotation and revocation.

Incorrect Answers

B:

This risk is associated with Key Vault runtime secret retrieval: A dedicated secret store provides access control, rotation and auditing while preventing credentials from becoming ordinary source artifacts. The present scenario instead leaves the secret rotation and scope requirement unresolved, which creates this more direct risk: one leaked token compromises multiple environments and emergency rotation breaks unrelated services.

C:

That consequence is characteristic of Secret scanning in pull requests: Secret scanning detects known credential patterns before promotion and alerts owners to rotate any exposed credential. The present scenario instead leaves the secret rotation and scope requirement unresolved, which creates this more direct risk: one leaked token compromises multiple environments and emergency rotation breaks unrelated services.

D:

That is a credible failure of Azure Pipelines secure files: Secure files are protected pipeline resources with permissions and checks, unlike publicly retrievable general artifacts. The present scenario instead leaves the secret rotation and scope requirement unresolved, which creates this more direct risk: one leaked token compromises multiple environments and emergency rotation breaks unrelated services.

Question 218

An online store needs to test a new checkout API with a small subset of users before a global rollout.

What is the most appropriate action for this DevOps team?

  1. Promote the tested container by immutable digest rather than relying on a mutable tag name.
  2. Use a canary deployment with gradually increased traffic and health-based rollback thresholds.
  3. Provision managed self-hosted runners or agents with required toolchains, networking and hardened lifecycle controls.
  4. Use backward-compatible expand-and-contract schema changes before removing old fields.

Explanation

Correct Answer

B:

Use a canary deployment with gradually increased traffic and health-based rollback thresholds. Progressive exposure limits the blast radius of a defective release and generates production observations before full cutover. A useful check is that small-percentage traffic meets agreed latency and error thresholds before the rollout expands.

Incorrect Answers

A:

That intervention fits Container image digest promotion: Image digests identify exact content, preserving supply-chain consistency across environments despite tag changes.

C:

This would instead address Hosted versus self-hosted agents: Custom execution environments support private dependencies while making the organization responsible for patching, isolation and capacity.

D:

That intervention fits Database expand-contract migration: The expand phase adds compatible schema, data migration occurs safely, and contraction follows after consumers have transitioned.

Question 219

A deployment engineer cannot demonstrate that the package approved in preproduction is the exact one installed in production.

What is the most appropriate action for this DevOps team?

  1. Use Azure Artifacts feed views to promote packages from prerelease into approved release consumption stages.
  2. Use a documented CalVer scheme for chronological releases while separately tracking backward-compatibility obligations.
  3. Publish an immutable versioned build artifact once and promote the same artifact through environments.
  4. Add producer-consumer contract tests to both pipelines and gate incompatible interface changes before rollout.

Explanation

Correct Answer

C:

Publish an immutable versioned build artifact once and promote the same artifact through environments. Artifact promotion ensures deployment stages share tested bytes rather than rebuilding from potentially changing source or packages. A useful check is that artifact checksums and build IDs are identical in staging and production deployment records.

Incorrect Answers

A:

This is designed for Package feed views: Views provide curated subsets of immutable feed packages for different consumer readiness levels.

B:

This would instead address Date-based versioning: Calendar-based versions express release timing, but do not automatically convey semantic API compatibility.

D:

This is designed for Contract testing independent release: Contract tests check agreed service boundaries, supporting independent deployment while detecting incompatible changes.

Question 220

A reporting team needs to identify exactly which calendar release of a non-library deliverable was deployed.

Which explanation best supports the needed implementation decision?

  1. Artifact promotion ensures deployment stages share tested bytes rather than rebuilding from potentially changing source or packages.
  2. Critical-path analysis separates true sequential work from jobs that can safely run concurrently.
  3. A lockfile records the resolved dependency graph to make repeated builds use the same versions rather than current registry selection.
  4. Calendar-based versions express release timing, but do not automatically convey semantic API compatibility.

Explanation

Correct Answer

D:

Calendar-based versions express release timing, but do not automatically convey semantic API compatibility. The appropriate response is to use a documented CalVer scheme for chronological releases while separately tracking backward-compatibility obligations. The expected evidence is that the deployed report package maps unambiguously to its publication month and documented compatibility notes.

Incorrect Answers

A:

This reasoning pertains to Immutable pipeline artifact: Artifact promotion ensures deployment stages share tested bytes rather than rebuilding from potentially changing source or packages.

B:

That explanation is about Pipeline duration hotspot: Critical-path analysis separates true sequential work from jobs that can safely run concurrently.

C:

This describes the mechanism for Dependency lockfile reproducibility: A lockfile records the resolved dependency graph to make repeated builds use the same versions rather than current registry selection.

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

Purchase Individually

  • Premium File

    398 Questions & Answers
    Last Update: Nov 11, 2026

    $76.99
    $69.99
  • Training Course

    27 Lectures

    $43.99
    $39.99
  • Study Guide

    784 Pages

    $43.99
    $39.99

SPECIAL OFFER: GET 10% OFF
This is ONE TIME OFFER

You save
10%

Enter Your Email Address to Receive Your 10% Off Discount Code

SPECIAL OFFER: GET 10% OFF

You save
10%

Use Discount Code:

A confirmation link was sent to your e-mail.

Please check your mailbox for a message from support@examlabs.com and follow the directions.

Download Free Demo of VCE Exam Simulator

Experience Avanset VCE Exam Simulator for yourself.

Simply submit your email address below to get started with our interactive software demo of your free trial.

  • Realistic exam simulation and exam editor with preview functions
  • Whole exam in a single file with several different question types
  • Customizable exam-taking mode & detailed score reports