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 17

Question 160

An image publishing job starts before test and signing jobs finish, exposing unverified artifacts to downstream deployments.

What is the most appropriate action for this DevOps team?

  1. Provision managed self-hosted runners or agents with required toolchains, networking and hardened lifecycle controls.
  2. Select the pipeline platform that integrates with repository hosting, required approvals and deployment environments.
  3. Use backward-compatible expand-and-contract schema changes before removing old fields.
  4. Declare explicit YAML stage/job dependencies and conditions to enforce required execution order.

Explanation

Correct Answer

D:

Declare explicit YAML stage/job dependencies and conditions to enforce required execution order. Pipelines may execute independent jobs in parallel, so dependent stages must be linked to upstream successful work. A useful check is that publish or deploy starts only after all required predecessor tests and signing checks succeed.

Incorrect Answers

A:

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.

B:

That intervention fits 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.

C:

This is designed for Database expand-contract migration: The expand phase adds compatible schema, data migration occurs safely, and contraction follows after consumers have transitioned.

Question 161

Changes to encryption and deployment permissions are approved only by whichever general reviewer is available.

Which explanation best supports the needed implementation decision?

  1. Path-based review rules route sensitive changes to accountable specialists before merge.
  2. Frequent small integrations reduce divergence while flags separate code integration from customer feature exposure.
  3. Server-enforced branch rules validate executable evidence before integration, independent of informal reviewer assurances.
  4. Deleting a current file does not remove earlier Git objects or copies; invalidating the credential is the immediate security control.

Explanation

Correct Answer

A:

Path-based review rules route sensitive changes to accountable specialists before merge. The appropriate response is to define CODEOWNERS and require appropriate code-owner approval for protected paths. The expected evidence is that a modification to an owned security path requests and obtains the designated team's approval before merge.

Incorrect Answers

B:

This describes the mechanism for Trunk-based short branches: Frequent small integrations reduce divergence while flags separate code integration from customer feature exposure.

C:

This reasoning pertains to Required status checks: Server-enforced branch rules validate executable evidence before integration, independent of informal reviewer assurances.

D:

That explanation is about Remove leaked credential from Git: Deleting a current file does not remove earlier Git objects or copies; invalidating the credential is the immediate security control.

Question 162

Two downstream projects accept a new library version automatically without recognizing that a required method was removed.

Which explanation best supports the needed implementation decision?

  1. Declarative IaC expresses intended Azure resource configurations and enables repeatable, reviewed deployment rather than manual portal drift.
  2. SemVer communicates compatibility intent by distinguishing major breaks, compatible additions and backward-compatible fixes.
  3. Views provide curated subsets of immutable feed packages for different consumer readiness levels.
  4. Traceable package metadata and dependency scanning link vulnerabilities to actual consumers and enable controlled remediation.

Explanation

Correct Answer

B:

SemVer communicates compatibility intent by distinguishing major breaks, compatible additions and backward-compatible fixes. The appropriate response is to apply semantic versioning and increase the major version for breaking public compatibility changes. The expected evidence is that a breaking update increments its major version and consumers intentionally opt into the new contract.

Incorrect Answers

A:

This describes the mechanism for Bicep as code: Declarative IaC expresses intended Azure resource configurations and enables repeatable, reviewed deployment rather than manual portal drift.

C:

That explanation is about Package feed views: Views provide curated subsets of immutable feed packages for different consumer readiness levels.

D:

This describes the mechanism for Package vulnerability response: Traceable package metadata and dependency scanning link vulnerabilities to actual consumers and enable controlled remediation.

Question 163

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

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

  1. An unreviewed upstream release may alter behavior even though application source did not change.
  2. Copied binaries diverge between products and a security fix fails to reach every dependent service.
  3. A new production build may incorporate an untested dependency or compiler result.
  4. Sequential execution wastes capacity, or omitted combinations allow a platform-specific failure into production.

Explanation

Correct Answer

C:

A new production build may incorporate an untested dependency or compiler result. The failure follows from the described gap because artifact promotion ensures deployment stages share tested bytes rather than rebuilding from potentially changing source or packages. Mitigate it by choosing to publish an immutable versioned build artifact once and promote the same artifact through environments.

Incorrect Answers

A:

That is a credible failure of Dependency lockfile reproducibility: A lockfile records the resolved dependency graph to make repeated builds use the same versions rather than current registry selection. The present scenario instead leaves the immutable pipeline artifact requirement unresolved, which creates this more direct risk: a new production build may incorporate an untested dependency or compiler result.

B:

This risk is associated with Central internal package feed: A central package feed provides controlled distribution and dependency metadata instead of silently copying libraries between repositories. The present scenario instead leaves the immutable pipeline artifact requirement unresolved, which creates this more direct risk: a new production build may incorporate an untested dependency or compiler result.

D:

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 immutable pipeline artifact requirement unresolved, which creates this more direct risk: a new production build may incorporate an untested dependency or compiler result.

Question 164

Changes to encryption and deployment permissions are approved only by whichever general reviewer is available.

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

  1. Deploying main would unintentionally include features not approved for the current customer version.
  2. Rewriting shared commits can break dependent clones and make published build history difficult to audit.
  3. Failing code can enter the shared branch despite visible but unenforced CI results.
  4. High-impact configuration can be changed without review by the group responsible for its controls.

Explanation

Correct Answer

D:

High-impact configuration can be changed without review by the group responsible for its controls. The failure follows from the described gap because path-based review rules route sensitive changes to accountable specialists before merge. Mitigate it by choosing to define CODEOWNERS and require appropriate code-owner approval for protected paths.

Incorrect Answers

A:

This risk is associated with Release branch stabilization: Release branches isolate stabilization and patching from ongoing development while still retaining traceable changes. The present scenario instead leaves the code owner review requirement unresolved, which creates this more direct risk: high-impact configuration can be changed without review by the group responsible for its controls.

B:

That consequence is characteristic of Recover one commit safely: Revert preserves the published commit graph while negating the selected change through a new auditable commit. The present scenario instead leaves the code owner review requirement unresolved, which creates this more direct risk: high-impact configuration can be changed without review by the group responsible for its controls.

C:

That is a credible failure of Required status checks: Server-enforced branch rules validate executable evidence before integration, independent of informal reviewer assurances. The present scenario instead leaves the code owner review requirement unresolved, which creates this more direct risk: high-impact configuration can be changed without review by the group responsible for its controls.

Question 165

An Azure Pipeline deploys to Azure using a service-principal client secret that operators must renew manually each quarter.

What is the most appropriate action for this DevOps team?

  1. Use a scoped workload identity federation service connection or GitHub OIDC trust instead of storing long-lived cloud secrets.
  2. Scope service connection roles and approvals to the smallest necessary Azure resources and pipeline consumers.
  3. Use a GitHub App installation with narrowly requested repository permissions and short-lived installation tokens.
  4. Run CodeQL analysis appropriate to the code language and act on high-severity findings before release.

Explanation

Correct Answer

A:

Use a scoped workload identity federation service connection or GitHub OIDC trust instead of storing long-lived cloud secrets. OIDC-based federation exchanges trusted workflow identity assertions for short-lived cloud access, reducing static credential exposure. A useful check is that the approved job obtains only scoped Azure access without any stored client secret and untrusted branches cannot impersonate it.

Incorrect Answers

B:

This would instead address Service connection scope: Service connections are privileged deployment identities, so resource RBAC and use restrictions should match actual blast radius.

C:

That intervention fits GitHub App scope: GitHub Apps separate automation identity from a human account and can grant repository-scoped, revocable access.

D:

This is designed for CodeQL static analysis: Static code analysis can trace risky code patterns and data flow without relying on runtime exploitation to surface the flaw.

Question 166

A government project keeps process diagrams in private slide files that fall out of sync with its Git repository.

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

  1. A signed event causes one correct downstream update even after a retried webhook delivery.
  2. A changed workflow updates its checked-in documentation and readers can follow the current deployment and rollback path.
  3. Each deployed version has accurate notes listing the associated changes, breaking behaviors and support actions.
  4. An auditor opens a work item and sees the linked GitHub pull request, associated commits and status.

Explanation

Correct Answer

B:

A changed workflow updates its checked-in documentation and readers can follow the current deployment and rollback path. This shows that the control was implemented as intended: maintain reviewed Markdown documentation and Mermaid diagrams alongside the service delivery workflow. It matters because version-controlled documentation can evolve through ordinary review and makes dependencies inspectable by engineers and operators.

Incorrect Answers

A:

That result would verify Webhooks for event integration, where the relevant control is configure authenticated webhooks for specific repository events and handle retries and duplicate deliveries safely.

C:

Such evidence would establish Versioned release notes, where the relevant control is generate versioned release notes from linked work items, pull requests and approved change records.

D:

That result would verify Azure Boards GitHub traceability, where the relevant control is connect Azure Boards with GitHub and associate pull requests and commits with the corresponding work items.

Question 167

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

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

  1. Sequential execution wastes capacity, or omitted combinations allow a platform-specific failure into production.
  2. Choosing solely by vendor name can create duplicative infrastructure and leave approval requirements unmet.
  3. An unmanaged runner can become an unpatched privileged foothold or repeatedly fail for missing tools.
  4. An unanticipated deletion or configuration drift reaches production without prior impact review.

Explanation

Correct Answer

C:

An unmanaged runner can become an unpatched privileged foothold or repeatedly fail for missing tools. The failure follows from the described gap because custom execution environments support private dependencies while making the organization responsible for patching, isolation and capacity. Mitigate it by choosing to provision managed self-hosted runners or agents with required toolchains, networking and hardened lifecycle controls.

Incorrect Answers

A:

This risk is associated with 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 hosted versus self-hosted agents requirement unresolved, which creates this more direct risk: an unmanaged runner can become an unpatched privileged foothold or repeatedly fail for missing tools.

B:

That consequence is characteristic of 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. The present scenario instead leaves the hosted versus self-hosted agents requirement unresolved, which creates this more direct risk: an unmanaged runner can become an unpatched privileged foothold or repeatedly fail for missing tools.

D:

This risk is associated with 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 hosted versus self-hosted agents requirement unresolved, which creates this more direct risk: an unmanaged runner can become an unpatched privileged foothold or repeatedly fail for missing tools.

Question 168

A platform owner is billed for expensive hosted parallel jobs even during long waits for external approvals.

Which explanation best supports the needed implementation decision?

  1. Calendar-based versions express release timing, but do not automatically convey semantic API compatibility.
  2. Serialization prevents conflicting writes to the same mutable production target while allowing independent builds elsewhere.
  3. YAML makes pipeline implementation reviewable as code, while protected environment checks remain separately configured.
  4. Pool sizing is a tradeoff between capacity, execution delay and infrastructure or licensing cost.

Explanation

Correct Answer

D:

Pool sizing is a tradeoff between capacity, execution delay and infrastructure or licensing cost. The appropriate response is to right-size agent pools and job concurrency using observed utilization, queue duration and workload demand. The expected evidence is that queue and build times meet service targets with lower unused capacity and documented capacity thresholds.

Incorrect Answers

A:

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

B:

This reasoning pertains to Concurrent deployment serialization: Serialization prevents conflicting writes to the same mutable production target while allowing independent builds elsewhere.

C:

That explanation is about Migrate classic to YAML: YAML makes pipeline implementation reviewable as code, while protected environment checks remain separately configured.

Question 169

A development leader wants to compare pull requests awaiting review against bugs still open in the sprint.

Which explanation best supports the needed implementation decision?

  1. Consistent query definitions produce comparable operational metrics from the underlying tracked work rather than manual snapshots.
  2. Delivery speed without failure consequences is incomplete; balanced flow and stability indicators reveal unhealthy tradeoffs.
  3. Purposeful notifications give stakeholders timely actionable status while original pipeline permissions continue to protect detail.
  4. Lead time represents a broader demand-to-delivery interval while cycle time examines active flow through the chosen process boundaries.

Explanation

Correct Answer

A:

Consistent query definitions produce comparable operational metrics from the underlying tracked work rather than manual snapshots. The appropriate response is to define repeatable work item queries and dashboards filtered by state, type, age and team. The expected evidence is that a saved dashboard correctly lists aging blocked work with matching criteria and updates as records change.

Incorrect Answers

B:

That explanation is about Deployment frequency and failure rate: Delivery speed without failure consequences is incomplete; balanced flow and stability indicators reveal unhealthy tradeoffs.

C:

This describes the mechanism for Teams pipeline notifications: Purposeful notifications give stakeholders timely actionable status while original pipeline permissions continue to protect detail.

D:

This reasoning pertains to Lead time versus cycle time: Lead time represents a broader demand-to-delivery interval while cycle time examines active flow through the chosen process boundaries.

Question 170

Forty teams maintain almost identical pipeline fragments and each has slightly different logging and vulnerability scanning steps.

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

  1. Only the reviewed fix reaches the supported deployment and its commit is incorporated into ongoing development.
  2. A shared template revision updates all opted-in pipelines with expected parameters and passes regression checks.
  3. The build obtains both approved sources at recorded revisions, and unapproved repositories cannot be checked out.
  4. Publish or deploy starts only after all required predecessor tests and signing checks succeed.

Explanation

Correct Answer

B:

A shared template revision updates all opted-in pipelines with expected parameters and passes regression checks. This shows that the control was implemented as intended: extract common stages into version-controlled YAML templates with parameters for safe variations. It matters because includes and parameterized templates centralize repeatable pipeline logic while keeping service-specific inputs explicit.

Incorrect Answers

A:

This observation would support Hotfix path, where the relevant control is create a controlled hotfix path from the production release, validate the targeted change and reconcile it into main.

C:

That result would verify Cross-repository pipeline checkout, where the relevant control is declare authorized repository resources and checkout steps with pinned or reviewed source references.

D:

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

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