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 99

Question 980

The DevOps team must resolve this situation: A project accidentally committed generated build outputs and its repository history grew by several gigabytes. Which engineering action is MOST appropriate?

  1. Stop tracking generated outputs and plan reviewed history cleanup with team coordination.
  2. Govern large-file retention, selective downloads and authorized capacity increases.
  3. Archive the repository or lock write access with audited exception handling.
  4. Publish common code as a reviewed versioned package or managed shared component.

Explanation

Correct Answer

A:

Stop tracking generated outputs and plan reviewed history cleanup with team coordination. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: New commits exclude build outputs and repository history action is communicated safely. Repository hygiene needs tracked-artifact policy and planned history repair when necessary.

Incorrect Answers

B:

Govern large-file retention, selective downloads and authorized capacity increases. This would address a different situation, such as: A project enables Git LFS but build agents repeatedly fail because downloads exceed the organization's storage bandwidth quota. In the present case, the most directly relevant engineering action is: Stop tracking generated outputs and plan reviewed history cleanup with team coordination. The crucial distinction is: Repository hygiene needs tracked-artifact policy and planned history repair when necessary.

C:

Archive the repository or lock write access with audited exception handling. This would address a different situation, such as: An archived security-sensitive repository remains writable by former project members and receives unreviewed commits. In the present case, the most directly relevant engineering action is: Stop tracking generated outputs and plan reviewed history cleanup with team coordination. The crucial distinction is: Repository hygiene needs tracked-artifact policy and planned history repair when necessary.

D:

Publish common code as a reviewed versioned package or managed shared component. 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 engineering action is: Stop tracking generated outputs and plan reviewed history cleanup with team coordination. The crucial distinction is: Repository hygiene needs tracked-artifact policy and planned history repair when necessary.

Question 981

After implementing the change, the team verifies: An Azure DevOps deployment service connection is authorized for all pipelines, including untrusted test definitions. Which result would BEST demonstrate that the issue is corrected?

  1. The auditor views the specified repo but cannot inspect unrelated private repositories.
  2. An untrusted pipeline cannot use the production connection while approved release works.
  3. A code author cannot self-approve a restricted deployment without a qualified reviewer.
  4. A replacement instance uses the same authorized identity without sharing passwords.

Explanation

Correct Answer

B:

An untrusted pipeline cannot use the production connection while approved release works. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Disable broad access and explicitly authorize the approved production pipelines. Service connection authorization must be limited to approved pipelines and resource scope.

Incorrect Answers

A:

The auditor views the specified repo but cannot inspect unrelated private repositories. This would address a different situation, such as: An external auditor needs read access to one private repository, but is added as an owner of the whole organization. In the present case, the most directly relevant verification is: An untrusted pipeline cannot use the production connection while approved release works. The crucial distinction is: Service connection authorization must be limited to approved pipelines and resource scope.

C:

A code author cannot self-approve a restricted deployment without a qualified reviewer. This would address a different situation, such as: Developers can edit protected deployment environments and approve their own releases because one group owns all project settings. In the present case, the most directly relevant verification is: An untrusted pipeline cannot use the production connection while approved release works. The crucial distinction is: Service connection authorization must be limited to approved pipelines and resource scope.

D:

A replacement instance uses the same authorized identity without sharing passwords. This would address a different situation, such as: An autoscaled deployment needs consistent identity across short-lived Azure compute instances that are replaced frequently. In the present case, the most directly relevant verification is: An untrusted pipeline cannot use the production connection while approved release works. The crucial distinction is: Service connection authorization must be limited to approved pipelines and resource scope.

Question 982

Before changing the pipeline or service, engineers find: A new release increases HTTP 500s, but the team cannot match failures to deployment timestamps. Which evidence should the engineer inspect FIRST?

  1. Inspect customDimensions, timestamp, role name and exception records.
  2. Compare application failures, deployment annotations, version IDs and request telemetry.
  3. Inspect Heartbeat records, ingestion timestamps, agent status and alert behavior.
  4. Inspect requests, dependencies, operation_Id values and time range.

Explanation

Correct Answer

B:

Compare application failures, deployment annotations, version IDs and request telemetry. This directly checks the uncertain behavior or control before changing production. Operational telemetry should correlate errors with release markers and change events. The resulting targeted action is: Add release annotations and traceable version properties to Application Insights.

Incorrect Answers

A:

Inspect customDimensions, timestamp, role name and exception records. This would address a different situation, such as: A Log Analytics workspace stores application exceptions, but engineers cannot identify which deployment revision triggered a spike. In the present case, the most directly relevant evidence is: Compare application failures, deployment annotations, version IDs and request telemetry. The crucial distinction is: Operational telemetry should correlate errors with release markers and change events.

C:

Inspect Heartbeat records, ingestion timestamps, agent status and alert behavior. This would address a different situation, such as: A VM's monitoring dashboard reports no errors because its telemetry agent stopped sending data three days ago. In the present case, the most directly relevant evidence is: Compare application failures, deployment annotations, version IDs and request telemetry. The crucial distinction is: Operational telemetry should correlate errors with release markers and change events.

D:

Inspect requests, dependencies, operation_Id values and time range. This would address a different situation, such as: Application requests and dependency spans share an operation ID but engineers compare two unrelated totals instead of correlating affected calls. In the present case, the most directly relevant evidence is: Compare application failures, deployment annotations, version IDs and request telemetry. The crucial distinction is: Operational telemetry should correlate errors with release markers and change events.

Question 983

The DevOps team must resolve this situation: A deployment downloads a private configuration file from a public blob URL before replacing placeholders. Which engineering action is MOST appropriate?

  1. Deploy the appropriately authorized certificate material through supported bindings and managed access.
  2. Store approved signing material as an Azure Pipelines secure file with restricted authorization.
  3. Limit trust to an approved protected repository environment and least-privilege scope.
  4. Use restricted secure file or private storage access with controlled cleanup.

Explanation

Correct Answer

D:

Use restricted secure file or private storage access with controlled cleanup. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: An unauthorized caller cannot download the deployment configuration and temp files are removed. Sensitive deployment files should use authenticated encrypted storage and tightly scoped access.

Incorrect Answers

A:

Deploy the appropriately authorized certificate material through supported bindings and managed access. This would address a different situation, such as: An Azure service uses a TLS certificate uploaded to Key Vault, but the deployment copies only the public certificate without the private-key binding. In the present case, the most directly relevant engineering action is: Use restricted secure file or private storage access with controlled cleanup. The crucial distinction is: Sensitive deployment files should use authenticated encrypted storage and tightly scoped access.

B:

Store approved signing material as an Azure Pipelines secure file with restricted authorization. This would address a different situation, such as: A mobile signing certificate is embedded as Base64 directly in a public pipeline YAML file. In the present case, the most directly relevant engineering action is: Use restricted secure file or private storage access with controlled cleanup. The crucial distinction is: Sensitive deployment files should use authenticated encrypted storage and tightly scoped access.

C:

Limit trust to an approved protected repository environment and least-privilege scope. This would address a different situation, such as: A federated Azure identity accepts tokens from any branch in a public GitHub repository and can deploy production resources. In the present case, the most directly relevant engineering action is: Use restricted secure file or private storage access with controlled cleanup. The crucial distinction is: Sensitive deployment files should use authenticated encrypted storage and tightly scoped access.

Question 984

Before changing the pipeline or service, engineers find: Engineers create temporary load-test environments manually but never remove costly public IP addresses. Which evidence should the engineer inspect FIRST?

  1. Inspect resource references, role assignments, provisioning order and propagation behavior.
  2. Inspect environment provisioning logs, resource tags, TTL and cleanup policies.
  3. Inspect guest baseline compliance, configuration assignments and VM identities.
  4. Inspect existing VNet templates, module interfaces, policy results and configuration drift.

Explanation

Correct Answer

B:

Inspect environment provisioning logs, resource tags, TTL and cleanup policies. This directly checks the uncertain behavior or control before changing production. Ephemeral environments need automated lifecycle, cost and access controls. The resulting targeted action is: Provision short-lived sandbox environments through approved IaC with automatic expiration.

Incorrect Answers

A:

Inspect resource references, role assignments, provisioning order and propagation behavior. This would address a different situation, such as: A Bicep deployment creates an application before the required Key Vault access is effective, causing startup failures. In the present case, the most directly relevant evidence is: Inspect environment provisioning logs, resource tags, TTL and cleanup policies. The crucial distinction is: Ephemeral environments need automated lifecycle, cost and access controls.

C:

Inspect guest baseline compliance, configuration assignments and VM identities. This would address a different situation, such as: Production VMs are configured by manual shell changes and new replacement VMs lack required OS baselines. In the present case, the most directly relevant evidence is: Inspect environment provisioning logs, resource tags, TTL and cleanup policies. The crucial distinction is: Ephemeral environments need automated lifecycle, cost and access controls.

D:

Inspect existing VNet templates, module interfaces, policy results and configuration drift. This would address a different situation, such as: Six teams manually create nearly identical VNets with inconsistent NSG defaults and missing diagnostics. In the present case, the most directly relevant evidence is: Inspect environment provisioning logs, resource tags, TTL and cleanup policies. The crucial distinction is: Ephemeral environments need automated lifecycle, cost and access controls.

Question 985

A Microsoft DevOps team is addressing: A library's prerelease build appears in the same feed view consumed by production services and breaks compatibility. Which TWO complementary actions should be taken? Select TWO answers.

  1. Publish the CLI as a versioned Azure Artifacts Universal Package with controlled access.
  2. Use reviewed package promotion into stable feed views before production consumption.
  3. Inspect package visibility, repository grant, GITHUB_TOKEN permissions and workflow context.
  4. Inspect build timestamps, package versions, artifact digests and update metadata.
  5. Inspect feed view membership, promotion permissions, consumer package sources and versions.

Explanation

Correct Answers

B:

Use reviewed package promotion into stable feed views before production consumption. This supplies the controlled implementation needed for the scenario. Its complementary step is: Inspect feed view membership, promotion permissions, consumer package sources and versions. Together they address: Package views can separate promoted stable packages from unapproved candidates.

E:

Inspect feed view membership, promotion permissions, consumer package sources and versions. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Use reviewed package promotion into stable feed views before production consumption. Together they address: Package views can separate promoted stable packages from unapproved candidates.

Incorrect Answers

A:

Publish the CLI as a versioned Azure Artifacts Universal Package with controlled access. This concerns a different DevOps situation: An organization distributes a proprietary CLI as email attachments so engineering teams run inconsistent versions. This case instead requires both a targeted investigation (Inspect feed view membership, promotion permissions, consumer package sources and versions.) and a controlled change (Use reviewed package promotion into stable feed views before production consumption.).

C:

Inspect package visibility, repository grant, GITHUB_TOKEN permissions and workflow context. This concerns a different DevOps situation: A GitHub Actions workflow receives 403 when installing a private package owned by another organization repository. This case instead requires both a targeted investigation (Inspect feed view membership, promotion permissions, consumer package sources and versions.) and a controlled change (Use reviewed package promotion into stable feed views before production consumption.).

D:

Inspect build timestamps, package versions, artifact digests and update metadata. This concerns a different DevOps situation: An organization uses calendar-versioned nightly internal tools but deployments cannot distinguish two builds made on the same day. This case instead requires both a targeted investigation (Inspect feed view membership, promotion permissions, consumer package sources and versions.) and a controlled change (Use reviewed package promotion into stable feed views before production consumption.).

Question 986

The DevOps team must resolve this situation: An API passes functional tests for one user but violates latency objectives under 1,000 concurrent clients. Which engineering action is MOST appropriate?

  1. Add a risk-based container vulnerability scan gate before deployment approval.
  2. Run automated producer-consumer contract checks with backward-compatible staging.
  3. Implement repeatable baseline comparison gates for resource consumption and latency.
  4. Add an Azure Load Testing stage with approved throughput and latency pass criteria.

Explanation

Correct Answer

D:

Add an Azure Load Testing stage with approved throughput and latency pass criteria. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: A release is blocked when representative p95 latency exceeds its objective. Load tests should measure realistic concurrency against explicit performance thresholds.

Incorrect Answers

A:

Add a risk-based container vulnerability scan gate before deployment approval. This would address a different situation, such as: A container image with a known critical vulnerability passes all unit tests and is promoted to production. In the present case, the most directly relevant engineering action is: Add an Azure Load Testing stage with approved throughput and latency pass criteria. The crucial distinction is: Load tests should measure realistic concurrency against explicit performance thresholds.

B:

Run automated producer-consumer contract checks with backward-compatible staging. This would address a different situation, such as: A microservice changes a JSON field name while a downstream consumer still relies on the old name. In the present case, the most directly relevant engineering action is: Add an Azure Load Testing stage with approved throughput and latency pass criteria. The crucial distinction is: Load tests should measure realistic concurrency against explicit performance thresholds.

C:

Implement repeatable baseline comparison gates for resource consumption and latency. This would address a different situation, such as: An API's new release increases CPU costs by 60%, but the load test reports green because no baseline exists. In the present case, the most directly relevant engineering action is: Add an Azure Load Testing stage with approved throughput and latency pass criteria. The crucial distinction is: Load tests should measure realistic concurrency against explicit performance thresholds.

Question 987

Before changing the pipeline or service, engineers find: A maintainer rebases a shared release branch and force pushes, invalidating teammates' commit references. Which evidence should the engineer inspect FIRST?

  1. Inspect merge conflicts, feature activation requirements and current flag controls.
  2. Inspect collaborator roles, fork permissions and branch protection rules.
  3. Review supported version policy, branch retention, release tags and backport evidence.
  4. Review reflogs, branch protections, merge strategy and downstream consumers.

Explanation

Correct Answer

D:

Review reflogs, branch protections, merge strategy and downstream consumers. This directly checks the uncertain behavior or control before changing production. History rewriting on shared branches requires explicit governance to protect provenance. The resulting targeted action is: Restrict force pushes on shared branches and use approved non-destructive integration.

Incorrect Answers

A:

Inspect merge conflicts, feature activation requirements and current flag controls. This would address a different situation, such as: A feature needs gradual rollout, but the team maintains a year-long divergent branch to hide unfinished functionality. In the present case, the most directly relevant evidence is: Review reflogs, branch protections, merge strategy and downstream consumers. The crucial distinction is: History rewriting on shared branches requires explicit governance to protect provenance.

B:

Inspect collaborator roles, fork permissions and branch protection rules. This would address a different situation, such as: External contributors can directly edit protected organization branches rather than submitting reviewed fork-based changes. In the present case, the most directly relevant evidence is: Review reflogs, branch protections, merge strategy and downstream consumers. The crucial distinction is: History rewriting on shared branches requires explicit governance to protect provenance.

C:

Review supported version policy, branch retention, release tags and backport evidence. This would address a different situation, such as: Old supported product versions receive urgent fixes but the team deletes prior release references after every mainline update. In the present case, the most directly relevant evidence is: Review reflogs, branch protections, merge strategy and downstream consumers. The crucial distinction is: History rewriting on shared branches requires explicit governance to protect provenance.

Question 988

Before changing the pipeline or service, engineers find: A business rule has 100% line coverage, but tests still pass when its comparison operator is reversed. Which evidence should the engineer inspect FIRST?

  1. Review coverage collection filters, included assemblies and security-sensitive modules.
  2. Inspect coverage details, assertions, mutation results and test cases.
  3. Inspect schema migration scripts, live app versions, default values and rollback plans.
  4. Inspect connection policy, test-stage service connections, database logs and environment settings.

Explanation

Correct Answer

B:

Inspect coverage details, assertions, mutation results and test cases. This directly checks the uncertain behavior or control before changing production. Coverage alone does not establish assertion quality or defect-detection strength. The resulting targeted action is: Improve boundary-value assertions and use mutation or targeted fault tests as appropriate.

Incorrect Answers

A:

Review coverage collection filters, included assemblies and security-sensitive modules. This would address a different situation, such as: A team's claimed 90% code coverage includes only generated code and excludes its core authorization module. In the present case, the most directly relevant evidence is: Inspect coverage details, assertions, mutation results and test cases. The crucial distinction is: Coverage alone does not establish assertion quality or defect-detection strength.

C:

Inspect schema migration scripts, live app versions, default values and rollback plans. This would address a different situation, such as: A release adds a non-null column while old and new application versions temporarily operate together. In the present case, the most directly relevant evidence is: Inspect coverage details, assertions, mutation results and test cases. The crucial distinction is: Coverage alone does not establish assertion quality or defect-detection strength.

D:

Inspect connection policy, test-stage service connections, database logs and environment settings. This would address a different situation, such as: Service unit tests pass but integration fails because Azure SQL connectivity differs between staging and production. In the present case, the most directly relevant evidence is: Inspect coverage details, assertions, mutation results and test cases. The crucial distinction is: Coverage alone does not establish assertion quality or defect-detection strength.

Question 989

A Microsoft DevOps team is addressing: A compatible optional SDK feature is added, but release automation increments the major version for every change. Which TWO complementary actions should be taken? Select TWO answers.

  1. Classify the nonbreaking feature under an appropriate minor release with validation.
  2. Compare project version ranges, lockfiles, feed updates and restore output.
  3. Configure an approved upstream source and appropriate package permissions in Azure Artifacts.
  4. Use reviewed package promotion into stable feed views before production consumption.
  5. Review API surface change, dependency constraints, version bump rules and changelog.

Explanation

Correct Answers

A:

Classify the nonbreaking feature under an appropriate minor release with validation. This supplies the controlled implementation needed for the scenario. Its complementary step is: Review API surface change, dependency constraints, version bump rules and changelog. Together they address: Semantic versioning should reflect compatibility impact rather than commit count.

E:

Review API surface change, dependency constraints, version bump rules and changelog. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Classify the nonbreaking feature under an appropriate minor release with validation. Together they address: Semantic versioning should reflect compatibility impact rather than commit count.

Incorrect Answers

B:

Compare project version ranges, lockfiles, feed updates and restore output. This concerns a different DevOps situation: The same Git commit restores different NuGet package versions one week apart and intermittently fails tests. This case instead requires both a targeted investigation (Review API surface change, dependency constraints, version bump rules and changelog.) and a controlled change (Classify the nonbreaking feature under an appropriate minor release with validation.).

C:

Configure an approved upstream source and appropriate package permissions in Azure Artifacts. This concerns a different DevOps situation: A package feed cannot install vetted public dependencies during a disconnected corporate build unless developers manually copy files. This case instead requires both a targeted investigation (Review API surface change, dependency constraints, version bump rules and changelog.) and a controlled change (Classify the nonbreaking feature under an appropriate minor release with validation.).

D:

Use reviewed package promotion into stable feed views before production consumption. This concerns a different DevOps situation: A library's prerelease build appears in the same feed view consumed by production services and breaks compatibility. This case instead requires both a targeted investigation (Review API surface change, dependency constraints, version bump rules and changelog.) and a controlled change (Classify the nonbreaking feature under an appropriate minor release with validation.).

Question 990

After implementing the change, the team verifies: An autoscaled deployment needs consistent identity across short-lived Azure compute instances that are replaced frequently. Which result would BEST demonstrate that the issue is corrected?

  1. A code author cannot self-approve a restricted deployment without a qualified reviewer.
  2. A replacement instance uses the same authorized identity without sharing passwords.
  3. The manager can create permitted work items but cannot change release environments.
  4. The app posts required status comments but cannot access unauthorized repositories.

Explanation

Correct Answer

B:

A replacement instance uses the same authorized identity without sharing passwords. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Attach an approved user-assigned managed identity to the participating compute resources. A user-assigned managed identity can preserve identity lifecycle independently of individual resources.

Incorrect Answers

A:

A code author cannot self-approve a restricted deployment without a qualified reviewer. This would address a different situation, such as: Developers can edit protected deployment environments and approve their own releases because one group owns all project settings. In the present case, the most directly relevant verification is: A replacement instance uses the same authorized identity without sharing passwords. The crucial distinction is: A user-assigned managed identity can preserve identity lifecycle independently of individual resources.

C:

The manager can create permitted work items but cannot change release environments. This would address a different situation, such as: A product manager needs to view Azure Boards and submit work items but is given full build administration permissions. In the present case, the most directly relevant verification is: A replacement instance uses the same authorized identity without sharing passwords. The crucial distinction is: A user-assigned managed identity can preserve identity lifecycle independently of individual resources.

D:

The app posts required status comments but cannot access unauthorized repositories. This would address a different situation, such as: An automation bot uses a maintainer's all-repository personal access token to comment on pull requests. In the present case, the most directly relevant verification is: A replacement instance uses the same authorized identity without sharing passwords. The crucial distinction is: A user-assigned managed identity can preserve identity lifecycle independently of individual resources.

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