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 5

Question 40

A Microsoft DevOps team is addressing: A GitHub project has rising CI failures, but maintainers monitor only total completed workflow counts. Which TWO complementary actions should be taken? Select TWO answers.

  1. Inspect VM agent health, DCR association, scope, endpoint and ingestion diagnostics.
  2. Inspect Azure Monitor Container Insights, pod events, collection coverage and retention.
  3. Inspect Azure Monitor Agent, VM insights settings, counters and related crash logs.
  4. Inspect GitHub Actions run history, job timing, failure causes and usage trends.
  5. Configure insight charts and notifications for failed and slow required workflows.

Explanation

Correct Answers

D:

Inspect GitHub Actions run history, job timing, failure causes and usage trends. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Configure insight charts and notifications for failed and slow required workflows. Together they address: Workflow insight metrics should distinguish failed jobs, timing and relevant branches.

E:

Configure insight charts and notifications for failed and slow required workflows. This supplies the controlled implementation needed for the scenario. Its complementary step is: Inspect GitHub Actions run history, job timing, failure causes and usage trends. Together they address: Workflow insight metrics should distinguish failed jobs, timing and relevant branches.

Incorrect Answers

A:

Inspect VM agent health, DCR association, scope, endpoint and ingestion diagnostics. This concerns a different DevOps situation: A VM sends no logs to Log Analytics because its Azure Monitor Agent data collection rule targets another resource group. This case instead requires both a targeted investigation (Inspect GitHub Actions run history, job timing, failure causes and usage trends.) and a controlled change (Configure insight charts and notifications for failed and slow required workflows.).

B:

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 GitHub Actions run history, job timing, failure causes and usage trends.) and a controlled change (Configure insight charts and notifications for failed and slow required workflows.).

C:

Inspect Azure Monitor Agent, VM insights settings, counters and related crash logs. This concerns a different DevOps situation: A production VM experiences OOM kills while CPU remains normal and default platform graphs show no guest memory usage. This case instead requires both a targeted investigation (Inspect GitHub Actions run history, job timing, failure causes and usage trends.) and a controlled change (Configure insight charts and notifications for failed and slow required workflows.).

Question 41

A Microsoft DevOps team is addressing: Engineers create temporary load-test environments manually but never remove costly public IP addresses. Which TWO complementary actions should be taken? Select TWO answers.

  1. Compare YAML and Bicep modules, probes, managed identity choices and review history.
  2. Apply an approved Azure Machine Configuration baseline with compliance evaluation.
  3. Pin and review provider versions with a committed lockfile and CI version checks.
  4. Provision short-lived sandbox environments through approved IaC with automatic expiration.
  5. Inspect environment provisioning logs, resource tags, TTL and cleanup policies.

Explanation

Correct Answers

D:

Provision short-lived sandbox environments through approved IaC with automatic expiration. This supplies the controlled implementation needed for the scenario. Its complementary step is: Inspect environment provisioning logs, resource tags, TTL and cleanup policies. Together they address: Ephemeral environments need automated lifecycle, cost and access controls.

E:

Inspect environment provisioning logs, resource tags, TTL and cleanup policies. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Provision short-lived sandbox environments through approved IaC with automatic expiration. Together they address: Ephemeral environments need automated lifecycle, cost and access controls.

Incorrect Answers

A:

Compare YAML and Bicep modules, probes, managed identity choices and review history. This concerns a different DevOps situation: Each team's pipeline provisions Azure Container Apps independently, with inconsistent health probes and identity. This case instead requires both a targeted investigation (Inspect environment provisioning logs, resource tags, TTL and cleanup policies.) and a controlled change (Provision short-lived sandbox environments through approved IaC with automatic expiration.).

B:

Apply an approved Azure Machine Configuration baseline with compliance evaluation. This concerns a different DevOps situation: Production VMs are configured by manual shell changes and new replacement VMs lack required OS baselines. This case instead requires both a targeted investigation (Inspect environment provisioning logs, resource tags, TTL and cleanup policies.) and a controlled change (Provision short-lived sandbox environments through approved IaC with automatic expiration.).

C:

Pin and review provider versions with a committed lockfile and CI version checks. This concerns a different DevOps situation: The same Terraform source yields changed resource behavior because local users and CI select different provider versions. This case instead requires both a targeted investigation (Inspect environment provisioning logs, resource tags, TTL and cleanup policies.) and a controlled change (Provision short-lived sandbox environments through approved IaC with automatic expiration.).

Question 42

After implementing the change, the team verifies: An Azure Repos project has GitHub Advanced Security licensed but required code and secret scanning were never enabled for key repos. Which result would BEST demonstrate that the issue is corrected?

  1. A simulated vulnerable dependency is flagged and its patched upgrade passes validation.
  2. An intentionally unsafe test pattern produces an actionable authorized alert.
  3. A package from an unapproved registry fails the review despite passing unit tests.
  4. A harmless test token pattern triggers the expected prevention or review workflow.

Explanation

Correct Answer

B:

An intentionally unsafe test pattern produces an actionable authorized alert. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Enable supported secret, dependency and code scanning for target Azure Repos repositories. Security capability licensing does not prove scans run or findings are reviewed.

Incorrect Answers

A:

A simulated vulnerable dependency is flagged and its patched upgrade passes validation. This would address a different situation, such as: A public repository uses a vulnerable transitive NPM package but Dependabot alerts are disabled. In the present case, the most directly relevant verification is: An intentionally unsafe test pattern produces an actionable authorized alert. The crucial distinction is: Security capability licensing does not prove scans run or findings are reviewed.

C:

A package from an unapproved registry fails the review despite passing unit tests. 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 verification is: An intentionally unsafe test pattern produces an actionable authorized alert. The crucial distinction is: Security capability licensing does not prove scans run or findings are reviewed.

D:

A harmless test token pattern triggers the expected prevention or review workflow. This would address a different situation, such as: A developer accidentally commits a cloud token, but the repository has no automated alerting on leaked credentials. In the present case, the most directly relevant verification is: An intentionally unsafe test pattern produces an actionable authorized alert. The crucial distinction is: Security capability licensing does not prove scans run or findings are reviewed.

Question 43

An Azure DevOps engineering team evaluates this condition: Developers need consistent temporary test environments, but each manually provisions expensive subscriptions and forgets cleanup. Which DevOps principle BEST explains the underlying weakness?

  1. Self-service environment catalogs can standardize provisioning and lifecycle governance.
  2. Policy exemptions need justified owner approval, scope and expiration.
  3. Stateful IaC replacements require impact review and a migration plan.
  4. Declarative deployments should converge to consistent named resources across repeated runs.

Explanation

Correct Answer

A:

Self-service environment catalogs can standardize provisioning and lifecycle governance. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Inspect environment definitions, project catalog, role assignments and teardown process. An appropriate controlled response is: Publish approved Azure Deployment Environments definitions with scoped self-service and expiration.

Incorrect Answers

B:

Policy exemptions need justified owner approval, scope and expiration. This would address a different situation, such as: A production deployment depends on a time-limited Azure Policy exemption that was never documented or reviewed. In the present case, the most directly relevant principle is: Self-service environment catalogs can standardize provisioning and lifecycle governance. The crucial distinction is: Self-service environment catalogs can standardize provisioning and lifecycle governance.

C:

Stateful IaC replacements require impact review and a migration plan. This would address a different situation, such as: A refactor changes a storage account name while the pipeline applies it directly to production. In the present case, the most directly relevant principle is: Self-service environment catalogs can standardize provisioning and lifecycle governance. The crucial distinction is: Self-service environment catalogs can standardize provisioning and lifecycle governance.

D:

Declarative deployments should converge to consistent named resources across repeated runs. This would address a different situation, such as: A shared Bicep deployment creates a new Log Analytics workspace on each run due to non-deterministic resource names. In the present case, the most directly relevant principle is: Self-service environment catalogs can standardize provisioning and lifecycle governance. The crucial distinction is: Self-service environment catalogs can standardize provisioning and lifecycle governance.

Question 44

The DevOps team must resolve this situation: A production VM experiences OOM kills while CPU remains normal and default platform graphs show no guest memory usage. Which engineering action is MOST appropriate?

  1. Configure monitored failure notifications and an actionable operations escalation path.
  2. Associate the approved data collection rule and validate required log flow to the workspace.
  3. Enable supported AKS container telemetry with resource labels and actionable alerts.
  4. Configure supported VM Insights or guest-memory collection and meaningful alerts.

Explanation

Correct Answer

D:

Configure supported VM Insights or guest-memory collection and meaningful alerts. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: A controlled memory stress event appears in monitored guest memory signals. Guest memory observability requires supported collection beyond basic host CPU metrics.

Incorrect Answers

A:

Configure monitored failure notifications and an actionable operations escalation path. This would address a different situation, such as: Production pipeline deployments fail overnight, but engineers notice only when checking the Azure DevOps portal the next morning. In the present case, the most directly relevant engineering action is: Configure supported VM Insights or guest-memory collection and meaningful alerts. The crucial distinction is: Guest memory observability requires supported collection beyond basic host CPU metrics.

B:

Associate the approved data collection rule and validate required log flow to the workspace. 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 engineering action is: Configure supported VM Insights or guest-memory collection and meaningful alerts. The crucial distinction is: Guest memory observability requires supported collection beyond basic host CPU metrics.

C:

Enable supported AKS container telemetry with resource labels and actionable alerts. 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 engineering action is: Configure supported VM Insights or guest-memory collection and meaningful alerts. The crucial distinction is: Guest memory observability requires supported collection beyond basic host CPU metrics.

Question 45

After implementing the change, the team verifies: A maintainer rebases a shared release branch and force pushes, invalidating teammates' commit references. Which result would BEST demonstrate that the issue is corrected?

  1. A change to the protected payment directory cannot merge without authorized approval.
  2. A collaborator can still resolve the original commit history after the next integration.
  3. A trial feature merges safely with a small diff and mandatory gates intact.
  4. A squashed change can be traced from release to approved PR and tests.

Explanation

Correct Answer

B:

A collaborator can still resolve the original commit history after the next integration. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Restrict force pushes on shared branches and use approved non-destructive integration. History rewriting on shared branches requires explicit governance to protect provenance.

Incorrect Answers

A:

A change to the protected payment directory cannot merge without authorized approval. 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 verification is: A collaborator can still resolve the original commit history after the next integration. The crucial distinction is: History rewriting on shared branches requires explicit governance to protect provenance.

C:

A trial feature merges safely with a small diff and mandatory gates intact. 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 verification is: A collaborator can still resolve the original commit history after the next integration. The crucial distinction is: History rewriting on shared branches requires explicit governance to protect provenance.

D:

A squashed change can be traced from release to approved PR and tests. This would address a different situation, such as: An audit team cannot associate production features with reviewed pull requests after squash merging because release metadata records only original feature SHAs. In the present case, the most directly relevant verification is: A collaborator can still resolve the original commit history after the next integration. The crucial distinction is: History rewriting on shared branches requires explicit governance to protect provenance.

Question 46

After implementing the change, the team verifies: Two user interface variants are shown, but the team changes both pricing logic and checkout latency simultaneously and cannot attribute outcomes. Which result would BEST demonstrate that the issue is corrected?

  1. A comparison can attribute a measured difference to the controlled feature variant.
  2. A first-ring failure prevents later cohorts from receiving the release.
  3. A faulty canary triggers rollback while most production traffic remains on healthy pods.
  4. A simulated new release serves traffic without unplanned outage and rolls back safely.

Explanation

Correct Answer

A:

A comparison can attribute a measured difference to the controlled feature variant. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Isolate the tested change and instrument comparable outcome metrics across randomized cohorts. A/B evaluations require stable cohorts and measurable objective-specific differences.

Incorrect Answers

B:

A first-ring failure prevents later cohorts from receiving the release. 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 verification is: A comparison can attribute a measured difference to the controlled feature variant. The crucial distinction is: A/B evaluations require stable cohorts and measurable objective-specific differences.

C:

A faulty canary triggers rollback while most production traffic remains on healthy pods. This would address a different situation, such as: A new AKS container image may affect payments, but the team wants to limit customer exposure during rollout. In the present case, the most directly relevant verification is: A comparison can attribute a measured difference to the controlled feature variant. The crucial distinction is: A/B evaluations require stable cohorts and measurable objective-specific differences.

D:

A simulated new release serves traffic without unplanned outage and rolls back safely. This would address a different situation, such as: A web application must deploy without interruption, but direct production updates restart every active instance. In the present case, the most directly relevant verification is: A comparison can attribute a measured difference to the controlled feature variant. The crucial distinction is: A/B evaluations require stable cohorts and measurable objective-specific differences.

Question 47

After implementing the change, the team verifies: Each team's pipeline provisions Azure Container Apps independently, with inconsistent health probes and identity. Which result would BEST demonstrate that the issue is corrected?

  1. A test service deployment inherits baseline health and identity configuration.
  2. Production uses the approved digest recorded in the associated pipeline run.
  3. A newly provisioned VM reports accurate guest configuration compliance.
  4. A test environment creates approved resources and deprovisions under the policy.

Explanation

Correct Answer

A:

A test service deployment inherits baseline health and identity configuration. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Publish approved reusable templates with governed versioning and service-specific parameters. Infrastructure templates should codify consistent application platform controls.

Incorrect Answers

B:

Production uses the approved digest recorded in the associated pipeline run. This would address a different situation, such as: Application images are deployed manually after infra provisioning and the deployed image tag is not recorded in Bicep or the release pipeline. In the present case, the most directly relevant verification is: A test service deployment inherits baseline health and identity configuration. The crucial distinction is: Infrastructure templates should codify consistent application platform controls.

C:

A newly provisioned VM reports accurate guest configuration compliance. 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 verification is: A test service deployment inherits baseline health and identity configuration. The crucial distinction is: Infrastructure templates should codify consistent application platform controls.

D:

A test environment creates approved resources and deprovisions under the policy. This would address a different situation, such as: Developers need consistent temporary test environments, but each manually provisions expensive subscriptions and forgets cleanup. In the present case, the most directly relevant verification is: A test service deployment inherits baseline health and identity configuration. The crucial distinction is: Infrastructure templates should codify consistent application platform controls.

Question 48

An Azure DevOps engineering team evaluates this condition: A GitHub repository scans vulnerabilities once a month but merges vulnerable code daily. Which DevOps principle BEST explains the underlying weakness?

  1. Release validation should test critical business journeys rather than only process liveness.
  2. Test stages must declare prerequisite environment and schema dependencies explicitly.
  3. Code-scanning feedback should be available on proposed changes before merge.
  4. Security policy gates should prevent release of unapproved critical vulnerabilities.

Explanation

Correct Answer

C:

Code-scanning feedback should be available on proposed changes before merge. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Review security workflow triggers, branch protection, SARIF uploads and alert policy. An appropriate controlled response is: Run supported code scanning on pull requests with risk-appropriate merge gates.

Incorrect Answers

A:

Release validation should test critical business journeys rather than only process liveness. This would address a different situation, such as: A payment workflow completes an HTTP health check but fails after users submit the checkout form. In the present case, the most directly relevant principle is: Code-scanning feedback should be available on proposed changes before merge. The crucial distinction is: Code-scanning feedback should be available on proposed changes before merge.

B:

Test stages must declare prerequisite environment and schema dependencies explicitly. This would address a different situation, such as: A pipeline starts integration tests before deploying the dependent database migration, causing intermittent failures. In the present case, the most directly relevant principle is: Code-scanning feedback should be available on proposed changes before merge. The crucial distinction is: Code-scanning feedback should be available on proposed changes before merge.

D:

Security policy gates should prevent release of unapproved critical vulnerabilities. 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 principle is: Code-scanning feedback should be available on proposed changes before merge. The crucial distinction is: Code-scanning feedback should be available on proposed changes before merge.

Question 49

The DevOps team must resolve this situation: The same Terraform source yields changed resource behavior because local users and CI select different provider versions. Which engineering action is MOST appropriate?

  1. Pin and review provider versions with a committed lockfile and CI version checks.
  2. Pass verified immutable image identifiers through a controlled IaC deployment interface.
  3. Use a reviewed Deny policy where prevention is required and remediate existing noncompliance separately.
  4. Review the legacy DSC setup and plan a supported configuration management transition or remediation.

Explanation

Correct Answer

A:

Pin and review provider versions with a committed lockfile and CI version checks. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: Repeated plans use the same provider version and give consistent changes. IaC builds need controlled provider requirements and lockfile provenance.

Incorrect Answers

B:

Pass verified immutable image identifiers through a controlled IaC deployment interface. This would address a different situation, such as: Application images are deployed manually after infra provisioning and the deployed image tag is not recorded in Bicep or the release pipeline. In the present case, the most directly relevant engineering action is: Pin and review provider versions with a committed lockfile and CI version checks. The crucial distinction is: IaC builds need controlled provider requirements and lockfile provenance.

C:

Use a reviewed Deny policy where prevention is required and remediate existing noncompliance separately. This would address a different situation, such as: A platform team thinks an Azure Policy Audit effect blocks deployment of unencrypted storage, but noncompliant accounts continue being created. In the present case, the most directly relevant engineering action is: Pin and review provider versions with a committed lockfile and CI version checks. The crucial distinction is: IaC builds need controlled provider requirements and lockfile provenance.

D:

Review the legacy DSC setup and plan a supported configuration management transition or remediation. This would address a different situation, such as: A legacy fleet uses Azure Automation State Configuration but receives no reliable reports of drift or node registration. In the present case, the most directly relevant engineering action is: Pin and review provider versions with a committed lockfile and CI version checks. The crucial distinction is: IaC builds need controlled provider requirements and lockfile provenance.

Question 50

Before changing the pipeline or service, engineers find: A reusable GitHub Actions workflow grants write permissions to every job although most only compile and test. Which evidence should the engineer inspect FIRST?

  1. Inspect workflow permission scopes, reusable call contracts and job operations.
  2. Inspect library permissions, pipeline authorization, variable source and consumer identities.
  3. Review stage condition expressions, dependency status and test results.
  4. Inspect repository runner group rules, fork workflow triggers and credential persistence.

Explanation

Correct Answer

A:

Inspect workflow permission scopes, reusable call contracts and job operations. This directly checks the uncertain behavior or control before changing production. Job-level token permissions should match each workflow task's minimum needs. The resulting targeted action is: Restrict default GITHUB_TOKEN permissions and grant write scopes only to required jobs.

Incorrect Answers

B:

Inspect library permissions, pipeline authorization, variable source and consumer identities. This would address a different situation, such as: A shared variable group contains production connection strings, and every development pipeline can read them. In the present case, the most directly relevant evidence is: Inspect workflow permission scopes, reusable call contracts and job operations. The crucial distinction is: Job-level token permissions should match each workflow task's minimum needs.

C:

Review stage condition expressions, dependency status and test results. This would address a different situation, such as: A post-deployment verification job runs even when staging tests fail because its condition overrides the default dependency check. In the present case, the most directly relevant evidence is: Inspect workflow permission scopes, reusable call contracts and job operations. The crucial distinction is: Job-level token permissions should match each workflow task's minimum needs.

D:

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 workflow permission scopes, reusable call contracts and job operations. The crucial distinction is: Job-level token permissions should match each workflow task's minimum needs.

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