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 36

Question 350

An enterprise rolls out an agent to thousands of branches and wants to learn from low-risk cohorts first.

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

  1. A latent production-only defect affects all customers at once after a full switch.
  2. A full-fleet rollout amplifies an endpoint-specific failure before it can be contained.
  3. The pipeline reports success while customers experience degraded application behavior.
  4. A developer could delete an in-YAML approval step and deploy without independent authorization.

Explanation

Correct Answer

B:

A full-fleet rollout amplifies an endpoint-specific failure before it can be contained. The failure follows from the described gap because rings separate user populations for controlled exposure and detect population-specific problems before broad deployment. Mitigate it by choosing to implement a ring-based rollout with ordered cohorts, monitoring and explicit promotion criteria.

Incorrect Answers

A:

This risk is associated with Canary progressive exposure: Progressive exposure limits the blast radius of a defective release and generates production observations before full cutover. The present scenario instead leaves the ring deployment cohort requirement unresolved, which creates this more direct risk: a full-fleet rollout amplifies an endpoint-specific failure before it can be contained.

C:

That is a credible failure of Rollback health criteria: Successful command execution is not proof of healthy user traffic; objective health checks guide safe progression. The present scenario instead leaves the ring deployment cohort requirement unresolved, which creates this more direct risk: a full-fleet rollout amplifies an endpoint-specific failure before it can be contained.

D:

This risk is associated with YAML environments approvals: Environment checks are managed on the resource rather than inside the pipeline YAML, resisting bypass by repository edits. The present scenario instead leaves the ring deployment cohort requirement unresolved, which creates this more direct risk: a full-fleet rollout amplifies an endpoint-specific failure before it can be contained.

Question 351

A staged Kubernetes application uses an image tag that gets overwritten during unrelated builds before production promotion.

Which explanation best supports the needed implementation decision?

  1. The expand phase adds compatible schema, data migration occurs safely, and contraction follows after consumers have transitioned.
  2. Azure Resource Manager scopes determine where resources and policy assignments can be created, independently of template language.
  3. Image digests identify exact content, preserving supply-chain consistency across environments despite tag changes.
  4. Blue-green deployment separates preparation from traffic cutover and preserves the previous healthy environment for reversal.

Explanation

Correct Answer

C:

Image digests identify exact content, preserving supply-chain consistency across environments despite tag changes. The appropriate response is to promote the tested container by immutable digest rather than relying on a mutable tag name. The expected evidence is that the production workload reports the same approved image digest that passed integration and scanning gates.

Incorrect Answers

A:

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

B:

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

D:

This describes the mechanism for Blue-green cutover: Blue-green deployment separates preparation from traffic cutover and preserves the previous healthy environment for reversal.

Question 352

An organization wants pull requests for security updates instead of manually checking package release notes each week.

What is the most appropriate action for this DevOps team?

  1. Disable unsafe shell tracing and redact credentials while using approved secret variables and non-sensitive diagnostic output.
  2. Enable automated secret scanning and push or pull-request protection with clear remediation for exposed values.
  3. Scan container images and dependencies before promotion, enforce risk-based gates and retain image provenance.
  4. Enable Dependabot alerts and security updates, then validate proposed fixes in CI with clear ownership.

Explanation

Correct Answer

D:

Enable Dependabot alerts and security updates, then validate proposed fixes in CI with clear ownership. Dependency scanning connects known advisories to manifest and lockfile versions and can propose reviewed updates. A useful check is that affected dependencies generate alerts or remediation pull requests and fixed versions pass regression tests.

Incorrect Answers

A:

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.

B:

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

C:

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

Question 353

A repository allows merges when unit tests have failed because reviewers rely on a green comment from a developer.

Which explanation best supports the needed implementation decision?

  1. Server-enforced branch rules validate executable evidence before integration, independent of informal reviewer assurances.
  2. Approvals should cover the final content actually merged, rather than an earlier snapshot of the branch.
  3. Revert preserves the published commit graph while negating the selected change through a new auditable commit.
  4. Branch protection enables isolated contribution while enforcing a consistent integration gate before accepted code reaches the default branch.

Explanation

Correct Answer

A:

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

Incorrect Answers

B:

This describes the mechanism for Merge policy stale approval: Approvals should cover the final content actually merged, rather than an earlier snapshot of the branch.

C:

This reasoning pertains to Recover one commit safely: Revert preserves the published commit graph while negating the selected change through a new auditable commit.

D:

That explanation is about Feature branching with reviews: Branch protection enables isolated contribution while enforcing a consistent integration gate before accepted code reaches the default branch.

Question 354

A signed deployment requires a certificate file but the team proposes publishing its private key as an ordinary build artifact.

Which explanation best supports the needed implementation decision?

  1. Scoped identities and rehearsed rotation reduce the security impact and operational disruption of credential compromise.
  2. Secure files are protected pipeline resources with permissions and checks, unlike publicly retrievable general artifacts.
  3. Static code analysis can trace risky code patterns and data flow without relying on runtime exploitation to surface the flaw.
  4. A dedicated secret store provides access control, rotation and auditing while preventing credentials from becoming ordinary source artifacts.

Explanation

Correct Answer

B:

Secure files are protected pipeline resources with permissions and checks, unlike publicly retrievable general artifacts. The appropriate response is to use Azure Pipelines secure files with access restrictions and approved tasks to deliver the file only to authorized jobs. The expected evidence is that only the designated deployment can access the signing file, and it is not published with the application package.

Incorrect Answers

A:

This describes the mechanism for Secret rotation and scope: Scoped identities and rehearsed rotation reduce the security impact and operational disruption of credential compromise.

C:

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

D:

This describes the mechanism for Key Vault runtime secret retrieval: A dedicated secret store provides access control, rotation and auditing while preventing credentials from becoming ordinary source artifacts.

Question 355

A deployment process distributes certificate private keys by attaching them to build artifacts for convenience.

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. A seeded high-severity injection pattern creates a finding and a protected release cannot proceed until disposition.
  3. The job accesses the approved secret at runtime and no secret value is present in repository history or published artifacts.
  4. An old identity is revoked successfully while each pipeline continues using only its own authorized environment credentials.

Explanation

Correct Answer

C:

The job accesses the approved secret at runtime and no secret value is present in repository history or published artifacts. This shows that the control was implemented as intended: store sensitive values in Azure Key Vault and retrieve them through authorized pipeline identities at execution time. It matters because a dedicated secret store provides access control, rotation and auditing while preventing credentials from becoming ordinary source artifacts.

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 CodeQL static analysis, where the relevant control is run CodeQL analysis appropriate to the code language and act on high-severity findings before release.

D:

That result would verify Secret rotation and scope, where the relevant control is separate credentials by environment and purpose, use short lifetimes or federation, and test rotation and revocation.

Question 356

An enterprise wants management-group governance and resource-group application resources deployed through distinct accountable workflows.

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

  1. A reviewer sees planned Create, Modify or Delete effects and can stop an unexpected destructive change.
  2. A deliberate unauthorized VM setting change is detected and addressed according to policy.
  3. Production consumers resolve only promoted versions while testing projects can access preview packages.
  4. A subscription or management-group change runs through its authorized scope while a resource-group build cannot affect higher scopes.

Explanation

Correct Answer

D:

A subscription or management-group change runs through its authorized scope while a resource-group build cannot affect higher scopes. This shows that the control was implemented as intended: select the appropriate ARM deployment scope and grant the deployment identity only required scoped permissions. It matters because azure Resource Manager scopes determine where resources and policy assignments can be created, independently of template language.

Incorrect Answers

A:

This observation would support ARM what-if safety, where the relevant control is run an Azure Resource Manager what-if evaluation and review predicted changes before protected deployment.

B:

Such evidence would establish Desired state configuration, where the relevant control is use an appropriate Azure Machine Configuration or desired-state policy mechanism to audit and remediate configuration drift.

C:

That result would verify Package feed views, where the relevant control is use Azure Artifacts feed views to promote packages from prerelease into approved release consumption stages.

Question 357

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

What is the most appropriate action for this DevOps team?

  1. Deploy to a staging App Service slot, warm the app and swap slots after successful checks.
  2. Configure the required GitHub Packages permissions and least-privilege workflow token access.
  3. Gate deployment completion on service-health metrics and invoke rollback when agreed thresholds fail.
  4. Create a controlled hotfix path from the production release, validate the targeted change and reconcile it into main.

Explanation

Correct Answer

A:

Deploy to a staging App Service slot, warm the app and swap slots after successful checks. Slots provide a separately deployed target and controlled swap that can reduce disruption when application startup is validated. A useful check is that the staged slot passes health checks before swapping to production, and swap reversal remains available.

Incorrect Answers

B:

This would instead address GitHub Packages access: Package registry operations are authorized separately from ordinary repository read access, and permissions must match publish or consume operations.

C:

That intervention fits Rollback health criteria: Successful command execution is not proof of healthy user traffic; objective health checks guide safe progression.

D:

This is designed for Hotfix path: A distinct expedited path preserves essential test and approval controls while avoiding unrelated functionality.

Question 358

A critical web app accepts unsafe SQL construction and the pipeline has no code security analysis despite frequent releases.

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. Static code analysis can trace risky code patterns and data flow without relying on runtime exploitation to surface the flaw.
  3. Integrated DevOps security posture helps central teams connect source risk with affected development assets and cloud governance.
  4. Container scanning examines packaged runtime components that may not appear in application source analysis.

Explanation

Correct Answer

B:

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 App scope: GitHub Apps separate automation identity from a human account and can grant repository-scoped, revocable access.

C:

This describes the mechanism for GitHub Advanced Security and Defender: Integrated DevOps security posture helps central teams connect source risk with affected development assets and cloud governance.

D:

This reasoning pertains to Container image scanning: Container scanning examines packaged runtime components that may not appear in application source analysis.

Question 359

A pipeline maintains one broad credential for staging, production and audit systems with no rotation procedure.

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. Use a managed identity for the Azure-hosted workload and assign minimal target-resource RBAC roles.
  3. Separate credentials by environment and purpose, use short lifetimes or federation, and test rotation and revocation.
  4. Store sensitive values in Azure Key Vault and retrieve them through authorized pipeline identities at execution time.

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:

That intervention fits Azure Pipelines secure files: Secure files are protected pipeline resources with permissions and checks, unlike publicly retrievable general artifacts.

B:

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.

D:

That intervention fits Key Vault runtime secret retrieval: A dedicated secret store provides access control, rotation and auditing while preventing credentials from becoming ordinary source artifacts.

Question 360

Two engineering groups ship at different cadences and argue about quality solely by counting releases.

What is the most appropriate action for this DevOps team?

  1. Use lead time and cycle time with clearly defined start and end timestamps to locate delivery delays.
  2. Maintain reviewed Markdown documentation and Mermaid diagrams alongside the service delivery workflow.
  3. Measure time to restore service from incident impact to verified recovery and trend it alongside incident frequency.
  4. Track deployment frequency and change failure rate together, with clear production-change and failure definitions.

Explanation

Correct Answer

D:

Track deployment frequency and change failure rate together, with clear production-change and failure definitions. Delivery speed without failure consequences is incomplete; balanced flow and stability indicators reveal unhealthy tradeoffs. A useful check is that a shared dashboard displays release frequency with failed or rolled-back changes over the same period.

Incorrect Answers

A:

This is designed for 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.

B:

This would instead address Wiki and process diagrams: Version-controlled documentation can evolve through ordinary review and makes dependencies inspectable by engineers and operators.

C:

That intervention fits Mean time to restore: Recovery duration captures actual service impact better than activity counts and can guide investment in incident response.

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