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 20

Question 190

The DevOps team must resolve this situation: An Azure service uses a TLS certificate uploaded to Key Vault, but the deployment copies only the public certificate without the private-key binding. Which engineering action is MOST appropriate?

  1. Use restricted secure file or private storage access with controlled cleanup.
  2. Adopt a tested version-management and rotation workflow with rollback compatibility.
  3. Deploy the appropriately authorized certificate material through supported bindings and managed access.
  4. Use an authorized Azure Key Vault-backed secret reference with protected variable handling.

Explanation

Correct Answer

C:

Deploy the appropriately authorized certificate material through supported bindings and managed access. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: The target endpoint serves the full trusted chain without exposing the private key in logs. Certificate deployment must match required private-key access and target service configuration.

Incorrect Answers

A:

Use restricted secure file or private storage access with controlled cleanup. This would address a different situation, such as: A deployment downloads a private configuration file from a public blob URL before replacing placeholders. In the present case, the most directly relevant engineering action is: Deploy the appropriately authorized certificate material through supported bindings and managed access. The crucial distinction is: Certificate deployment must match required private-key access and target service configuration.

B:

Adopt a tested version-management and rotation workflow with rollback compatibility. This would address a different situation, such as: An application release references a database secret version that was deleted during automatic rotation, causing downtime. In the present case, the most directly relevant engineering action is: Deploy the appropriately authorized certificate material through supported bindings and managed access. The crucial distinction is: Certificate deployment must match required private-key access and target service configuration.

D:

Use an authorized Azure Key Vault-backed secret reference with protected variable handling. This would address a different situation, such as: A pipeline prints a database password stored in a plain YAML variable during environment deployment. In the present case, the most directly relevant engineering action is: Deploy the appropriately authorized certificate material through supported bindings and managed access. The crucial distinction is: Certificate deployment must match required private-key access and target service configuration.

Question 191

The DevOps team must resolve this situation: Designers repeatedly commit multi-gigabyte video assets as normal Git blobs and cloning takes hours. Which engineering action is MOST appropriate?

  1. Normalize names and case-correct imports with cross-platform validation in PR checks.
  2. Revoke or rotate the credential, restrict exposure and perform controlled history remediation if necessary.
  3. Archive the repository or lock write access with audited exception handling.
  4. Migrate appropriate binaries to Git LFS and track pointers with controlled storage quotas.

Explanation

Correct Answer

D:

Migrate appropriate binaries to Git LFS and track pointers with controlled storage quotas. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: A fresh clone downloads code quickly and selected large assets on demand. Large binary artifacts need purpose-built storage to avoid expanding ordinary Git history.

Incorrect Answers

A:

Normalize names and case-correct imports with cross-platform validation in PR checks. 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 engineering action is: Migrate appropriate binaries to Git LFS and track pointers with controlled storage quotas. The crucial distinction is: Large binary artifacts need purpose-built storage to avoid expanding ordinary Git history.

B:

Revoke or rotate the credential, restrict exposure and perform controlled history remediation if necessary. This would address a different situation, such as: A database credential is removed from the latest Git commit but remains visible in old revisions. In the present case, the most directly relevant engineering action is: Migrate appropriate binaries to Git LFS and track pointers with controlled storage quotas. The crucial distinction is: Large binary artifacts need purpose-built storage to avoid expanding ordinary Git history.

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: Migrate appropriate binaries to Git LFS and track pointers with controlled storage quotas. The crucial distinction is: Large binary artifacts need purpose-built storage to avoid expanding ordinary Git history.

Question 192

An engineering design review identifies: A GitHub environment is protected, but the deployment job obtains Azure credentials in an earlier unprotected build step. Which shortcut should the team MOST specifically avoid for this case?

  1. Delete the active secret version before dependent services refresh credentials.
  2. Make the configuration container public so all build agents can retrieve it.
  3. Fetch production credentials before the environment approval so deployment runs faster.
  4. Trust every branch and fork workflow to make experimentation easier.

Explanation

Correct Answer

C:

Fetch production credentials before the environment approval so deployment runs faster. This shortcut directly undermines the stated control or workflow. A safer action is: Move cloud credential issuance into the guarded deployment job with scoped federation. Explanation: Credential issuance should occur only after the protected environment gate and trust checks.

Incorrect Answers

A:

Delete the active secret version before dependent services refresh credentials. This would address a different situation, such as: An application release references a database secret version that was deleted during automatic rotation, causing downtime. In the present case, the most directly relevant unsafe shortcut is: Fetch production credentials before the environment approval so deployment runs faster. The crucial distinction is: Credential issuance should occur only after the protected environment gate and trust checks.

B:

Make the configuration container public so all build agents can retrieve it. This would address a different situation, such as: A deployment downloads a private configuration file from a public blob URL before replacing placeholders. In the present case, the most directly relevant unsafe shortcut is: Fetch production credentials before the environment approval so deployment runs faster. The crucial distinction is: Credential issuance should occur only after the protected environment gate and trust checks.

D:

Trust every branch and fork workflow to make experimentation easier. 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 unsafe shortcut is: Fetch production credentials before the environment approval so deployment runs faster. The crucial distinction is: Credential issuance should occur only after the protected environment gate and trust checks.

Question 193

Before changing the pipeline or service, engineers find: Old supported product versions receive urgent fixes but the team deletes prior release references after every mainline update. Which evidence should the engineer inspect FIRST?

  1. Inspect merge cadence, branch age, conflict history and required checks.
  2. Review supported version policy, branch retention, release tags and backport evidence.
  3. Compare release branch commits, mainline history and subsequent deployment tags.
  4. Inspect CODEOWNERS mappings, branch protection and reviewer bypass privileges.

Explanation

Correct Answer

B:

Review supported version policy, branch retention, release tags and backport evidence. This directly checks the uncertain behavior or control before changing production. Maintenance branching should match support windows and preserve immutable release history. The resulting targeted action is: Maintain controlled support branches with signed or protected release tags and planned retirement.

Incorrect Answers

A:

Inspect merge cadence, branch age, conflict history and required checks. This would address a different situation, such as: An organization merges changes only at the end of a six-week release branch, creating hundreds of conflicts. In the present case, the most directly relevant evidence is: Review supported version policy, branch retention, release tags and backport evidence. The crucial distinction is: Maintenance branching should match support windows and preserve immutable release history.

C:

Compare release branch commits, mainline history and subsequent deployment tags. This would address a different situation, such as: A critical production fix is committed to an old release branch and never reaches the mainline, so the bug returns next month. In the present case, the most directly relevant evidence is: Review supported version policy, branch retention, release tags and backport evidence. The crucial distinction is: Maintenance branching should match support windows and preserve immutable release history.

D:

Inspect CODEOWNERS mappings, branch protection and reviewer bypass privileges. This would address a different situation, such as: Payment processing files require security review, but code owner review is only advisory. In the present case, the most directly relevant evidence is: Review supported version policy, branch retention, release tags and backport evidence. The crucial distinction is: Maintenance branching should match support windows and preserve immutable release history.

Question 194

An engineering design review identifies: A reusable GitHub Actions workflow grants write permissions to every job although most only compile and test. Which shortcut should the team MOST specifically avoid for this case?

  1. Copy a template into every repository and disable future version updates.
  2. Assign contents:write to all third-party actions and untrusted test steps.
  3. Make the production runner available to every public pull request for faster testing.
  4. Declare the product cross-platform based on the developer's Windows build alone.

Explanation

Correct Answer

B:

Assign contents:write to all third-party actions and untrusted test steps. This shortcut directly undermines the stated control or workflow. A safer action is: Restrict default GITHUB_TOKEN permissions and grant write scopes only to required jobs. Explanation: Job-level token permissions should match each workflow task's minimum needs.

Incorrect Answers

A:

Copy a template into every repository and disable future version updates. This would address a different situation, such as: Teams each copy a deployment YAML template and security fixes reach only some repositories. In the present case, the most directly relevant unsafe shortcut is: Assign contents:write to all third-party actions and untrusted test steps. The crucial distinction is: Job-level token permissions should match each workflow task's minimum needs.

C:

Make the production runner available to every public pull request for faster testing. 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 unsafe shortcut is: Assign contents:write to all third-party actions and untrusted test steps. The crucial distinction is: Job-level token permissions should match each workflow task's minimum needs.

D:

Declare the product cross-platform based on the developer's Windows build alone. 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 unsafe shortcut is: Assign contents:write to all third-party actions and untrusted test steps. The crucial distinction is: Job-level token permissions should match each workflow task's minimum needs.

Question 195

Before changing the pipeline or service, engineers find: A C# API has risky SQL construction patterns, but pipeline checks only verify compilation. Which evidence should the engineer inspect FIRST?

  1. Review SBOM, open-source license records, distribution type and exception approvals.
  2. Inspect GitHub Advanced Security CodeQL workflow, languages, SARIF results and merge gates.
  3. Inspect lockfile changes, package registry source, published checksums and CI scan reports.
  4. Inspect Defender for Cloud DevOps connector, authorization and repository inventory.

Explanation

Correct Answer

B:

Inspect GitHub Advanced Security CodeQL workflow, languages, SARIF results and merge gates. This directly checks the uncertain behavior or control before changing production. Code scanning should detect relevant source vulnerabilities before release. The resulting targeted action is: Configure approved CodeQL analysis and risk-based remediation gates.

Incorrect Answers

A:

Review SBOM, open-source license records, distribution type and exception approvals. This would address a different situation, such as: A binary distribution uses open-source dependencies but its release process does not check license obligations. In the present case, the most directly relevant evidence is: Inspect GitHub Advanced Security CodeQL workflow, languages, SARIF results and merge gates. The crucial distinction is: Code scanning should detect relevant source vulnerabilities before release.

C:

Inspect lockfile changes, package registry source, published checksums and CI scan reports. This would address a different situation, such as: A dependency update workflow proposes a new package version but its artifact origin is not recorded, weakening supply-chain review. In the present case, the most directly relevant evidence is: Inspect GitHub Advanced Security CodeQL workflow, languages, SARIF results and merge gates. The crucial distinction is: Code scanning should detect relevant source vulnerabilities before release.

D:

Inspect Defender for Cloud DevOps connector, authorization and repository inventory. This would address a different situation, such as: Security findings in Azure DevOps repositories never appear in the organization's central Defender for Cloud dashboard. In the present case, the most directly relevant evidence is: Inspect GitHub Advanced Security CodeQL workflow, languages, SARIF results and merge gates. The crucial distinction is: Code scanning should detect relevant source vulnerabilities before release.

Question 196

After implementing the change, the team verifies: A project enables Git LFS but build agents repeatedly fail because downloads exceed the organization's storage bandwidth quota. Which result would BEST demonstrate that the issue is corrected?

  1. A retag attempt is denied or detected without changing the previously approved release.
  2. A representative CI job retrieves necessary LFS objects within quota and reports failures.
  3. The restored changes match the lost commit without overwriting colleagues' work.
  4. The target service builds correctly with only its required repository content.

Explanation

Correct Answer

B:

A representative CI job retrieves necessary LFS objects within quota and reports failures. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Govern large-file retention, selective downloads and authorized capacity increases. Repository strategies must monitor large-file storage limits and build consumption patterns.

Incorrect Answers

A:

A retag attempt is denied or detected without changing the previously approved release. This would address a different situation, such as: A release build uses a mutable tag name that engineers can retarget to a different unreviewed commit. In the present case, the most directly relevant verification is: A representative CI job retrieves necessary LFS objects within quota and reports failures. The crucial distinction is: Repository strategies must monitor large-file storage limits and build consumption patterns.

C:

The restored changes match the lost commit without overwriting colleagues' work. This would address a different situation, such as: A developer accidentally removes an important local commit during an interactive rebase, but it is still reachable from Git reflog. In the present case, the most directly relevant verification is: A representative CI job retrieves necessary LFS objects within quota and reports failures. The crucial distinction is: Repository strategies must monitor large-file storage limits and build consumption patterns.

D:

The target service builds correctly with only its required repository content. 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 verification is: A representative CI job retrieves necessary LFS objects within quota and reports failures. The crucial distinction is: Repository strategies must monitor large-file storage limits and build consumption patterns.

Question 197

Before changing the pipeline or service, engineers find: A monorepo pipeline skips tests for a common authentication library because its paths filter only includes one service folder. Which evidence should the engineer inspect FIRST?

  1. Inspect firewall paths, private DNS, hosted-agent restrictions and required build tools.
  2. Inspect YAML trigger filters, branch protections and deployment conditions.
  3. Review folder ownership, trigger patterns, dependency graph and missed commits.
  4. Inspect task group inputs, variable classifications, log output and service permissions.

Explanation

Correct Answer

C:

Review folder ownership, trigger patterns, dependency graph and missed commits. This directly checks the uncertain behavior or control before changing production. Path filters must include shared dependencies required by the target service. The resulting targeted action is: Expand path filters to cover the service and relevant shared library changes.

Incorrect Answers

A:

Inspect firewall paths, private DNS, hosted-agent restrictions and required build tools. 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 evidence is: Review folder ownership, trigger patterns, dependency graph and missed commits. The crucial distinction is: Path filters must include shared dependencies required by the target service.

B:

Inspect YAML trigger filters, branch protections and deployment conditions. This would address a different situation, such as: A deployment pipeline runs on feature-branch pushes despite a policy requiring releases only from protected main. In the present case, the most directly relevant evidence is: Review folder ownership, trigger patterns, dependency graph and missed commits. The crucial distinction is: Path filters must include shared dependencies required by the target service.

D:

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: Review folder ownership, trigger patterns, dependency graph and missed commits. The crucial distinction is: Path filters must include shared dependencies required by the target service.

Question 198

A Microsoft DevOps team is addressing: Payment processing files require security review, but code owner review is only advisory. Which TWO complementary actions should be taken? Select TWO answers.

  1. Integrate incomplete code safely behind governed feature flags and short-lived branches.
  2. Enforce code owner approval for sensitive path changes in protected branches.
  3. Inspect CODEOWNERS mappings, branch protection and reviewer bypass privileges.
  4. Compare branch naming, workflow filters, release tags and production deployment records.
  5. Review deployment branch sources, permissions and branch policy coverage.

Explanation

Correct Answers

B:

Enforce code owner approval for sensitive path changes in protected branches. This supplies the controlled implementation needed for the scenario. Its complementary step is: Inspect CODEOWNERS mappings, branch protection and reviewer bypass privileges. Together they address: Sensitive paths should have enforced review by designated accountable owners.

C:

Inspect CODEOWNERS mappings, branch protection and reviewer bypass privileges. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Enforce code owner approval for sensitive path changes in protected branches. Together they address: Sensitive paths should have enforced review by designated accountable owners.

Incorrect Answers

A:

Integrate incomplete code safely behind governed feature flags and short-lived branches. This concerns a different DevOps situation: A feature needs gradual rollout, but the team maintains a year-long divergent branch to hide unfinished functionality. This case instead requires both a targeted investigation (Inspect CODEOWNERS mappings, branch protection and reviewer bypass privileges.) and a controlled change (Enforce code owner approval for sensitive path changes in protected branches.).

D:

Compare branch naming, workflow filters, release tags and production deployment records. This concerns a different DevOps situation: Teams use dozens of release branches with ambiguous names, and automation often deploys the wrong branch. This case instead requires both a targeted investigation (Inspect CODEOWNERS mappings, branch protection and reviewer bypass privileges.) and a controlled change (Enforce code owner approval for sensitive path changes in protected branches.).

E:

Review deployment branch sources, permissions and branch policy coverage. This concerns a different DevOps situation: A company protects main but permits unrestricted direct commits to an unprotected release branch deployed to production. This case instead requires both a targeted investigation (Inspect CODEOWNERS mappings, branch protection and reviewer bypass privileges.) and a controlled change (Enforce code owner approval for sensitive path changes in protected branches.).

Question 199

An Azure DevOps engineering team evaluates this condition: Blob transaction failures increase, but dashboards track only storage account capacity in bytes. Which DevOps principle BEST explains the underlying weakness?

  1. Telemetry collection depends on correct agent, rule association and destination permissions.
  2. Container observability should preserve workload logs and restart context centrally.
  3. Operational monitoring must include service request errors, latency and availability, not just capacity.
  4. Guest memory observability requires supported collection beyond basic host CPU metrics.

Explanation

Correct Answer

C:

Operational monitoring must include service request errors, latency and availability, not just capacity. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Review Azure Monitor Storage transaction metrics, response codes and client diagnostics. An appropriate controlled response is: Configure storage request/error monitoring with service-specific thresholds.

Incorrect Answers

A:

Telemetry collection depends on correct agent, rule association and destination permissions. This would address a different situation, such as: A VM sends no logs to Log Analytics because its Azure Monitor Agent data collection rule targets another resource group. In the present case, the most directly relevant principle is: Operational monitoring must include service request errors, latency and availability, not just capacity. The crucial distinction is: Operational monitoring must include service request errors, latency and availability, not just capacity.

B:

Container observability should preserve workload logs and restart context centrally. This would address a different situation, such as: AKS pods restart frequently but the team captures only the last running pod's console output. In the present case, the most directly relevant principle is: Operational monitoring must include service request errors, latency and availability, not just capacity. The crucial distinction is: Operational monitoring must include service request errors, latency and availability, not just capacity.

D:

Guest memory observability requires supported collection beyond basic host CPU metrics. This would address a different situation, such as: A production VM experiences OOM kills while CPU remains normal and default platform graphs show no guest memory usage. In the present case, the most directly relevant principle is: Operational monitoring must include service request errors, latency and availability, not just capacity. The crucial distinction is: Operational monitoring must include service request errors, latency and availability, not just capacity.

Question 200

Before changing the pipeline or service, engineers find: An Azure Pipeline fails only on hosted agents because tests require an uninstalled legacy .NET SDK. Which evidence should the engineer inspect FIRST?

  1. Inspect global.json, agent image capabilities, use-dotnet steps and restore failures.
  2. Inspect connection policy, test-stage service connections, database logs and environment settings.
  3. Inspect task arguments, secret masking, logs, scope and token issuance.
  4. Review coverage collection filters, included assemblies and security-sensitive modules.

Explanation

Correct Answer

A:

Inspect global.json, agent image capabilities, use-dotnet steps and restore failures. This directly checks the uncertain behavior or control before changing production. Test environments must provision declared toolchains rather than depend on developer machines. The resulting targeted action is: Install or select the approved SDK version in the pipeline before test execution.

Incorrect Answers

B:

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 global.json, agent image capabilities, use-dotnet steps and restore failures. The crucial distinction is: Test environments must provision declared toolchains rather than depend on developer machines.

C:

Inspect task arguments, secret masking, logs, scope and token issuance. This would address a different situation, such as: A test task writes its service principal secret into verbose logs on every failing run. In the present case, the most directly relevant evidence is: Inspect global.json, agent image capabilities, use-dotnet steps and restore failures. The crucial distinction is: Test environments must provision declared toolchains rather than depend on developer machines.

D:

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 global.json, agent image capabilities, use-dotnet steps and restore failures. The crucial distinction is: Test environments must provision declared toolchains rather than depend on developer machines.

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