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 8

Question 70

A container image build intermittently fails while pull requests still merge without reliable check enforcement.

What is the most appropriate action for this DevOps team?

  1. Enable review dismissal or fresh approvals when new commits change an approved pull request.
  2. Configure required status checks and block protected-branch merges until the specified CI jobs succeed.
  3. Maintain a controlled release branch for the supported version and cherry-pick reviewed fixes as appropriate.
  4. Use Git LFS for large binaries with explicit patterns while leaving source code in ordinary Git storage.

Explanation

Correct Answer

B:

Configure required status checks and block protected-branch merges until the specified CI jobs succeed. Server-enforced branch rules validate executable evidence before integration, independent of informal reviewer assurances. A useful check is that a failed required test blocks merging and the same PR becomes eligible after successful checks and review.

Incorrect Answers

A:

This would instead address Merge policy stale approval: Approvals should cover the final content actually merged, rather than an earlier snapshot of the branch.

C:

This is designed for Release branch stabilization: Release branches isolate stabilization and patching from ongoing development while still retaining traceable changes.

D:

This would instead address Git LFS for binaries: Git LFS replaces eligible large file content in history with lightweight pointers and manages binary content separately.

Question 71

A startup stores application code in GitHub and wants a native workflow for pull-request tests and container publishing.

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

  1. A downstream build restores the approved shared package version and can trace it to a reviewed publication.
  2. The production stage waits for authorized approval, and YAML-only changes cannot remove the check.
  3. A pilot triggers from the intended repository, enforces approvals and deploys to the target environment with auditable identities.
  4. A pipeline attempting to omit the approved template or run a prohibited task is rejected before a protected release.

Explanation

Correct Answer

C:

A pilot triggers from the intended repository, enforces approvals and deploys to the target environment with auditable identities. This shows that the control was implemented as intended: select the pipeline platform that integrates with repository hosting, required approvals and deployment environments. It matters because both GitHub Actions and Azure Pipelines can automate CI/CD, but repository integration and governance capabilities determine the appropriate fit.

Incorrect Answers

A:

This observation would support Central internal package feed, where the relevant control is publish shared versioned packages to a governed Azure Artifacts feed and reference them explicitly in consumer builds.

B:

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.

D:

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.

Question 72

An AKS-hosted application crashes intermittently but Azure Monitor receives only VM CPU metrics, not workload events.

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

  1. Sustained CI failures delay releases because nobody detects them promptly.
  2. A delivery bottleneck remains unrecognized even as multiple teams lose build capacity.
  3. Isolated service logs cannot establish the actual dependency path responsible for a degraded transaction.
  4. A blind spot can hide the failed component while general infrastructure graphs look healthy.

Explanation

Correct Answer

D:

A blind spot can hide the failed component while general infrastructure graphs look healthy. The failure follows from the described gap because azure Monitor unifies service-specific telemetry needed to distinguish infrastructure faults from application and container behavior. Mitigate it by choosing to configure Azure Monitor collection for the relevant services, including Container Insights and diagnostic logs.

Incorrect Answers

A:

That consequence is characteristic of GitHub Actions workflow alert: Build failure signals have value only if owners receive timely actionable notifications rather than relying on manual inspection. The present scenario instead leaves the azure monitor diagnostic collection requirement unresolved, which creates this more direct risk: a blind spot can hide the failed component while general infrastructure graphs look healthy.

B:

That is a credible failure of Azure Pipelines run monitoring: CI observability complements application monitoring by identifying delivery-system availability and throughput issues. The present scenario instead leaves the azure monitor diagnostic collection requirement unresolved, which creates this more direct risk: a blind spot can hide the failed component while general infrastructure graphs look healthy.

C:

This risk is associated with Correlated distributed traces: Trace correlation connects related requests and dependencies across service boundaries to reveal end-to-end latency contributors. The present scenario instead leaves the azure monitor diagnostic collection requirement unresolved, which creates this more direct risk: a blind spot can hide the failed component while general infrastructure graphs look healthy.

Question 73

A release pipeline passes eventually but test reruns and rising queue latency are causing missed deployment targets.

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

  1. Trend dashboards show rising stage failures and identify the owner and remediation for recurrent issues.
  2. At the expected demand level the system meets percentile latency and error-rate targets before deployment.
  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

A:

Trend dashboards show rising stage failures and identify the owner and remediation for recurrent issues. This shows that the control was implemented as intended: monitor pipeline success rates, flaky test frequency, queue delay and duration with actionable ownership. It matters because build health includes reliability and time to feedback, not just the final successful outcome.

Incorrect Answers

B:

This observation would support Load test realistic capacity, where the relevant control is run representative load tests with production-like demand and enforce agreed latency and error thresholds.

C:

Such evidence would establish Build cache with correctness, where the relevant control is introduce keyed dependency or build caching with OS, version and lockfile inputs and validated invalidation.

D:

That result would verify 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 74

A quality reviewer needs to annotate tests but should not change Azure Pipelines service connections or security groups.

Which explanation best supports the needed implementation decision?

  1. Integrated DevOps security posture helps central teams connect source risk with affected development assets and cloud governance.
  2. Access levels govern available features while permissions and security groups govern allowed actions; both matter for least privilege.
  3. OIDC-based federation exchanges trusted workflow identity assertions for short-lived cloud access, reducing static credential exposure.
  4. Service connections are privileged deployment identities, so resource RBAC and use restrictions should match actual blast radius.

Explanation

Correct Answer

B:

Access levels govern available features while permissions and security groups govern allowed actions; both matter for least privilege. The appropriate response is to assign appropriate Azure DevOps access levels and group roles according to actual work responsibilities. The expected evidence is that the consultant performs the approved board review but cannot edit build service connections or project security.

Incorrect Answers

A:

That explanation is about GitHub Advanced Security and Defender: Integrated DevOps security posture helps central teams connect source risk with affected development assets and cloud governance.

C:

This reasoning pertains to Workload identity federation: OIDC-based federation exchanges trusted workflow identity assertions for short-lived cloud access, reducing static credential exposure.

D:

That explanation is about Service connection scope: Service connections are privileged deployment identities, so resource RBAC and use restrictions should match actual blast radius.

Question 75

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

What is the most appropriate action for this DevOps team?

  1. Use Azure Pipelines secure files with access restrictions and approved tasks to deliver the file only to authorized jobs.
  2. Disable unsafe shell tracing and redact credentials while using approved secret variables and non-sensitive diagnostic output.
  3. Separate credentials by environment and purpose, use short lifetimes or federation, and test rotation and revocation.
  4. Scan container images and dependencies before promotion, enforce risk-based gates and retain image provenance.

Explanation

Correct Answer

C:

Separate credentials by environment and purpose, use short lifetimes or federation, and test rotation and revocation. Scoped identities and rehearsed rotation reduce the security impact and operational disruption of credential compromise. A useful check is that an old identity is revoked successfully while each pipeline continues using only its own authorized environment credentials.

Incorrect Answers

A:

This is designed for Azure Pipelines secure files: Secure files are protected pipeline resources with permissions and checks, unlike publicly retrievable general artifacts.

B:

This would instead address Secret log masking and command safety: Masked variables are not a substitute for avoiding secret output; transformed or embedded secret strings can evade automatic redaction.

D:

This is designed for Container image scanning: Container scanning examines packaged runtime components that may not appear in application source analysis.

Question 76

A web application deployed directly to production experiences cold-start interruption during package installation.

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

  1. A full-fleet rollout amplifies an endpoint-specific failure before it can be contained.
  2. Uncontrolled portal edits undermine repeatability and can be overwritten unexpectedly by later deployments.
  3. Deploying the entire main branch may introduce unapproved features during emergency remediation.
  4. A direct replacement can create avoidable downtime or expose startup failures to all users.

Explanation

Correct Answer

D:

A direct replacement can create avoidable downtime or expose startup failures to all users. The failure follows from the described gap because slots provide a separately deployed target and controlled swap that can reduce disruption when application startup is validated. Mitigate it by choosing to deploy to a staging App Service slot, warm the app and swap slots after successful checks.

Incorrect Answers

A:

That is a credible failure of Ring deployment cohort: Rings separate user populations for controlled exposure and detect population-specific problems before broad deployment. The present scenario instead leaves the azure app service deployment slot requirement unresolved, which creates this more direct risk: a direct replacement can create avoidable downtime or expose startup failures to all users.

B:

This risk is associated with IaC drift detection: Infrastructure-as-code remains trustworthy only if manual changes are detected and either approved into code or safely reverted. The present scenario instead leaves the azure app service deployment slot requirement unresolved, which creates this more direct risk: a direct replacement can create avoidable downtime or expose startup failures to all users.

C:

That consequence is characteristic of Hotfix path: A distinct expedited path preserves essential test and approval controls while avoiding unrelated functionality. The present scenario instead leaves the azure app service deployment slot requirement unresolved, which creates this more direct risk: a direct replacement can create avoidable downtime or expose startup failures to all users.

Question 77

A repository uploads reusable libraries to GitHub Packages but consumption from a second repository fails because of package access settings.

Which explanation best supports the needed implementation decision?

  1. Package registry operations are authorized separately from ordinary repository read access, and permissions must match publish or consume operations.
  2. Calendar-based versions express release timing, but do not automatically convey semantic API compatibility.
  3. SemVer communicates compatibility intent by distinguishing major breaks, compatible additions and backward-compatible fixes.
  4. Pool sizing is a tradeoff between capacity, execution delay and infrastructure or licensing cost.

Explanation

Correct Answer

A:

Package registry operations are authorized separately from ordinary repository read access, and permissions must match publish or consume operations. The appropriate response is to configure the required GitHub Packages permissions and least-privilege workflow token access. The expected evidence is that publishing and downstream restore succeed only for approved repositories and workflow identities.

Incorrect Answers

B:

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

C:

This reasoning pertains to Semantic versioning: SemVer communicates compatibility intent by distinguishing major breaks, compatible additions and backward-compatible fixes.

D:

That explanation is about Agent cost management: Pool sizing is a tradeoff between capacity, execution delay and infrastructure or licensing cost.

Question 78

An e-commerce app passes functional tests for one user but times out during a seasonal sales surge.

Which explanation best supports the needed implementation decision?

  1. A gate turns verifiable quality and risk evidence into an enforceable deployment decision rather than advisory console output.
  2. Load testing exercises concurrency, capacity and bottlenecks that low-traffic correctness tests do not expose.
  3. An agent placed on an approved reachable network can exercise private services without exposing those services publicly.
  4. Infrastructure code benefits from the same automated feedback and controlled promotion as application code.

Explanation

Correct Answer

B:

Load testing exercises concurrency, capacity and bottlenecks that low-traffic correctness tests do not expose. The appropriate response is to run representative load tests with production-like demand and enforce agreed latency and error thresholds. The expected evidence is that at the expected demand level the system meets percentile latency and error-rate targets before deployment.

Incorrect Answers

A:

This describes the mechanism for Quality security release gate: A gate turns verifiable quality and risk evidence into an enforceable deployment decision rather than advisory console output.

C:

That explanation is about Test agent network isolation: An agent placed on an approved reachable network can exercise private services without exposing those services publicly.

D:

This describes the mechanism for IaC test pipeline: Infrastructure code benefits from the same automated feedback and controlled promotion as application code.

Question 79

A repository that deploys a test service can also modify production Key Vault and network resources through its shared connection.

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. Dependency scanning connects known advisories to manifest and lockfile versions and can propose reviewed updates.
  3. Service connections are privileged deployment identities, so resource RBAC and use restrictions should match actual blast radius.
  4. OIDC-based federation exchanges trusted workflow identity assertions for short-lived cloud access, reducing static credential exposure.

Explanation

Correct Answer

C:

Service connections are privileged deployment identities, so resource RBAC and use restrictions should match actual blast radius. The appropriate response is to scope service connection roles and approvals to the smallest necessary Azure resources and pipeline consumers. The expected evidence is that an authorized test pipeline can deploy to its resource group but cannot alter other environments.

Incorrect Answers

A:

This reasoning pertains to GitHub App scope: GitHub Apps separate automation identity from a human account and can grant repository-scoped, revocable access.

B:

That explanation is about Dependabot dependency alerts: Dependency scanning connects known advisories to manifest and lockfile versions and can propose reviewed updates.

D:

This reasoning pertains to Workload identity federation: OIDC-based federation exchanges trusted workflow identity assertions for short-lived cloud access, reducing static credential exposure.

Question 80

A regulated platform wants pipelines to reject unapproved task types even when repository contributors edit their YAML definitions.

Which explanation best supports the needed implementation decision?

  1. Pipelines may execute independent jobs in parallel, so dependent stages must be linked to upstream successful work.
  2. Correct cache keys improve speed while preventing incompatible or stale cached outputs from silently changing builds.
  3. Environment checks are managed on the resource rather than inside the pipeline YAML, resisting bypass by repository edits.
  4. An extends template can constrain allowed pipeline steps, while checks on protected resources prevent easy removal of the requirement.

Explanation

Correct Answer

D:

An extends template can constrain allowed pipeline steps, while checks on protected resources prevent easy removal of the requirement. The appropriate response is to use a governed YAML extends template and required-template checks for enforceable pipeline structure. The expected evidence is that a pipeline attempting to omit the approved template or run a prohibited task is rejected before a protected release.

Incorrect Answers

A:

That explanation is about YAML multi-stage dependency: Pipelines may execute independent jobs in parallel, so dependent stages must be linked to upstream successful work.

B:

This describes the mechanism for Build cache with correctness: Correct cache keys improve speed while preventing incompatible or stale cached outputs from silently changing builds.

C:

This reasoning pertains to YAML environments approvals: Environment checks are managed on the resource rather than inside the pipeline YAML, resisting bypass by repository edits.

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