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 25

Question 240

Two independently deployed service versions briefly share one database schema during a rolling upgrade.

Which explanation best supports the needed implementation decision?

  1. Slots provide a separately deployed target and controlled swap that can reduce disruption when application startup is validated.
  2. An extends template can constrain allowed pipeline steps, while checks on protected resources prevent easy removal of the requirement.
  3. Rings separate user populations for controlled exposure and detect population-specific problems before broad deployment.
  4. The expand phase adds compatible schema, data migration occurs safely, and contraction follows after consumers have transitioned.

Explanation

Correct Answer

D:

The expand phase adds compatible schema, data migration occurs safely, and contraction follows after consumers have transitioned. The appropriate response is to use backward-compatible expand-and-contract schema changes before removing old fields. The expected evidence is that both old and new application versions pass compatibility tests during the overlap window.

Incorrect Answers

A:

This describes the mechanism for Azure App Service deployment slot: Slots provide a separately deployed target and controlled swap that can reduce disruption when application startup is validated.

B:

This reasoning pertains to Extends security template: An extends template can constrain allowed pipeline steps, while checks on protected resources prevent easy removal of the requirement.

C:

That explanation is about Ring deployment cohort: Rings separate user populations for controlled exposure and detect population-specific problems before broad deployment.

Question 241

A shared build fails intermittently because one time-dependent test is nondeterministic, prompting widespread blind reruns.

What is the most appropriate action for this DevOps team?

  1. Diagnose and stabilize nondeterministic tests, isolating known flaky cases without silently disabling all quality gates.
  2. Publish machine-readable test results from the pipeline into its native test reporting interface.
  3. Define mandatory test, security and governance gates that block promotion on a failing check.
  4. Define Azure resources in version-controlled Bicep modules and deploy them through reviewed pipelines.

Explanation

Correct Answer

A:

Diagnose and stabilize nondeterministic tests, isolating known flaky cases without silently disabling all quality gates. Flaky tests weaken confidence in build signals and consume delivery capacity; stabilization restores trustworthy pass/fail evidence. A useful check is that repeated identical commits yield consistent results and any quarantined tests remain visible with tracked remediation.

Incorrect Answers

B:

That intervention fits Publish test results: Structured test results allow failures and trends to be associated with builds and commits, instead of buried in unstructured logs.

C:

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

D:

This would instead address Bicep as code: Declarative IaC expresses intended Azure resource configurations and enables repeatable, reviewed deployment rather than manual portal drift.

Question 242

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

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

  1. Unvalidated library changes may be consumed automatically by production pipelines.
  2. An overly broad cache key can introduce wrong dependencies or stale build results.
  3. Unpatched or inconsistent agents cause both supply-chain risk and irreproducible pipeline outcomes.
  4. Overprovisioning wastes money, while indiscriminate downsizing creates delivery bottlenecks.

Explanation

Correct Answer

B:

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 Package feed views: Views provide curated subsets of immutable feed packages for different consumer readiness levels. 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 Agent image maintenance: Controlled immutable agent baselines reduce drift and known vulnerabilities while retaining build reproducibility. 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.

D:

This risk is associated with Agent cost management: Pool sizing is a tradeoff between capacity, execution delay and infrastructure or licensing cost. 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 243

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

What is the most appropriate action for this DevOps team?

  1. Use a GitHub App installation with narrowly requested repository permissions and short-lived installation tokens.
  2. Configure GitHub Advanced Security for the relevant repositories and integrate available findings with Defender for Cloud DevOps Security.
  3. Scope service connection roles and approvals to the smallest necessary Azure resources and pipeline consumers.
  4. Use a managed identity for the Azure-hosted workload and assign minimal target-resource RBAC roles.

Explanation

Correct Answer

C:

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

Incorrect Answers

A:

This is designed for GitHub App scope: GitHub Apps separate automation identity from a human account and can grant repository-scoped, revocable access.

B:

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

D:

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

Question 244

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

What is the most appropriate action for this DevOps team?

  1. Configure authenticated webhooks for specific repository events and handle retries and duplicate deliveries safely.
  2. Generate versioned release notes from linked work items, pull requests and approved change records.
  3. Model explicit states, owners and handoff criteria for each work stage in Azure Boards or GitHub Projects.
  4. Maintain reviewed Markdown documentation and Mermaid diagrams alongside the service delivery workflow.

Explanation

Correct Answer

D:

Maintain reviewed Markdown documentation and Mermaid diagrams alongside the service delivery workflow. Version-controlled documentation can evolve through ordinary review and makes dependencies inspectable by engineers and operators. A useful check is that a changed workflow updates its checked-in documentation and readers can follow the current deployment and rollback path.

Incorrect Answers

A:

This would instead address Webhooks for event integration: Event subscriptions push relevant changes to a receiver; delivery validation and idempotency are necessary for dependable automation.

B:

That intervention fits Versioned release notes: Releasing documented change history helps consumers and support understand compatible features, fixes and known constraints.

C:

This is designed for Cross-team workflow handoffs: An explicit work-item flow gives each team a shared view of readiness and blocked dependencies rather than separate informal queues.

Question 245

A research portal team accepts unreviewed direct pushes by contractors even though their work requires approval.

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. Developers can clone code efficiently and retrieve versioned large binaries through an authorized LFS endpoint.
  3. Pull requests merge frequently against a passing trunk and incomplete features remain safely disabled.
  4. A failed required test blocks merging and the same PR becomes eligible after successful checks and review.

Explanation

Correct Answer

A:

Direct pushes are rejected and proposed changes merge only after the configured approvals and successful checks. This shows that the control was implemented as intended: use short-lived feature branches and protected pull requests with required reviewers and checks. It matters because branch protection enables isolated contribution while enforcing a consistent integration gate before accepted code reaches the default branch.

Incorrect Answers

B:

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.

C:

That result would verify Trunk-based short branches, where the relevant control is adopt trunk-based integration with short-lived branches, automated tests and feature flags for incomplete work.

D:

This observation would support Required status checks, where the relevant control is configure required status checks and block protected-branch merges until the specified CI jobs succeed.

Question 246

A container host restarts pods under memory pressure, but no one correlates memory consumption with application failures.

Which explanation best supports the needed implementation decision?

  1. Aligning deployment events to relevant user-facing reliability metrics turns observability into continuous improvement decisions.
  2. Infrastructure performance indicators help identify resource bottlenecks and distinguish saturation from application defects.
  3. Trace correlation connects related requests and dependencies across service boundaries to reveal end-to-end latency contributors.
  4. Application-level instrumentation exposes call outcomes and dependency contributions that basic host availability cannot explain.

Explanation

Correct Answer

B:

Infrastructure performance indicators help identify resource bottlenecks and distinguish saturation from application defects. The appropriate response is to analyze CPU, memory, disk and network metrics alongside application error and latency telemetry. The expected evidence is that a time-aligned view connects resource saturation with service errors and supports an evidence-based capacity fix.

Incorrect Answers

A:

This describes the mechanism for Telemetry SLO feedback loop: Aligning deployment events to relevant user-facing reliability metrics turns observability into continuous improvement decisions.

C:

That explanation is about Correlated distributed traces: Trace correlation connects related requests and dependencies across service boundaries to reveal end-to-end latency contributors.

D:

This describes the mechanism for Application Insights request telemetry: Application-level instrumentation exposes call outcomes and dependency contributions that basic host availability cannot explain.

Question 247

An enterprise must maintain a supported production version while developing breaking features for the next major release.

What is the most appropriate action for this DevOps team?

  1. Use short-lived feature branches and protected pull requests with required reviewers and checks.
  2. Define CODEOWNERS and require appropriate code-owner approval for protected paths.
  3. Maintain a controlled release branch for the supported version and cherry-pick reviewed fixes as appropriate.
  4. Revoke and rotate the exposed credential immediately, remove sensitive history using an approved rewrite and coordinate downstream cleanup.

Explanation

Correct Answer

C:

Maintain a controlled release branch for the supported version and cherry-pick reviewed fixes as appropriate. Release branches isolate stabilization and patching from ongoing development while still retaining traceable changes. A useful check is that the supported release receives only its approved hotfix and the change is reconciled with ongoing development.

Incorrect Answers

A:

This would instead address Feature branching with reviews: Branch protection enables isolated contribution while enforcing a consistent integration gate before accepted code reaches the default branch.

B:

That intervention fits Code owner review: Path-based review rules route sensitive changes to accountable specialists before merge.

D:

This would instead address 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 248

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

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

  1. Consumers may automatically restore an incompatible dependency and fail during deployment.
  2. An unmanaged runner can become an unpatched privileged foothold or repeatedly fail for missing tools.
  3. A late test failure can occur after an unsafe artifact has already been distributed.
  4. Choosing solely by vendor name can create duplicative infrastructure and leave approval requirements unmet.

Explanation

Correct Answer

D:

Choosing solely by vendor name can create duplicative infrastructure and leave approval requirements unmet. The failure follows from the described gap because both GitHub Actions and Azure Pipelines can automate CI/CD, but repository integration and governance capabilities determine the appropriate fit. Mitigate it by choosing to select the pipeline platform that integrates with repository hosting, required approvals and deployment environments.

Incorrect Answers

A:

This risk is associated with Semantic versioning: SemVer communicates compatibility intent by distinguishing major breaks, compatible additions and backward-compatible fixes. The present scenario instead leaves the github actions versus azure pipelines requirement unresolved, which creates this more direct risk: choosing solely by vendor name can create duplicative infrastructure and leave approval requirements unmet.

B:

That consequence is characteristic of 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 github actions versus azure pipelines requirement unresolved, which creates this more direct risk: choosing solely by vendor name can create duplicative infrastructure and leave approval requirements unmet.

C:

That is a credible failure of YAML multi-stage dependency: Pipelines may execute independent jobs in parallel, so dependent stages must be linked to upstream successful work. The present scenario instead leaves the github actions versus azure pipelines requirement unresolved, which creates this more direct risk: choosing solely by vendor name can create duplicative infrastructure and leave approval requirements unmet.

Question 249

A program manager needs to isolate work blocked for over five days across Azure Boards teams, not export every ticket manually.

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

  1. Unreconciled spreadsheets hide blockers and generate conflicting progress numbers.
  2. An apparent improvement in support productivity can conceal longer and more damaging outages.
  3. The same defect class can repeatedly escape into production while dashboards show only increasing ticket throughput.
  4. Optimizing deploy count alone can drive risky changes and increase production disruption.

Explanation

Correct Answer

A:

Unreconciled spreadsheets hide blockers and generate conflicting progress numbers. The failure follows from the described gap because consistent query definitions produce comparable operational metrics from the underlying tracked work rather than manual snapshots. Mitigate it by choosing to define repeatable work item queries and dashboards filtered by state, type, age and team.

Incorrect Answers

B:

That is a credible failure of Mean time to restore: Recovery duration captures actual service impact better than activity counts and can guide investment in incident response. The present scenario instead leaves the query-based work metrics requirement unresolved, which creates this more direct risk: unreconciled spreadsheets hide blockers and generate conflicting progress numbers.

C:

This risk is associated with Bug quality feedback loop: Tying operational feedback to original code and acceptance criteria exposes recurring failure patterns and supports process improvement. The present scenario instead leaves the query-based work metrics requirement unresolved, which creates this more direct risk: unreconciled spreadsheets hide blockers and generate conflicting progress numbers.

D:

That consequence is characteristic of Deployment frequency and failure rate: Delivery speed without failure consequences is incomplete; balanced flow and stability indicators reveal unhealthy tradeoffs. The present scenario instead leaves the query-based work metrics requirement unresolved, which creates this more direct risk: unreconciled spreadsheets hide blockers and generate conflicting progress numbers.

Question 250

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

What is the most appropriate action for this DevOps team?

  1. Diagnose and stabilize nondeterministic tests, isolating known flaky cases without silently disabling all quality gates.
  2. Use a securely managed self-hosted agent with approved private connectivity and narrowly scoped credentials.
  3. Add integration tests against representative dependencies and validate interface contracts before promotion.
  4. Use an appropriate Azure Machine Configuration or desired-state policy mechanism to audit and remediate configuration drift.

Explanation

Correct Answer

B:

Use a securely managed self-hosted agent with approved private connectivity and narrowly scoped credentials. An agent placed on an approved reachable network can exercise private services without exposing those services publicly. A useful check is that the test stage reaches private endpoints and the agent's network access remains limited to required systems.

Incorrect Answers

A:

This would instead address Flaky test quarantine: Flaky tests weaken confidence in build signals and consume delivery capacity; stabilization restores trustworthy pass/fail evidence.

C:

This is designed for Integration test service boundary: Integration testing checks behavior between components that unit tests with mocks cannot prove.

D:

This would instead address Desired state configuration: Desired-state tools assess ongoing configuration after provisioning, whereas resource deployment alone does not ensure guest settings persist.

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