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 34

Question 330

An Azure DevOps engineering team evaluates this condition: An Azure DevOps deployment service connection is authorized for all pipelines, including untrusted test definitions. Which DevOps principle BEST explains the underlying weakness?

  1. Service connection authorization must be limited to approved pipelines and resource scope.
  2. A user-assigned managed identity can preserve identity lifecycle independently of individual resources.
  3. Azure DevOps access levels and security groups should reflect actual job duties.
  4. Administrative and approval authority should be segregated for sensitive deployments.

Explanation

Correct Answer

A:

Service connection authorization must be limited to approved pipelines and resource scope. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Inspect endpoint grant-to-all settings, environment checks and pipeline identities. An appropriate controlled response is: Disable broad access and explicitly authorize the approved production pipelines.

Incorrect Answers

B:

A user-assigned managed identity can preserve identity lifecycle independently of individual resources. 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 principle is: Service connection authorization must be limited to approved pipelines and resource scope. The crucial distinction is: Service connection authorization must be limited to approved pipelines and resource scope.

C:

Azure DevOps access levels and security groups should reflect actual job duties. 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 principle is: Service connection authorization must be limited to approved pipelines and resource scope. The crucial distinction is: Service connection authorization must be limited to approved pipelines and resource scope.

D:

Administrative and approval authority should be segregated for sensitive deployments. 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 principle is: Service connection authorization must be limited to approved pipelines and resource scope. The crucial distinction is: Service connection authorization must be limited to approved pipelines and resource scope.

Question 331

The DevOps team must resolve this situation: An Azure Pipelines task group exposes a deployment secret as a plain variable and prints it during release. Which engineering action is MOST appropriate?

  1. Restrict default GITHUB_TOKEN permissions and grant write scopes only to required jobs.
  2. Deploy a governed self-hosted Azure Pipelines agent with controlled network connectivity.
  3. Use protected secret variables or Key Vault integration and suppress credential output.
  4. Configure approved GitHub connection permissions and required PR build validation.

Explanation

Correct Answer

C:

Use protected secret variables or Key Vault integration and suppress credential output. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: A representative task runs without emitting sensitive values in logs. Reusable pipeline elements must preserve secret scoping and masking.

Incorrect Answers

A:

Restrict default GITHUB_TOKEN permissions and grant write scopes only to required jobs. This would address a different situation, such as: A reusable GitHub Actions workflow grants write permissions to every job although most only compile and test. In the present case, the most directly relevant engineering action is: Use protected secret variables or Key Vault integration and suppress credential output. The crucial distinction is: Reusable pipeline elements must preserve secret scoping and masking.

B:

Deploy a governed self-hosted Azure Pipelines agent with controlled network connectivity. This would address a different situation, such as: A build must reach private package infrastructure inaccessible from Microsoft-hosted agents. In the present case, the most directly relevant engineering action is: Use protected secret variables or Key Vault integration and suppress credential output. The crucial distinction is: Reusable pipeline elements must preserve secret scoping and masking.

D:

Configure approved GitHub connection permissions and required PR build validation. 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 engineering action is: Use protected secret variables or Key Vault integration and suppress credential output. The crucial distinction is: Reusable pipeline elements must preserve secret scoping and masking.

Question 332

An Azure DevOps engineering team evaluates this condition: An API dashboard shows acceptable average response time even though the slowest 5% of requests exceed the customer SLA. Which DevOps principle BEST explains the underlying weakness?

  1. KQL grouping by revision and time can separate release regressions from background failures.
  2. Performance analysis should include tail latency percentiles rather than mean alone.
  3. Correlated tracing requires joining telemetry using compatible operation identifiers.
  4. Security observability requires principal-specific queries and context.

Explanation

Correct Answer

B:

Performance analysis should include tail latency percentiles rather than mean alone. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Inspect request duration distribution, service cohorts, and p95/p99 KQL queries. An appropriate controlled response is: Measure and alert on relevant latency percentiles with suitable dimensions.

Incorrect Answers

A:

KQL grouping by revision and time can separate release regressions from background failures. 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 principle is: Performance analysis should include tail latency percentiles rather than mean alone. The crucial distinction is: Performance analysis should include tail latency percentiles rather than mean alone.

C:

Correlated tracing requires joining telemetry using compatible operation identifiers. 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 principle is: Performance analysis should include tail latency percentiles rather than mean alone. The crucial distinction is: Performance analysis should include tail latency percentiles rather than mean alone.

D:

Security observability requires principal-specific queries and context. This would address a different situation, such as: Azure resource logs show unusual production service principal sign-ins, but a dashboard aggregates all identities together. In the present case, the most directly relevant principle is: Performance analysis should include tail latency percentiles rather than mean alone. The crucial distinction is: Performance analysis should include tail latency percentiles rather than mean alone.

Question 333

Before changing the pipeline or service, engineers find: An engineering organization uses long-lived feature branches, and its hotfixes regularly miss previously merged changes. Which evidence should the engineer inspect FIRST?

  1. Review workflow run identities, issue references, failure events and notification rules.
  2. Compare support messages, GitHub Issues labels, assignees and issue closure history.
  3. Compare release tags, merged pull requests, linked work items and note generation rules.
  4. Compare branch ages, pull request histories, work-item links and release tags.

Explanation

Correct Answer

D:

Compare branch ages, pull request histories, work-item links and release tags. This directly checks the uncertain behavior or control before changing production. Short-lived branches and reviewed pull requests reduce integration drift and make changes traceable. The resulting targeted action is: Adopt protected mainline GitHub Flow with small reviewed changes and linked work items.

Incorrect Answers

A:

Review workflow run identities, issue references, failure events and notification rules. This would address a different situation, such as: A deployment job fails but the failure is not associated with the GitHub issue that requested the release. In the present case, the most directly relevant evidence is: Compare branch ages, pull request histories, work-item links and release tags. The crucial distinction is: Short-lived branches and reviewed pull requests reduce integration drift and make changes traceable.

B:

Compare support messages, GitHub Issues labels, assignees and issue closure history. This would address a different situation, such as: Customer-reported bugs arrive in chat messages and are never consistently recorded for the development team. In the present case, the most directly relevant evidence is: Compare branch ages, pull request histories, work-item links and release tags. The crucial distinction is: Short-lived branches and reviewed pull requests reduce integration drift and make changes traceable.

C:

Compare release tags, merged pull requests, linked work items and note generation rules. This would address a different situation, such as: Release notes are composed from memory and routinely omit merged security improvements. In the present case, the most directly relevant evidence is: Compare branch ages, pull request histories, work-item links and release tags. The crucial distinction is: Short-lived branches and reviewed pull requests reduce integration drift and make changes traceable.

Question 334

Before changing the pipeline or service, engineers find: A pipeline prints a database password stored in a plain YAML variable during environment deployment. Which evidence should the engineer inspect FIRST?

  1. Inspect bash debug flags, Azure CLI output, log retention and secret masking.
  2. Inspect YAML variables, task output, Key Vault references and secret access scope.
  3. Review workflow job ordering, environment references, OIDC identity claims and Azure role scope.
  4. Inspect Entra federated credentials, GitHub workflow identity claims and Azure roles.

Explanation

Correct Answer

B:

Inspect YAML variables, task output, Key Vault references and secret access scope. This directly checks the uncertain behavior or control before changing production. Pipeline secrets should be retrieved from controlled stores and kept out of source and logs. The resulting targeted action is: Use an authorized Azure Key Vault-backed secret reference with protected variable handling.

Incorrect Answers

A:

Inspect bash debug flags, Azure CLI output, log retention and secret masking. This would address a different situation, such as: An Azure CLI task runs with set -x and echoes bearer tokens in the pipeline console log. In the present case, the most directly relevant evidence is: Inspect YAML variables, task output, Key Vault references and secret access scope. The crucial distinction is: Pipeline secrets should be retrieved from controlled stores and kept out of source and logs.

C:

Review workflow job ordering, environment references, OIDC identity claims and Azure role scope. This would address a different situation, such as: A GitHub environment is protected, but the deployment job obtains Azure credentials in an earlier unprotected build step. In the present case, the most directly relevant evidence is: Inspect YAML variables, task output, Key Vault references and secret access scope. The crucial distinction is: Pipeline secrets should be retrieved from controlled stores and kept out of source and logs.

D:

Inspect Entra federated credentials, GitHub workflow identity claims and Azure roles. 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 evidence is: Inspect YAML variables, task output, Key Vault references and secret access scope. The crucial distinction is: Pipeline secrets should be retrieved from controlled stores and kept out of source and logs.

Question 335

A Microsoft DevOps team is addressing: An internal SDK removes a public method yet publishes the next build as a patch release, breaking consumers. Which TWO complementary actions should be taken? Select TWO answers.

  1. Integrate license policy checks into feed promotion and release approval.
  2. Grant read, publish and administration only to the appropriate separate identities.
  3. Inspect dependency resolution reports, advisory scope, wheel metadata and test outcomes.
  4. Publish an appropriate major version with migration guidance and compatibility gates.
  5. Inspect public API diffs, release notes, versioning rules and downstream tests.

Explanation

Correct Answers

D:

Publish an appropriate major version with migration guidance and compatibility gates. This supplies the controlled implementation needed for the scenario. Its complementary step is: Inspect public API diffs, release notes, versioning rules and downstream tests. Together they address: SemVer major versions communicate incompatible public API changes.

E:

Inspect public API diffs, release notes, versioning rules and downstream tests. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Publish an appropriate major version with migration guidance and compatibility gates. Together they address: SemVer major versions communicate incompatible public API changes.

Incorrect Answers

A:

Integrate license policy checks into feed promotion and release approval. This concerns a different DevOps situation: A development team uses a package with licensing obligations incompatible with a proprietary distribution without checking the transitive tree. This case instead requires both a targeted investigation (Inspect public API diffs, release notes, versioning rules and downstream tests.) and a controlled change (Publish an appropriate major version with migration guidance and compatibility gates.).

B:

Grant read, publish and administration only to the appropriate separate identities. This concerns a different DevOps situation: Every developer can delete the versions of a private production library that other teams depend on. This case instead requires both a targeted investigation (Inspect public API diffs, release notes, versioning rules and downstream tests.) and a controlled change (Publish an appropriate major version with migration guidance and compatibility gates.).

C:

Inspect dependency resolution reports, advisory scope, wheel metadata and test outcomes. This concerns a different DevOps situation: A pipeline publishes Python wheels from a feed after an advisory identifies a vulnerable indirect dependency. This case instead requires both a targeted investigation (Inspect public API diffs, release notes, versioning rules and downstream tests.) and a controlled change (Publish an appropriate major version with migration guidance and compatibility gates.).

Question 336

An engineering design review identifies: A VM's monitoring dashboard reports no errors because its telemetry agent stopped sending data three days ago. Which shortcut should the team MOST specifically avoid for this case?

  1. Turn off all telemetry to avoid storage charges for rare failures.
  2. Aggregate all service principal sign-ins into one undifferentiated success count.
  3. Display zero incidents whenever telemetry collection stops.
  4. Increase vCPU count solely because the application feels slow.

Explanation

Correct Answer

C:

Display zero incidents whenever telemetry collection stops. This shortcut directly undermines the stated control or workflow. A safer action is: Create a missing-heartbeat query or alert with appropriate response ownership. Explanation: Missing data must not be interpreted as proof of a healthy resource.

Incorrect Answers

A:

Turn off all telemetry to avoid storage charges for rare failures. This would address a different situation, such as: A low-volume payment failure disappears from diagnostic traces because sampling drops all relevant requests. In the present case, the most directly relevant unsafe shortcut is: Display zero incidents whenever telemetry collection stops. The crucial distinction is: Missing data must not be interpreted as proof of a healthy resource.

B:

Aggregate all service principal sign-ins into one undifferentiated success count. This would address a different situation, such as: Azure resource logs show unusual production service principal sign-ins, but a dashboard aggregates all identities together. In the present case, the most directly relevant unsafe shortcut is: Display zero incidents whenever telemetry collection stops. The crucial distinction is: Missing data must not be interpreted as proof of a healthy resource.

D:

Increase vCPU count solely because the application feels slow. This would address a different situation, such as: An application slows while CPU is low but disk I/O is saturated; operators conclude more vCPUs are needed. In the present case, the most directly relevant unsafe shortcut is: Display zero incidents whenever telemetry collection stops. The crucial distinction is: Missing data must not be interpreted as proof of a healthy resource.

Question 337

A Microsoft DevOps team is addressing: An API's new release increases CPU costs by 60%, but the load test reports green because no baseline exists. Which TWO complementary actions should be taken? Select TWO answers.

  1. Use a dedicated test subscription or resource group with restricted identity permissions.
  2. Test expand-and-contract schema changes against concurrent old and new application instances.
  3. Review prior performance runs, cost metrics, current profile and thresholds.
  4. Install or select the approved SDK version in the pipeline before test execution.
  5. Implement repeatable baseline comparison gates for resource consumption and latency.

Explanation

Correct Answers

C:

Review prior performance runs, cost metrics, current profile and thresholds. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Implement repeatable baseline comparison gates for resource consumption and latency. Together they address: Performance testing should compare measured changes against approved regression budgets.

E:

Implement repeatable baseline comparison gates for resource consumption and latency. This supplies the controlled implementation needed for the scenario. Its complementary step is: Review prior performance runs, cost metrics, current profile and thresholds. Together they address: Performance testing should compare measured changes against approved regression budgets.

Incorrect Answers

A:

Use a dedicated test subscription or resource group with restricted identity permissions. This concerns a different DevOps situation: A test pipeline reuses a production storage account and occasionally deletes customer fixtures. This case instead requires both a targeted investigation (Review prior performance runs, cost metrics, current profile and thresholds.) and a controlled change (Implement repeatable baseline comparison gates for resource consumption and latency.).

B:

Test expand-and-contract schema changes against concurrent old and new application instances. This concerns a different DevOps situation: A release adds a non-null column while old and new application versions temporarily operate together. This case instead requires both a targeted investigation (Review prior performance runs, cost metrics, current profile and thresholds.) and a controlled change (Implement repeatable baseline comparison gates for resource consumption and latency.).

D:

Install or select the approved SDK version in the pipeline before test execution. 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 prior performance runs, cost metrics, current profile and thresholds.) and a controlled change (Implement repeatable baseline comparison gates for resource consumption and latency.).

Question 338

A Microsoft DevOps team is addressing: Intermittent API failures occur across a private network, but monitoring uses only application exception counts. Which TWO complementary actions should be taken? Select TWO answers.

  1. Inspect Azure Monitor Container Insights, pod events, collection coverage and retention.
  2. Inspect Azure Network Watcher/Monitor network metrics, connection monitoring and path diagnostics.
  3. Review Azure Monitor Storage transaction metrics, response codes and client diagnostics.
  4. Instrument supported Application Insights distributed tracing with context propagation.
  5. Enable an approved connection monitor for the critical private network path.

Explanation

Correct Answers

B:

Inspect Azure Network Watcher/Monitor network metrics, connection monitoring and path diagnostics. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Enable an approved connection monitor for the critical private network path. Together they address: Network telemetry should complement application logs to locate connectivity failure.

E:

Enable an approved connection monitor for the critical private network path. This supplies the controlled implementation needed for the scenario. Its complementary step is: Inspect Azure Network Watcher/Monitor network metrics, connection monitoring and path diagnostics. Together they address: Network telemetry should complement application logs to locate connectivity failure.

Incorrect Answers

A:

Inspect Azure Monitor Container Insights, pod events, collection coverage and retention. This concerns a different DevOps situation: AKS pods restart frequently but the team captures only the last running pod's console output. This case instead requires both a targeted investigation (Inspect Azure Network Watcher/Monitor network metrics, connection monitoring and path diagnostics.) and a controlled change (Enable an approved connection monitor for the critical private network path.).

C:

Review Azure Monitor Storage transaction metrics, response codes and client diagnostics. This concerns a different DevOps situation: Blob transaction failures increase, but dashboards track only storage account capacity in bytes. This case instead requires both a targeted investigation (Inspect Azure Network Watcher/Monitor network metrics, connection monitoring and path diagnostics.) and a controlled change (Enable an approved connection monitor for the critical private network path.).

D:

Instrument supported Application Insights distributed tracing with context propagation. This concerns a different DevOps situation: A shopping application logs HTTP failures but does not show which downstream payment call caused the response delay. This case instead requires both a targeted investigation (Inspect Azure Network Watcher/Monitor network metrics, connection monitoring and path diagnostics.) and a controlled change (Enable an approved connection monitor for the critical private network path.).

Question 339

An Azure DevOps engineering team evaluates this condition: An Azure DevOps webhook creates duplicate change tickets whenever the receiving service retries a timeout. Which DevOps principle BEST explains the underlying weakness?

  1. Release documentation should reconcile source changes with versioning and consumer impact.
  2. Cross-platform collaboration requires configured repository and work-item integration.
  3. Cross-tool event integrations need idempotent handling and observability.
  4. Architectural knowledge needs attributable change history and accountable reviewer approval.

Explanation

Correct Answer

C:

Cross-tool event integrations need idempotent handling and observability. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Inspect webhook delivery IDs, response codes, receiver transaction IDs and retry rules. An appropriate controlled response is: Use stable event IDs and idempotent ticket creation with failure monitoring.

Incorrect Answers

A:

Release documentation should reconcile source changes with versioning and consumer impact. This would address a different situation, such as: An internal library ships monthly but its changelog omits breaking changes unless one maintainer remembers to edit it. In the present case, the most directly relevant principle is: Cross-tool event integrations need idempotent handling and observability. The crucial distinction is: Cross-tool event integrations need idempotent handling and observability.

B:

Cross-platform collaboration requires configured repository and work-item integration. This would address a different situation, such as: A team uses GitHub for code and Azure Boards for planning, but pull requests never appear in its work items. In the present case, the most directly relevant principle is: Cross-tool event integrations need idempotent handling and observability. The crucial distinction is: Cross-tool event integrations need idempotent handling and observability.

D:

Architectural knowledge needs attributable change history and accountable reviewer approval. This would address a different situation, such as: An architecture decision record is stored in a shared folder where anyone can overwrite approved design rationale without review. In the present case, the most directly relevant principle is: Cross-tool event integrations need idempotent handling and observability. The crucial distinction is: Cross-tool event integrations need idempotent handling and observability.

Question 340

The DevOps team must resolve this situation: A repository wiki describes a build script that was removed six months ago and breaks onboarding. Which engineering action is MOST appropriate?

  1. Keep technical runbooks alongside source changes with reviewed documentation checks.
  2. Route deployment and failure events to the approved Microsoft Teams operations channel.
  3. Store decisions in a protected repository with named reviewers and link them to implementation work.
  4. Maintain a reviewed Mermaid diagram generated or updated alongside pipeline changes.

Explanation

Correct Answer

A:

Keep technical runbooks alongside source changes with reviewed documentation checks. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: A fresh contributor follows the current documented build without obsolete steps. Documentation should be versioned with the workflow it explains and validated during change.

Incorrect Answers

B:

Route deployment and failure events to the approved Microsoft Teams operations channel. 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 engineering action is: Keep technical runbooks alongside source changes with reviewed documentation checks. The crucial distinction is: Documentation should be versioned with the workflow it explains and validated during change.

C:

Store decisions in a protected repository with named reviewers and link them to implementation work. This would address a different situation, such as: An architecture decision record is stored in a shared folder where anyone can overwrite approved design rationale without review. In the present case, the most directly relevant engineering action is: Keep technical runbooks alongside source changes with reviewed documentation checks. The crucial distinction is: Documentation should be versioned with the workflow it explains and validated during change.

D:

Maintain a reviewed Mermaid diagram generated or updated alongside pipeline changes. 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 engineering action is: Keep technical runbooks alongside source changes with reviewed documentation checks. The crucial distinction is: Documentation should be versioned with the workflow it explains and validated during change.

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