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 41

Question 400

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

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

  1. A vulnerability that automated static analysis could reveal remains undetected until production exposure.
  2. A leaked or expired static credential can enable unauthorized deployments or interrupt legitimate release work.
  3. Embedded credentials may leak and grant broader access than the running service requires.
  4. A compromised human PAT can expose more repositories and persist after an employee changes roles.

Explanation

Correct Answer

D:

A compromised human PAT can expose more repositories and persist after an employee changes roles. The failure follows from the described gap because gitHub Apps separate automation identity from a human account and can grant repository-scoped, revocable access. Mitigate it by choosing to use a GitHub App installation with narrowly requested repository permissions and short-lived installation tokens.

Incorrect Answers

A:

That is a credible failure of CodeQL static analysis: Static code analysis can trace risky code patterns and data flow without relying on runtime exploitation to surface the flaw. The present scenario instead leaves the github app scope requirement unresolved, which creates this more direct risk: a compromised human PAT can expose more repositories and persist after an employee changes roles.

B:

This risk is associated with 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 github app scope requirement unresolved, which creates this more direct risk: a compromised human PAT can expose more repositories and persist after an employee changes roles.

C:

That consequence is characteristic of Managed identity versus service principal: Azure-managed workload identities authenticate Azure resources without an application-managed secret, with access granted through role assignments. The present scenario instead leaves the github app scope requirement unresolved, which creates this more direct risk: a compromised human PAT can expose more repositories and persist after an employee changes roles.

Question 401

A service must warm and test new App Service code before the production hostname serves it.

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

  1. The staged slot passes health checks before swapping to production, and swap reversal remains available.
  2. No credential appears in source history or build logs and each environment receives only its intended settings.
  3. A failed error-rate or availability threshold stops promotion and restores the known-good version.
  4. Small-percentage traffic meets agreed latency and error thresholds before the rollout expands.

Explanation

Correct Answer

A:

The staged slot passes health checks before swapping to production, and swap reversal remains available. This shows that the control was implemented as intended: deploy to a staging App Service slot, warm the app and swap slots after successful checks. It matters because slots provide a separately deployed target and controlled swap that can reduce disruption when application startup is validated.

Incorrect Answers

B:

Such evidence would establish Environment parameters without secrets, where the relevant control is separate nonsecret environment parameters and inject sensitive values from approved secret stores at deployment.

C:

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

D:

This observation would support Canary progressive exposure, where the relevant control is use a canary deployment with gradually increased traffic and health-based rollback thresholds.

Question 402

A build needs a licensed proprietary compiler absent from Microsoft-hosted images and requires durable tool caching.

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

  1. A test or security failure prevents the protected deployment and records the unsuccessful check.
  2. The build uses the approved compiler and private endpoint while runner image and permissions are controlled.
  3. A pipeline attempting to omit the approved template or run a prohibited task is rejected before a protected release.
  4. The production stage waits for authorized approval, and YAML-only changes cannot remove the check.

Explanation

Correct Answer

B:

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

A:

Such evidence would establish Quality security release gate, where the relevant control is define mandatory test, security and governance gates that block promotion on a failing check.

C:

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

D:

Such evidence would establish YAML environments approvals, where the relevant control is configure the approval as a protected Azure Pipelines environment check owned outside editable YAML.

Question 403

A shared deployment token has been reused for years across many production environments and cannot be revoked without downtime.

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

  1. A failed job retains useful diagnostics but no accessible secret or bearer-token content in its logs.
  2. An authorized test pipeline can deploy to its resource group but cannot alter other environments.
  3. An old identity is revoked successfully while each pipeline continues using only its own authorized environment credentials.
  4. The job accesses the approved secret at runtime and no secret value is present in repository history or published artifacts.

Explanation

Correct Answer

C:

An old identity is revoked successfully while each pipeline continues using only its own authorized environment credentials. This shows that the control was implemented as intended: separate credentials by environment and purpose, use short lifetimes or federation, and test rotation and revocation. It matters because scoped identities and rehearsed rotation reduce the security impact and operational disruption of credential compromise.

Incorrect Answers

A:

That result would verify Secret log masking and command safety, where the relevant control is disable unsafe shell tracing and redact credentials while using approved secret variables and non-sensitive diagnostic output.

B:

This observation would support Service connection scope, where the relevant control is scope service connection roles and approvals to the smallest necessary Azure resources and pipeline consumers.

D:

That result would verify Key Vault runtime secret retrieval, where the relevant control is store sensitive values in Azure Key Vault and retrieve them through authorized pipeline identities at execution time.

Question 404

A compliance integration needs installation-scoped access to selected repositories, but currently runs as an employee identity.

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

  1. The leak blocks or flags the proposed change and the exposed credential is revoked before a safe replacement merges.
  2. The consultant performs the approved board review but cannot edit build service connections or project security.
  3. The approved job obtains only scoped Azure access without any stored client secret and untrusted branches cannot impersonate it.
  4. The bot updates only installed repositories with the approved permissions and cannot read unrelated projects.

Explanation

Correct Answer

D:

The bot updates only installed repositories with the approved permissions and cannot read unrelated projects. This shows that the control was implemented as intended: use a GitHub App installation with narrowly requested repository permissions and short-lived installation tokens. It matters because gitHub Apps separate automation identity from a human account and can grant repository-scoped, revocable access.

Incorrect Answers

A:

This observation would support Secret scanning in pull requests, where the relevant control is enable automated secret scanning and push or pull-request protection with clear remediation for exposed values.

B:

Such evidence would establish Azure DevOps least privilege, where the relevant control is assign appropriate Azure DevOps access levels and group roles according to actual work responsibilities.

C:

That result would verify Workload identity federation, where the relevant control is use a scoped workload identity federation service connection or GitHub OIDC trust instead of storing long-lived cloud secrets.

Question 405

A production release rebuilds application source independently after staging tests and gets a different dependency resolution.

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. A central package feed provides controlled distribution and dependency metadata instead of silently copying libraries between repositories.
  3. Both GitHub Actions and Azure Pipelines can automate CI/CD, but repository integration and governance capabilities determine the appropriate fit.
  4. A lockfile records the resolved dependency graph to make repeated builds use the same versions rather than current registry selection.

Explanation

Correct Answer

A:

Artifact promotion ensures deployment stages share tested bytes rather than rebuilding from potentially changing source or packages. The appropriate response is to publish an immutable versioned build artifact once and promote the same artifact through environments. The expected evidence is that artifact checksums and build IDs are identical in staging and production deployment records.

Incorrect Answers

B:

This reasoning pertains to Central internal package feed: A central package feed provides controlled distribution and dependency metadata instead of silently copying libraries between repositories.

C:

That explanation is about GitHub Actions versus Azure Pipelines: Both GitHub Actions and Azure Pipelines can automate CI/CD, but repository integration and governance capabilities determine the appropriate fit.

D:

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.

Question 406

A regulated enterprise wants predictable public dependencies without granting build agents unrestricted internet access.

What is the most appropriate action for this DevOps team?

  1. Apply semantic versioning and increase the major version for breaking public compatibility changes.
  2. Configure an Azure Artifacts feed with upstream sources and retention of approved dependencies.
  3. Use a documented CalVer scheme for chronological releases while separately tracking backward-compatibility obligations.
  4. Apply lifecycle-based retention for artifacts and dependencies consistent with rollback and compliance needs.

Explanation

Correct Answer

B:

Configure an Azure Artifacts feed with upstream sources and retention of approved dependencies. Upstream caching serves previously resolved packages from the controlled feed and reduces direct external registry dependence. A useful check is that a repeat build restores approved dependencies from the feed even when the upstream registry is unavailable.

Incorrect Answers

A:

This would instead address Semantic versioning: SemVer communicates compatibility intent by distinguishing major breaks, compatible additions and backward-compatible fixes.

C:

This is designed for Date-based versioning: Calendar-based versions express release timing, but do not automatically convey semantic API compatibility.

D:

This would instead address Artifacts retention policy: Retention should balance recovery evidence, cost and governance rather than indiscriminately retaining or deleting every build.

Question 407

Every CI job downloads identical dependencies and recompiles unchanged modules, but cache sharing is currently disabled.

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

  1. Required release artifacts remain accessible through the mandated window and expired temporary objects are purged.
  2. A test or security failure prevents the protected deployment and records the unsuccessful check.
  3. A repeated unchanged build uses the cache and a changed lockfile forces a valid fresh restore.
  4. A parallel run matches current outputs and release controls before classic execution is retired.

Explanation

Correct Answer

C:

A repeated unchanged build uses the cache and a changed lockfile forces a valid fresh restore. This shows that the control was implemented as intended: introduce keyed dependency or build caching with OS, version and lockfile inputs and validated invalidation. It matters because correct cache keys improve speed while preventing incompatible or stale cached outputs from silently changing builds.

Incorrect Answers

A:

This observation would support Artifacts retention policy, where the relevant control is apply lifecycle-based retention for artifacts and dependencies consistent with rollback and compliance needs.

B:

Such evidence would establish Quality security release gate, where the relevant control is define mandatory test, security and governance gates that block promotion on a failing check.

D:

This observation would support Migrate classic to YAML, where the relevant control is inventory existing classic tasks and resource checks, migrate logic into versioned YAML and validate parity in parallel.

Question 408

A production deployment requires release-manager approval even if a contributor edits pipeline YAML after reviewers sign off.

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

  1. Overbroad token access risks package tampering while insufficient access blocks legitimate consumers.
  2. Sequential execution wastes capacity, or omitted combinations allow a platform-specific failure into production.
  3. Copied pipeline fragments drift, leaving projects with missing or outdated controls.
  4. A developer could delete an in-YAML approval step and deploy without independent authorization.

Explanation

Correct Answer

D:

A developer could delete an in-YAML approval step and deploy without independent authorization. The failure follows from the described gap because environment checks are managed on the resource rather than inside the pipeline YAML, resisting bypass by repository edits. Mitigate it by choosing to configure the approval as a protected Azure Pipelines environment check owned outside editable YAML.

Incorrect Answers

A:

That consequence is characteristic of GitHub Packages access: Package registry operations are authorized separately from ordinary repository read access, and permissions must match publish or consume operations. The present scenario instead leaves the yaml environments approvals requirement unresolved, which creates this more direct risk: a developer could delete an in-YAML approval step and deploy without independent authorization.

B:

That is a credible failure of Parallel matrix builds: Independent job combinations can run concurrently, making compatibility tests faster without weakening the requirement that all pass. The present scenario instead leaves the yaml environments approvals requirement unresolved, which creates this more direct risk: a developer could delete an in-YAML approval step and deploy without independent authorization.

C:

This risk is associated with Reusable YAML template: Includes and parameterized templates centralize repeatable pipeline logic while keeping service-specific inputs explicit. The present scenario instead leaves the yaml environments approvals requirement unresolved, which creates this more direct risk: a developer could delete an in-YAML approval step and deploy without independent authorization.

Question 409

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

Which explanation best supports the needed implementation decision?

  1. GitHub Apps separate automation identity from a human account and can grant repository-scoped, revocable access.
  2. Azure-managed workload identities authenticate Azure resources without an application-managed secret, with access granted through role assignments.
  3. Container scanning examines packaged runtime components that may not appear in application source analysis.
  4. Access levels govern available features while permissions and security groups govern allowed actions; both matter for least privilege.

Explanation

Correct Answer

A:

GitHub Apps separate automation identity from a human account and can grant repository-scoped, revocable access. The appropriate response is to use a GitHub App installation with narrowly requested repository permissions and short-lived installation tokens. The expected evidence is that the bot updates only installed repositories with the approved permissions and cannot read unrelated projects.

Incorrect Answers

B:

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

C:

This describes the mechanism for Container image scanning: Container scanning examines packaged runtime components that may not appear in application source analysis.

D:

This reasoning pertains to Azure DevOps least privilege: Access levels govern available features while permissions and security groups govern allowed actions; both matter for least privilege.

Question 410

A platform team wants to detect repeated failed pipeline stages from a shared template before individual teams escalate.

Which explanation best supports the needed implementation decision?

  1. Kusto Query Language supports time-window filtering, aggregation and ranking of collected telemetry for focused diagnosis.
  2. CI observability complements application monitoring by identifying delivery-system availability and throughput issues.
  3. Application-level instrumentation exposes call outcomes and dependency contributions that basic host availability cannot explain.
  4. Azure Monitor unifies service-specific telemetry needed to distinguish infrastructure faults from application and container behavior.

Explanation

Correct Answer

B:

CI observability complements application monitoring by identifying delivery-system availability and throughput issues. The appropriate response is to collect Azure Pipelines execution status, queue duration and failure trends and alert on actionable thresholds. The expected evidence is that a pipeline failure spike or queue threshold triggers a routed alert with relevant run details.

Incorrect Answers

A:

That explanation is about Kusto query failed requests: Kusto Query Language supports time-window filtering, aggregation and ranking of collected telemetry for focused diagnosis.

C:

This reasoning pertains to Application Insights request telemetry: Application-level instrumentation exposes call outcomes and dependency contributions that basic host availability cannot explain.

D:

That explanation is about Azure Monitor diagnostic collection: Azure Monitor unifies service-specific telemetry needed to distinguish infrastructure faults from application and container behavior.

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