cert
cert-1
cert-2

Pass Microsoft AZ-400 Exam in First Attempt Guaranteed!

Get 100% Latest Exam Questions, Accurate & Verified Answers to Pass the Actual Exam!
30 Days Free Updates, Instant Download!

cert-5
cert-6
AZ-400 Exam - Verified By Experts
AZ-400 Premium Bundle
$29.98

AZ-400 Premium Bundle

$79.99
$109.97
  • Premium File 398 Questions & Answers. Last update: Oct 30, 2026
  • Training Course 27 Video Lectures
  • Study Guide 784 Pages
 
$109.97
$79.99
accept 56 downloads in last 7 days
block-screenshots
Purchase Microsoft AZ-400 Exam Training Products Individually
Microsoft AZ-400 Premium File
Premium File 398 Q&A
$76.99$69.99
Microsoft AZ-400 Video Training Course
Training Course 27 Lectures
$21.99 $19.99
Microsoft AZ-400 PDF Study Guide
Study Guide 784 Pages
$21.99 $19.99
Microsoft AZ-400 Practice Test 54

Question 530

Before changing the pipeline or service, engineers find: A production release references an unversioned shared secret and breaks when a different team rotates it mid-deployment. Which evidence should the engineer inspect FIRST?

  1. Inspect Deployment strategy, replica count, readiness probes and disruption events.
  2. Inspect Azure App Configuration flags, filters, defaults and access rights.
  3. Inspect Key Vault references, version transitions, rotation timing and runtime caches.
  4. Review component versions, release dependencies, API contracts and pipeline stage graph.

Explanation

Correct Answer

C:

Inspect Key Vault references, version transitions, rotation timing and runtime caches. This directly checks the uncertain behavior or control before changing production. Secret deployment should coordinate version lifecycle and client refresh behavior. The resulting targeted action is: Use governed secret reference/rotation patterns with staged compatibility testing.

Incorrect Answers

A:

Inspect Deployment strategy, replica count, readiness probes and disruption events. This would address a different situation, such as: An AKS update removes every API pod simultaneously because maxUnavailable equals the full replica count. In the present case, the most directly relevant evidence is: Inspect Key Vault references, version transitions, rotation timing and runtime caches. The crucial distinction is: Secret deployment should coordinate version lifecycle and client refresh behavior.

B:

Inspect Azure App Configuration flags, filters, defaults and access rights. This would address a different situation, such as: A half-finished payment feature accidentally activates immediately when its code merges into main. In the present case, the most directly relevant evidence is: Inspect Key Vault references, version transitions, rotation timing and runtime caches. The crucial distinction is: Secret deployment should coordinate version lifecycle and client refresh behavior.

D:

Review component versions, release dependencies, API contracts and pipeline stage graph. This would address a different situation, such as: A frontend release calls an API endpoint introduced only by a backend deployment scheduled later, breaking all sessions. In the present case, the most directly relevant evidence is: Inspect Key Vault references, version transitions, rotation timing and runtime caches. The crucial distinction is: Secret deployment should coordinate version lifecycle and client refresh behavior.

Question 531

The DevOps team must resolve this situation: A Node application pins a top-level package but a transitive dependency introduces an unreviewed major behavior change. Which engineering action is MOST appropriate?

  1. Commit a reviewed lockfile and run reproducible installation with dependency scanning.
  2. Configure an approved upstream source and appropriate package permissions in Azure Artifacts.
  3. Grant the consuming build service read access at the appropriate feed scope.
  4. Pin approved package ranges with lockfiles and deterministic restore settings.

Explanation

Correct Answer

A:

Commit a reviewed lockfile and run reproducible installation with dependency scanning. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: A clean CI installation resolves the audited transitive versions. Transitive dependency resolution must be reproducible and security-reviewed.

Incorrect Answers

B:

Configure an approved upstream source and appropriate package permissions in Azure Artifacts. This would address a different situation, such as: A package feed cannot install vetted public dependencies during a disconnected corporate build unless developers manually copy files. In the present case, the most directly relevant engineering action is: Commit a reviewed lockfile and run reproducible installation with dependency scanning. The crucial distinction is: Transitive dependency resolution must be reproducible and security-reviewed.

C:

Grant the consuming build service read access at the appropriate feed scope. This would address a different situation, such as: A central deployment pipeline cannot restore a package from another Azure DevOps project although the feed works locally. In the present case, the most directly relevant engineering action is: Commit a reviewed lockfile and run reproducible installation with dependency scanning. The crucial distinction is: Transitive dependency resolution must be reproducible and security-reviewed.

D:

Pin approved package ranges with lockfiles and deterministic restore settings. This would address a different situation, such as: The same Git commit restores different NuGet package versions one week apart and intermittently fails tests. In the present case, the most directly relevant engineering action is: Commit a reviewed lockfile and run reproducible installation with dependency scanning. The crucial distinction is: Transitive dependency resolution must be reproducible and security-reviewed.

Question 532

After implementing the change, the team verifies: A shared variable group contains production connection strings, and every development pipeline can read them. Which result would BEST demonstrate that the issue is corrected?

  1. An untrusted development pipeline cannot read production variable values.
  2. A sample GitHub pull request launches a traceable Azure Pipeline check.
  3. A deliberately Linux-only failure is detected before package publication.
  4. A common authentication library change runs the affected service's tests.

Explanation

Correct Answer

A:

An untrusted development pipeline cannot read production variable values. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Separate production variables and restrict group use to approved production pipelines. Variable groups must have environment-specific authorization and secret access controls.

Incorrect Answers

B:

A sample GitHub pull request launches a traceable Azure Pipeline check. This would address a different situation, such as: An Azure DevOps pipeline uses a GitHub repository but cannot run pull-request validation because its repository connection is misconfigured. In the present case, the most directly relevant verification is: An untrusted development pipeline cannot read production variable values. The crucial distinction is: Variable groups must have environment-specific authorization and secret access controls.

C:

A deliberately Linux-only failure is detected before package publication. This would address a different situation, such as: A cross-platform CLI is built only on Windows and fails later when customers run it on Linux. In the present case, the most directly relevant verification is: An untrusted development pipeline cannot read production variable values. The crucial distinction is: Variable groups must have environment-specific authorization and secret access controls.

D:

A common authentication library change runs the affected service's tests. This would address a different situation, such as: A monorepo pipeline skips tests for a common authentication library because its paths filter only includes one service folder. In the present case, the most directly relevant verification is: An untrusted development pipeline cannot read production variable values. The crucial distinction is: Variable groups must have environment-specific authorization and secret access controls.

Question 533

A Microsoft DevOps team is addressing: Verbose diagnostic logging starts printing deployment tokens after a new task version update. Which TWO complementary actions should be taken? Select TWO answers.

  1. Inspect output variables, task logs, masking controls and newly added debug flags.
  2. Assign accountable pipeline owners and route critical failures to current responders.
  3. Remove token emission and enforce safe logging with secret scanning of pipeline output.
  4. Inspect package restore sources, build manifests, feed versions and migration schedule.
  5. Inspect release references, retention rules, ACR manifests and recovery requirements.

Explanation

Correct Answers

A:

Inspect output variables, task logs, masking controls and newly added debug flags. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Remove token emission and enforce safe logging with secret scanning of pipeline output. Together they address: Pipeline monitoring must detect credential disclosure while retaining useful logs.

C:

Remove token emission and enforce safe logging with secret scanning of pipeline output. This supplies the controlled implementation needed for the scenario. Its complementary step is: Inspect output variables, task logs, masking controls and newly added debug flags. Together they address: Pipeline monitoring must detect credential disclosure while retaining useful logs.

Incorrect Answers

B:

Assign accountable pipeline owners and route critical failures to current responders. This concerns a different DevOps situation: A pipeline reports repeated deployment failures but no team receives notifications because the original owner left the company. This case instead requires both a targeted investigation (Inspect output variables, task logs, masking controls and newly added debug flags.) and a controlled change (Remove token emission and enforce safe logging with secret scanning of pipeline output.).

D:

Inspect package restore sources, build manifests, feed versions and migration schedule. This concerns a different DevOps situation: A package registry is scheduled for migration, but retired feeds still contain dependencies used by maintained builds. This case instead requires both a targeted investigation (Inspect output variables, task logs, masking controls and newly added debug flags.) and a controlled change (Remove token emission and enforce safe logging with secret scanning of pipeline output.).

E:

Inspect release references, retention rules, ACR manifests and recovery requirements. This concerns a different DevOps situation: A cost-reduction retention rule deletes the last known-good container image before the rollback period ends. This case instead requires both a targeted investigation (Inspect output variables, task logs, masking controls and newly added debug flags.) and a controlled change (Remove token emission and enforce safe logging with secret scanning of pipeline output.).

Question 534

A Microsoft DevOps team is addressing: A pipeline script prints a test failure but exits with zero, leaving no test results visible in Azure Pipelines. Which TWO complementary actions should be taken? Select TWO answers.

  1. Inspect global.json, agent image capabilities, use-dotnet steps and restore failures.
  2. Run isolated integration tests against approved representative Azure SQL dependencies.
  3. Correct failure handling and publish supported JUnit/TRX results with fail-on-test-failure behavior.
  4. Review process exit codes, PublishTestResults task settings and test XML files.
  5. Inspect task arguments, secret masking, logs, scope and token issuance.

Explanation

Correct Answers

C:

Correct failure handling and publish supported JUnit/TRX results with fail-on-test-failure behavior. This supplies the controlled implementation needed for the scenario. Its complementary step is: Review process exit codes, PublishTestResults task settings and test XML files. Together they address: CI test reporting must propagate failure status and publish actionable test results.

D:

Review process exit codes, PublishTestResults task settings and test XML files. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Correct failure handling and publish supported JUnit/TRX results with fail-on-test-failure behavior. Together they address: CI test reporting must propagate failure status and publish actionable test results.

Incorrect Answers

A:

Inspect global.json, agent image capabilities, use-dotnet steps and restore failures. This concerns a different DevOps situation: An Azure Pipeline fails only on hosted agents because tests require an uninstalled legacy.NET SDK. This case instead requires both a targeted investigation (Review process exit codes, PublishTestResults task settings and test XML files.) and a controlled change (Correct failure handling and publish supported JUnit/TRX results with fail-on-test-failure behavior.).

B:

Run isolated integration tests against approved representative Azure SQL dependencies. This concerns a different DevOps situation: Service unit tests pass but integration fails because Azure SQL connectivity differs between staging and production. This case instead requires both a targeted investigation (Review process exit codes, PublishTestResults task settings and test XML files.) and a controlled change (Correct failure handling and publish supported JUnit/TRX results with fail-on-test-failure behavior.).

E:

Inspect task arguments, secret masking, logs, scope and token issuance. This concerns a different DevOps situation: A test task writes its service principal secret into verbose logs on every failing run. This case instead requires both a targeted investigation (Review process exit codes, PublishTestResults task settings and test XML files.) and a controlled change (Correct failure handling and publish supported JUnit/TRX results with fail-on-test-failure behavior.).

Question 535

Before changing the pipeline or service, engineers find: An Azure DevOps pipeline's Azure Resource Manager service connection fails each quarter when its client secret expires. Which evidence should the engineer inspect FIRST?

  1. Inspect task group inputs, variable classifications, log output and service permissions.
  2. Inspect repository runner group rules, fork workflow triggers and credential persistence.
  3. Inspect endpoint authorization, service principal federation subject and Azure RBAC scope.
  4. Inspect deployment jobs, environment references, resource checks and service connection access.

Explanation

Correct Answer

C:

Inspect endpoint authorization, service principal federation subject and Azure RBAC scope. This directly checks the uncertain behavior or control before changing production. Azure service connections can use workload identity federation instead of expiring shared secrets. The resulting targeted action is: Migrate the service connection to supported workload identity federation with scoped access.

Incorrect Answers

A:

Inspect task group inputs, variable classifications, log output and service permissions. This would address a different situation, such as: An Azure Pipelines task group exposes a deployment secret as a plain variable and prints it during release. In the present case, the most directly relevant evidence is: Inspect endpoint authorization, service principal federation subject and Azure RBAC scope. The crucial distinction is: Azure service connections can use workload identity federation instead of expiring shared secrets.

B:

Inspect repository runner group rules, fork workflow triggers and credential persistence. This would address a different situation, such as: A GitHub self-hosted runner accepts workflows from untrusted forks and shares its workspace with production credentials. In the present case, the most directly relevant evidence is: Inspect endpoint authorization, service principal federation subject and Azure RBAC scope. The crucial distinction is: Azure service connections can use workload identity federation instead of expiring shared secrets.

D:

Inspect deployment jobs, environment references, resource checks and service connection access. This would address a different situation, such as: A YAML pipeline references a production environment but deploys through an unprotected job that never uses the environment resource. In the present case, the most directly relevant evidence is: Inspect endpoint authorization, service principal federation subject and Azure RBAC scope. The crucial distinction is: Azure service connections can use workload identity federation instead of expiring shared secrets.

Question 536

The DevOps team must resolve this situation: An App Service slot swap puts new code online while old instances still write to a shared Azure SQL schema. Which engineering action is MOST appropriate?

  1. Implement staged deployment rings with explicit gates and pause criteria.
  2. Use expand-and-contract database changes before traffic migration.
  3. Define a limited hotfix workflow with priority testing, accountable approval and later backport.
  4. Deploy behind a disabled flag and enable for an approved targeted cohort after validation.

Explanation

Correct Answer

B:

Use expand-and-contract database changes before traffic migration. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: Both old and new versions handle transactions until old traffic drains safely. Blue-green rollout must preserve shared database compatibility during transition.

Incorrect Answers

A:

Implement staged deployment rings with explicit gates and pause criteria. This would address a different situation, such as: A desktop client update is rolled out to every employee globally at the same moment, causing a widespread outage. In the present case, the most directly relevant engineering action is: Use expand-and-contract database changes before traffic migration. The crucial distinction is: Blue-green rollout must preserve shared database compatibility during transition.

C:

Define a limited hotfix workflow with priority testing, accountable approval and later backport. This would address a different situation, such as: A security vulnerability needs same-day correction but the organization’s normal three-week release train blocks all fixes. In the present case, the most directly relevant engineering action is: Use expand-and-contract database changes before traffic migration. The crucial distinction is: Blue-green rollout must preserve shared database compatibility during transition.

D:

Deploy behind a disabled flag and enable for an approved targeted cohort after validation. This would address a different situation, such as: A half-finished payment feature accidentally activates immediately when its code merges into main. In the present case, the most directly relevant engineering action is: Use expand-and-contract database changes before traffic migration. The crucial distinction is: Blue-green rollout must preserve shared database compatibility during transition.

Question 537

A Microsoft DevOps team is addressing: A pipeline team wants 50 more hosted agent slots even though bottlenecks are serial manual approvals and limited integration environments. Which TWO complementary actions should be taken? Select TWO answers.

  1. Implement safe workspace cleanup and monitored cache eviction consistent with rollback needs.
  2. Inspect timeline, agent saturation, external dependencies and budget.
  3. Review queue latency, pool capacity, concurrent jobs and utilization.
  4. Inspect pipeline resources, branch filters, artifact provenance and run IDs.
  5. Remove serial bottlenecks or right-size jobs before purchasing concurrency.

Explanation

Correct Answers

B:

Inspect timeline, agent saturation, external dependencies and budget. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Remove serial bottlenecks or right-size jobs before purchasing concurrency. Together they address: Capacity changes should be justified by measured critical-path improvements and cost.

E:

Remove serial bottlenecks or right-size jobs before purchasing concurrency. This supplies the controlled implementation needed for the scenario. Its complementary step is: Inspect timeline, agent saturation, external dependencies and budget. Together they address: Capacity changes should be justified by measured critical-path improvements and cost.

Incorrect Answers

A:

Implement safe workspace cleanup and monitored cache eviction consistent with rollback needs. This concerns a different DevOps situation: A self-hosted agent fails after months because workspace and Docker layer caches exhaust disk space. This case instead requires both a targeted investigation (Inspect timeline, agent saturation, external dependencies and budget.) and a controlled change (Remove serial bottlenecks or right-size jobs before purchasing concurrency.).

C:

Review queue latency, pool capacity, concurrent jobs and utilization. This concerns a different DevOps situation: A pipeline runs quickly on an agent but waits 70 minutes in queue due to a limited self-hosted pool. This case instead requires both a targeted investigation (Inspect timeline, agent saturation, external dependencies and budget.) and a controlled change (Remove serial bottlenecks or right-size jobs before purchasing concurrency.).

D:

Inspect pipeline resources, branch filters, artifact provenance and run IDs. This concerns a different DevOps situation: A production stage sometimes downloads an artifact from a different branch due to an ambiguous pipeline resource definition. This case instead requires both a targeted investigation (Inspect timeline, agent saturation, external dependencies and budget.) and a controlled change (Remove serial bottlenecks or right-size jobs before purchasing concurrency.).

Question 538

An Azure DevOps engineering team evaluates this condition: Designers repeatedly commit multi-gigabyte video assets as normal Git blobs and cloning takes hours. Which DevOps principle BEST explains the underlying weakness?

  1. Large repositories can use sparse checkout and partial clone to reduce unnecessary working data.
  2. Large binary artifacts need purpose-built storage to avoid expanding ordinary Git history.
  3. Source control workflows must verify path case and platform consistency.
  4. Cross-repository reuse needs an explicit versioned dependency strategy.

Explanation

Correct Answer

B:

Large binary artifacts need purpose-built storage to avoid expanding ordinary Git history. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Inspect file types, object sizes, clone profiles and LFS availability. An appropriate controlled response is: Migrate appropriate binaries to Git LFS and track pointers with controlled storage quotas.

Incorrect Answers

A:

Large repositories can use sparse checkout and partial clone to reduce unnecessary working data. This would address a different situation, such as: A developer needs one service from a huge monorepo, but each checkout transfers every unrelated project and binary. In the present case, the most directly relevant principle is: Large binary artifacts need purpose-built storage to avoid expanding ordinary Git history. The crucial distinction is: Large binary artifacts need purpose-built storage to avoid expanding ordinary Git history.

C:

Source control workflows must verify path case and platform consistency. This would address a different situation, such as: A service builds on a Windows workstation but fails on Linux CI because a source import differs only in filename case. In the present case, the most directly relevant principle is: Large binary artifacts need purpose-built storage to avoid expanding ordinary Git history. The crucial distinction is: Large binary artifacts need purpose-built storage to avoid expanding ordinary Git history.

D:

Cross-repository reuse needs an explicit versioned dependency strategy. This would address a different situation, such as: Two separate repositories copy and edit a common authentication library independently, producing inconsistent fixes. In the present case, the most directly relevant principle is: Large binary artifacts need purpose-built storage to avoid expanding ordinary Git history. The crucial distinction is: Large binary artifacts need purpose-built storage to avoid expanding ordinary Git history.

Question 539

A Microsoft DevOps team is addressing: Two user interface variants are shown, but the team changes both pricing logic and checkout latency simultaneously and cannot attribute outcomes. Which TWO complementary actions should be taken? Select TWO answers.

  1. Publish a reviewed Terraform plan and apply the exact approved plan under controls.
  2. Inspect targeting rules, conversion events, experiment durations and uncontrolled changes.
  3. Isolate the tested change and instrument comparable outcome metrics across randomized cohorts.
  4. Set appropriate maxUnavailable/maxSurge and validate readiness during rollout.
  5. Review flag filter configuration, client context, expected cohorts and telemetry.

Explanation

Correct Answers

B:

Inspect targeting rules, conversion events, experiment durations and uncontrolled changes. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Isolate the tested change and instrument comparable outcome metrics across randomized cohorts. Together they address: A/B evaluations require stable cohorts and measurable objective-specific differences.

C:

Isolate the tested change and instrument comparable outcome metrics across randomized cohorts. This supplies the controlled implementation needed for the scenario. Its complementary step is: Inspect targeting rules, conversion events, experiment durations and uncontrolled changes. Together they address: A/B evaluations require stable cohorts and measurable objective-specific differences.

Incorrect Answers

A:

Publish a reviewed Terraform plan and apply the exact approved plan under controls. This concerns a different DevOps situation: A Terraform pipeline applies a production plan without showing that a changed resource will be destroyed. This case instead requires both a targeted investigation (Inspect targeting rules, conversion events, experiment durations and uncontrolled changes.) and a controlled change (Isolate the tested change and instrument comparable outcome metrics across randomized cohorts.).

D:

Set appropriate maxUnavailable/maxSurge and validate readiness during rollout. This concerns a different DevOps situation: An AKS update removes every API pod simultaneously because maxUnavailable equals the full replica count. This case instead requires both a targeted investigation (Inspect targeting rules, conversion events, experiment durations and uncontrolled changes.) and a controlled change (Isolate the tested change and instrument comparable outcome metrics across randomized cohorts.).

E:

Review flag filter configuration, client context, expected cohorts and telemetry. This concerns a different DevOps situation: A retailer wants to expose a new checkout feature to 5% of customers but its current flag is on or off for everyone. This case instead requires both a targeted investigation (Inspect targeting rules, conversion events, experiment durations and uncontrolled changes.) and a controlled change (Isolate the tested change and instrument comparable outcome metrics across randomized cohorts.).

Question 540

Before changing the pipeline or service, engineers find: An architecture decision record is stored in a shared folder where anyone can overwrite approved design rationale without review. Which evidence should the engineer inspect FIRST?

  1. Inspect webhook delivery IDs, response codes, receiver transaction IDs and retry rules.
  2. Review pipeline notification subscriptions, Teams integration, owners and incident escalation.
  3. Inspect pipeline YAML dependencies, existing diagrams and documentation change records.
  4. Inspect document edit rights, source history, code review ownership and decision status.

Explanation

Correct Answer

D:

Inspect document edit rights, source history, code review ownership and decision status. This directly checks the uncertain behavior or control before changing production. Architectural knowledge needs attributable change history and accountable reviewer approval. The resulting targeted action is: Store decisions in a protected repository with named reviewers and link them to implementation work.

Incorrect Answers

A:

Inspect webhook delivery IDs, response codes, receiver transaction IDs and retry rules. This would address a different situation, such as: An Azure DevOps webhook creates duplicate change tickets whenever the receiving service retries a timeout. In the present case, the most directly relevant evidence is: Inspect document edit rights, source history, code review ownership and decision status. The crucial distinction is: Architectural knowledge needs attributable change history and accountable reviewer approval.

B:

Review pipeline notification subscriptions, Teams integration, owners and incident escalation. This would address a different situation, such as: Critical production deployment failures send only email to an unattended shared mailbox. In the present case, the most directly relevant evidence is: Inspect document edit rights, source history, code review ownership and decision status. The crucial distinction is: Architectural knowledge needs attributable change history and accountable reviewer approval.

C:

Inspect pipeline YAML dependencies, existing diagrams and documentation change records. This would address a different situation, such as: New engineers misread a multi-stage release dependency diagram because process documentation uses an obsolete screenshot. In the present case, the most directly relevant evidence is: Inspect document edit rights, source history, code review ownership and decision status. The crucial distinction is: Architectural knowledge needs attributable change history and accountable reviewer approval.

Designing and Implementing Microsoft DevOps Solutions (AZ-400) Practice Tests