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 66

Question 650

A shared Bicep template contains production database passwords hard-coded alongside development resource sizes.

Which explanation best supports the needed implementation decision?

  1. Infrastructure code benefits from the same automated feedback and controlled promotion as application code.
  2. Version-controlled IaC can contain safe configuration values, but privileged credentials require a protected secret delivery path.
  3. Includes and parameterized templates centralize repeatable pipeline logic while keeping service-specific inputs explicit.
  4. What-if predicts resource effects without modifying live state, supporting risk review of declarative changes.

Explanation

Correct Answer

B:

Version-controlled IaC can contain safe configuration values, but privileged credentials require a protected secret delivery path. The appropriate response is to separate nonsecret environment parameters and inject sensitive values from approved secret stores at deployment. The expected evidence is that no credential appears in source history or build logs and each environment receives only its intended settings.

Incorrect Answers

A:

That explanation is about IaC test pipeline: Infrastructure code benefits from the same automated feedback and controlled promotion as application code.

C:

This reasoning pertains to Reusable YAML template: Includes and parameterized templates centralize repeatable pipeline logic while keeping service-specific inputs explicit.

D:

That explanation is about ARM what-if safety: What-if predicts resource effects without modifying live state, supporting risk review of declarative changes.

Question 651

A team runs integration tests against a private staging environment inaccessible from public Microsoft-hosted agent addresses.

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

  1. Repeated identical commits yield consistent results and any quarantined tests remain visible with tracked remediation.
  2. Malformed definitions and policy failures stop in CI or test before the protected production stage.
  3. The test stage reaches private endpoints and the agent's network access remains limited to required systems.
  4. A test or security failure prevents the protected deployment and records the unsuccessful check.

Explanation

Correct Answer

C:

The test stage reaches private endpoints and the agent's network access remains limited to required systems. This shows that the control was implemented as intended: use a securely managed self-hosted agent with approved private connectivity and narrowly scoped credentials. It matters because an agent placed on an approved reachable network can exercise private services without exposing those services publicly.

Incorrect Answers

A:

Such evidence would establish Flaky test quarantine, where the relevant control is diagnose and stabilize nondeterministic tests, isolating known flaky cases without silently disabling all quality gates.

B:

That result would verify IaC test pipeline, where the relevant control is run IaC linting and validation plus representative nonproduction deployment tests before production approval.

D:

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.

Question 652

Windows service hosts drift from their required security and service configuration after manual emergency changes.

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

  1. Manual resource creation produces inconsistent environments and untraceable production changes.
  2. Uncontrolled portal edits undermine repeatability and can be overwritten unexpectedly by later deployments.
  3. Dropping or renaming a shared column immediately can break old instances and make rollback unsafe.
  4. Configuration drift survives unnoticed even when the infrastructure template itself remains unchanged.

Explanation

Correct Answer

D:

Configuration drift survives unnoticed even when the infrastructure template itself remains unchanged. The failure follows from the described gap because desired-state tools assess ongoing configuration after provisioning, whereas resource deployment alone does not ensure guest settings persist. Mitigate it by choosing to use an appropriate Azure Machine Configuration or desired-state policy mechanism to audit and remediate configuration drift.

Incorrect Answers

A:

That is a credible failure of Bicep as code: Declarative IaC expresses intended Azure resource configurations and enables repeatable, reviewed deployment rather than manual portal drift. The present scenario instead leaves the desired state configuration requirement unresolved, which creates this more direct risk: configuration drift survives unnoticed even when the infrastructure template itself remains unchanged.

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 desired state configuration requirement unresolved, which creates this more direct risk: configuration drift survives unnoticed even when the infrastructure template itself remains unchanged.

C:

That consequence is characteristic of Database expand-contract migration: The expand phase adds compatible schema, data migration occurs safely, and contraction follows after consumers have transitioned. The present scenario instead leaves the desired state configuration requirement unresolved, which creates this more direct risk: configuration drift survives unnoticed even when the infrastructure template itself remains unchanged.

Question 653

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

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

  1. Overprovisioning wastes money, while indiscriminate downsizing creates delivery bottlenecks.
  2. Unvalidated library changes may be consumed automatically by production pipelines.
  3. An overly broad cache key can introduce wrong dependencies or stale build results.
  4. Delivery degradation goes unnoticed until developers bypass checks or abandon standard workflows.

Explanation

Correct Answer

A:

Overprovisioning wastes money, while indiscriminate downsizing creates delivery bottlenecks. The failure follows from the described gap because pool sizing is a tradeoff between capacity, execution delay and infrastructure or licensing cost. Mitigate it by choosing to right-size agent pools and job concurrency using observed utilization, queue duration and workload demand.

Incorrect Answers

B:

That consequence is characteristic of Package feed views: Views provide curated subsets of immutable feed packages for different consumer readiness levels. The present scenario instead leaves the agent cost management requirement unresolved, which creates this more direct risk: overprovisioning wastes money, while indiscriminate downsizing creates delivery bottlenecks.

C:

That is a credible failure of Build cache with correctness: Correct cache keys improve speed while preventing incompatible or stale cached outputs from silently changing builds. The present scenario instead leaves the agent cost management requirement unresolved, which creates this more direct risk: overprovisioning wastes money, while indiscriminate downsizing creates delivery bottlenecks.

D:

This risk is associated with Pipeline health analytics: Build health includes reliability and time to feedback, not just the final successful outcome. The present scenario instead leaves the agent cost management requirement unresolved, which creates this more direct risk: overprovisioning wastes money, while indiscriminate downsizing creates delivery bottlenecks.

Question 654

A sensitive application pipeline publishes production artifacts even when secret scanning or required integration tests fail.

Which explanation best supports the needed implementation decision?

  1. Unit tests isolate individual functions or units and provide rapid low-cost correctness feedback before integration environments are needed.
  2. A gate turns verifiable quality and risk evidence into an enforceable deployment decision rather than advisory console output.
  3. Coverage shows code exercised, not whether assertions verify correct outcomes or critical boundary conditions.
  4. Controlled immutable agent baselines reduce drift and known vulnerabilities while retaining build reproducibility.

Explanation

Correct Answer

B:

A gate turns verifiable quality and risk evidence into an enforceable deployment decision rather than advisory console output. The appropriate response is to define mandatory test, security and governance gates that block promotion on a failing check. The expected evidence is that a test or security failure prevents the protected deployment and records the unsuccessful check.

Incorrect Answers

A:

This describes the mechanism for Unit tests fast feedback: Unit tests isolate individual functions or units and provide rapid low-cost correctness feedback before integration environments are needed.

C:

That explanation is about Coverage meaningful measurement: Coverage shows code exercised, not whether assertions verify correct outcomes or critical boundary conditions.

D:

This describes the mechanism for Agent image maintenance: Controlled immutable agent baselines reduce drift and known vulnerabilities while retaining build reproducibility.

Question 655

A C# project needs a source-code security gate to find vulnerable data flows before deployment.

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. Secret scanning detects known credential patterns before promotion and alerts owners to rotate any exposed credential.
  3. Static code analysis can trace risky code patterns and data flow without relying on runtime exploitation to surface the flaw.
  4. Service connections are privileged deployment identities, so resource RBAC and use restrictions should match actual blast radius.

Explanation

Correct Answer

C:

Static code analysis can trace risky code patterns and data flow without relying on runtime exploitation to surface the flaw. The appropriate response is to run CodeQL analysis appropriate to the code language and act on high-severity findings before release. The expected evidence is that a seeded high-severity injection pattern creates a finding and a protected release cannot proceed until disposition.

Incorrect Answers

A:

This reasoning pertains to GitHub Advanced Security and Defender: Integrated DevOps security posture helps central teams connect source risk with affected development assets and cloud governance.

B:

That explanation is about Secret scanning in pull requests: Secret scanning detects known credential patterns before promotion and alerts owners to rotate any exposed credential.

D:

This reasoning pertains to Service connection scope: Service connections are privileged deployment identities, so resource RBAC and use restrictions should match actual blast radius.

Question 656

A cross-platform build needs faster restores without accidentally reusing Linux dependencies in Windows jobs.

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

  1. Delivery degradation goes unnoticed until developers bypass checks or abandon standard workflows.
  2. A rushed rewrite may drop critical approvals or inadvertently change build behavior.
  3. Copied binaries diverge between products and a security fix fails to reach every dependent service.
  4. An overly broad cache key can introduce wrong dependencies or stale build results.

Explanation

Correct Answer

D:

An overly broad cache key can introduce wrong dependencies or stale build results. The failure follows from the described gap because correct cache keys improve speed while preventing incompatible or stale cached outputs from silently changing builds. Mitigate it by choosing to introduce keyed dependency or build caching with OS, version and lockfile inputs and validated invalidation.

Incorrect Answers

A:

This risk is associated with Pipeline health analytics: Build health includes reliability and time to feedback, not just the final successful outcome. The present scenario instead leaves the build cache with correctness requirement unresolved, which creates this more direct risk: an overly broad cache key can introduce wrong dependencies or stale build results.

B:

That consequence is characteristic of Migrate classic to YAML: YAML makes pipeline implementation reviewable as code, while protected environment checks remain separately configured. The present scenario instead leaves the build cache with correctness requirement unresolved, which creates this more direct risk: an overly broad cache key can introduce wrong dependencies or stale build results.

C:

That is a credible failure of 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 build cache with correctness requirement unresolved, which creates this more direct risk: an overly broad cache key can introduce wrong dependencies or stale build results.

Question 657

A team wants repeatable builds but agents have accumulated different compiler versions and undocumented fixes.

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

  1. New runners launch from an approved image, report expected tool versions and pass test builds.
  2. A failed error-rate or availability threshold stops promotion and restores the known-good version.
  3. A parallel run matches current outputs and release controls before classic execution is retired.
  4. A failed stage resumes or rolls back without duplicate schema changes or conflicting infrastructure resources.

Explanation

Correct Answer

A:

New runners launch from an approved image, report expected tool versions and pass test builds. This shows that the control was implemented as intended: manage versioned hardened runner images with patch schedules and automated smoke validation. It matters because controlled immutable agent baselines reduce drift and known vulnerabilities while retaining build reproducibility.

Incorrect Answers

B:

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.

C:

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.

D:

Such evidence would establish Pipeline retry boundaries, where the relevant control is retry only safe idempotent operations and use checkpoints and explicit recovery for state-changing steps.

Question 658

Windows service hosts drift from their required security and service configuration after manual emergency changes.

Which explanation best supports the needed implementation decision?

  1. Traceable package metadata and dependency scanning link vulnerabilities to actual consumers and enable controlled remediation.
  2. Desired-state tools assess ongoing configuration after provisioning, whereas resource deployment alone does not ensure guest settings persist.
  3. Version-controlled IaC can contain safe configuration values, but privileged credentials require a protected secret delivery path.
  4. Azure Resource Manager scopes determine where resources and policy assignments can be created, independently of template language.

Explanation

Correct Answer

B:

Desired-state tools assess ongoing configuration after provisioning, whereas resource deployment alone does not ensure guest settings persist. The appropriate response is to use an appropriate Azure Machine Configuration or desired-state policy mechanism to audit and remediate configuration drift. The expected evidence is that a deliberate unauthorized VM setting change is detected and addressed according to policy.

Incorrect Answers

A:

This reasoning pertains to Package vulnerability response: Traceable package metadata and dependency scanning link vulnerabilities to actual consumers and enable controlled remediation.

C:

This describes the mechanism for Environment parameters without secrets: Version-controlled IaC can contain safe configuration values, but privileged credentials require a protected secret delivery path.

D:

This reasoning pertains to Deployment scopes: Azure Resource Manager scopes determine where resources and policy assignments can be created, independently of template language.

Question 659

A platform group wants one maintained network baseline while allowing each project a separate address space.

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

  1. A preventable template defect causes a production outage or partial configuration state.
  2. Uncontrolled portal edits undermine repeatability and can be overwritten unexpectedly by later deployments.
  3. Copied infrastructure templates drift and silently omit security or configuration updates.
  4. An unmanaged runner can become an unpatched privileged foothold or repeatedly fail for missing tools.

Explanation

Correct Answer

C:

Copied infrastructure templates drift and silently omit security or configuration updates. The failure follows from the described gap because parameterizing common infrastructure definitions enforces coherent defaults while permitting legitimate environment differences. Mitigate it by choosing to package reusable Bicep modules with reviewed parameters and approved module versions.

Incorrect Answers

A:

This risk is associated with IaC test pipeline: Infrastructure code benefits from the same automated feedback and controlled promotion as application code. The present scenario instead leaves the bicep module reuse requirement unresolved, which creates this more direct risk: copied infrastructure templates drift and silently omit security or configuration updates.

B:

That consequence is characteristic of 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 bicep module reuse requirement unresolved, which creates this more direct risk: copied infrastructure templates drift and silently omit security or configuration updates.

D:

This risk is associated with Hosted versus self-hosted agents: Custom execution environments support private dependencies while making the organization responsible for patching, isolation and capacity. The present scenario instead leaves the bicep module reuse requirement unresolved, which creates this more direct risk: copied infrastructure templates drift and silently omit security or configuration updates.

Question 660

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

Which explanation best supports the needed implementation decision?

  1. Independent job combinations can run concurrently, making compatibility tests faster without weakening the requirement that all pass.
  2. Desired-state tools assess ongoing configuration after provisioning, whereas resource deployment alone does not ensure guest settings persist.
  3. Trigger rules map source changes to relevant pipelines and reduce unnecessary executions without weakening critical release checks.
  4. Custom execution environments support private dependencies while making the organization responsible for patching, isolation and capacity.

Explanation

Correct Answer

D:

Custom execution environments support private dependencies while making the organization responsible for patching, isolation and capacity. The appropriate response is to provision managed self-hosted runners or agents with required toolchains, networking and hardened lifecycle controls. The expected evidence is that the build uses the approved compiler and private endpoint while runner image and permissions are controlled.

Incorrect Answers

A:

This describes the mechanism for Parallel matrix builds: Independent job combinations can run concurrently, making compatibility tests faster without weakening the requirement that all pass.

B:

This reasoning pertains to Desired state configuration: Desired-state tools assess ongoing configuration after provisioning, whereas resource deployment alone does not ensure guest settings persist.

C:

That explanation is about Trigger branch and path filters: Trigger rules map source changes to relevant pipelines and reduce unnecessary executions without weakening critical release checks.

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