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 52

Question 510

An Azure DevOps engineering team evaluates this condition: A VM sends no logs to Log Analytics because its Azure Monitor Agent data collection rule targets another resource group. Which DevOps principle BEST explains the underlying weakness?

  1. Telemetry collection depends on correct agent, rule association and destination permissions.
  2. Network telemetry should complement application logs to locate connectivity failure.
  3. Operational monitoring must include service request errors, latency and availability, not just capacity.
  4. Container observability should preserve workload logs and restart context centrally.

Explanation

Correct Answer

A:

Telemetry collection depends on correct agent, rule association and destination permissions. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Inspect VM agent health, DCR association, scope, endpoint and ingestion diagnostics. An appropriate controlled response is: Associate the approved data collection rule and validate required log flow to the workspace.

Incorrect Answers

B:

Network telemetry should complement application logs to locate connectivity failure. This would address a different situation, such as: Intermittent API failures occur across a private network, but monitoring uses only application exception counts. In the present case, the most directly relevant principle is: Telemetry collection depends on correct agent, rule association and destination permissions. The crucial distinction is: Telemetry collection depends on correct agent, rule association and destination permissions.

C:

Operational monitoring must include service request errors, latency and availability, not just capacity. This would address a different situation, such as: Blob transaction failures increase, but dashboards track only storage account capacity in bytes. In the present case, the most directly relevant principle is: Telemetry collection depends on correct agent, rule association and destination permissions. The crucial distinction is: Telemetry collection depends on correct agent, rule association and destination permissions.

D:

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: Telemetry collection depends on correct agent, rule association and destination permissions. The crucial distinction is: Telemetry collection depends on correct agent, rule association and destination permissions.

Question 511

A Microsoft DevOps team is addressing: A web application must deploy without interruption, but direct production updates restart every active instance. Which TWO complementary actions should be taken? Select TWO answers.

  1. Implement staged deployment rings with explicit gates and pause criteria.
  2. Deploy the candidate to a staging slot, validate health, then perform a controlled swap.
  3. Configure graceful shutdown and appropriate draining before removing active targets.
  4. Inspect slot configuration, sticky settings, warmup endpoints and swap history.
  5. Use slot-sticky settings and suppress staging triggers until explicitly authorized.

Explanation

Correct Answers

B:

Deploy the candidate to a staging slot, validate health, then perform a controlled swap. This supplies the controlled implementation needed for the scenario. Its complementary step is: Inspect slot configuration, sticky settings, warmup endpoints and swap history. Together they address: Deployment slots support staged verification and controlled production swaps where supported.

D:

Inspect slot configuration, sticky settings, warmup endpoints and swap history. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Deploy the candidate to a staging slot, validate health, then perform a controlled swap. Together they address: Deployment slots support staged verification and controlled production swaps where supported.

Incorrect Answers

A:

Implement staged deployment rings with explicit gates and pause criteria. This concerns a different DevOps situation: A desktop client update is rolled out to every employee globally at the same moment, causing a widespread outage. This case instead requires both a targeted investigation (Inspect slot configuration, sticky settings, warmup endpoints and swap history.) and a controlled change (Deploy the candidate to a staging slot, validate health, then perform a controlled swap.).

C:

Configure graceful shutdown and appropriate draining before removing active targets. This concerns a different DevOps situation: A deployment removes an application instance while it has open customer sessions, causing dropped purchases. This case instead requires both a targeted investigation (Inspect slot configuration, sticky settings, warmup endpoints and swap history.) and a controlled change (Deploy the candidate to a staging slot, validate health, then perform a controlled swap.).

E:

Use slot-sticky settings and suppress staging triggers until explicitly authorized. This concerns a different DevOps situation: An Azure Functions staging slot unexpectedly processes production queue messages before its swap because a trigger configuration was not isolated. This case instead requires both a targeted investigation (Inspect slot configuration, sticky settings, warmup endpoints and swap history.) and a controlled change (Deploy the candidate to a staging slot, validate health, then perform a controlled swap.).

Question 512

Before changing the pipeline or service, engineers find: A retailer wants to expose a new checkout feature to 5% of customers but its current flag is on or off for everyone. Which evidence should the engineer inspect FIRST?

  1. Inspect ACR digest, release manifest, build provenance and tag permissions.
  2. Inspect Key Vault references, version transitions, rotation timing and runtime caches.
  3. Inspect ingress traffic splitting, pod health, business error metrics and rollback triggers.
  4. Review flag filter configuration, client context, expected cohorts and telemetry.

Explanation

Correct Answer

D:

Review flag filter configuration, client context, expected cohorts and telemetry. This directly checks the uncertain behavior or control before changing production. Targeting filters can control feature exposure by cohort or percentage. The resulting targeted action is: Configure a controlled percentage or targeting filter with versioned rollout criteria.

Incorrect Answers

A:

Inspect ACR digest, release manifest, build provenance and tag permissions. This would address a different situation, such as: A release manifest references an ACR latest tag that was replaced after QA approval. In the present case, the most directly relevant evidence is: Review flag filter configuration, client context, expected cohorts and telemetry. The crucial distinction is: Targeting filters can control feature exposure by cohort or percentage.

B:

Inspect Key Vault references, version transitions, rotation timing and runtime caches. This would address a different situation, such as: A production release references an unversioned shared secret and breaks when a different team rotates it mid-deployment. In the present case, the most directly relevant evidence is: Review flag filter configuration, client context, expected cohorts and telemetry. The crucial distinction is: Targeting filters can control feature exposure by cohort or percentage.

C:

Inspect ingress traffic splitting, pod health, business error metrics and rollback triggers. 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 evidence is: Review flag filter configuration, client context, expected cohorts and telemetry. The crucial distinction is: Targeting filters can control feature exposure by cohort or percentage.

Question 513

A Microsoft DevOps team is addressing: A Bicep deployment creates an application before the required Key Vault access is effective, causing startup failures. Which TWO complementary actions should be taken? Select TWO answers.

  1. Add explicit dependency and readiness checks where Azure role propagation needs validation.
  2. Inspect template inputs, source history, Key Vault access and deployment output.
  3. Inspect resource references, role assignments, provisioning order and propagation behavior.
  4. Inspect DSC node enrollment, configuration compilations and reporting logs.
  5. Use secured remote state with least-privilege identity and locking support.

Explanation

Correct Answers

A:

Add explicit dependency and readiness checks where Azure role propagation needs validation. This supplies the controlled implementation needed for the scenario. Its complementary step is: Inspect resource references, role assignments, provisioning order and propagation behavior. Together they address: IaC dependency design must express when required resources and authorization are ready.

C:

Inspect resource references, role assignments, provisioning order and propagation behavior. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Add explicit dependency and readiness checks where Azure role propagation needs validation. Together they address: IaC dependency design must express when required resources and authorization are ready.

Incorrect Answers

B:

Inspect template inputs, source history, Key Vault access and deployment output. This concerns a different DevOps situation: A Bicep parameter file stores database administrator passwords in plaintext committed to Git. This case instead requires both a targeted investigation (Inspect resource references, role assignments, provisioning order and propagation behavior.) and a controlled change (Add explicit dependency and readiness checks where Azure role propagation needs validation.).

D:

Inspect DSC node enrollment, configuration compilations and reporting logs. This concerns a different DevOps situation: A legacy fleet uses Azure Automation State Configuration but receives no reliable reports of drift or node registration. This case instead requires both a targeted investigation (Inspect resource references, role assignments, provisioning order and propagation behavior.) and a controlled change (Add explicit dependency and readiness checks where Azure role propagation needs validation.).

E:

Use secured remote state with least-privilege identity and locking support. This concerns a different DevOps situation: A Terraform workflow stores its state file in an unencrypted shared file share accessible to all developers. This case instead requires both a targeted investigation (Inspect resource references, role assignments, provisioning order and propagation behavior.) and a controlled change (Add explicit dependency and readiness checks where Azure role propagation needs validation.).

Question 514

An Azure DevOps engineering team evaluates this condition: An App Service accesses Azure Storage using a connection string containing an account key in source control. Which DevOps principle BEST explains the underlying weakness?

  1. A user-assigned managed identity can preserve identity lifecycle independently of individual resources.
  2. Managed identity can replace application-stored credentials when the target service supports Azure RBAC.
  3. Workflow tokens should default to read-only and be elevated only where necessary.
  4. External access should be scoped to the minimum repository and role.

Explanation

Correct Answer

B:

Managed identity can replace application-stored credentials when the target service supports Azure RBAC. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Inspect App Service identity settings, storage RBAC and credential history. An appropriate controlled response is: Enable system-assigned managed identity and grant narrow storage data-plane roles.

Incorrect Answers

A:

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: Managed identity can replace application-stored credentials when the target service supports Azure RBAC. The crucial distinction is: Managed identity can replace application-stored credentials when the target service supports Azure RBAC.

C:

Workflow tokens should default to read-only and be elevated only where necessary. This would address a different situation, such as: A GitHub Actions test workflow with untrusted input has contents:write even though it only runs tests. In the present case, the most directly relevant principle is: Managed identity can replace application-stored credentials when the target service supports Azure RBAC. The crucial distinction is: Managed identity can replace application-stored credentials when the target service supports Azure RBAC.

D:

External access should be scoped to the minimum repository and role. 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 principle is: Managed identity can replace application-stored credentials when the target service supports Azure RBAC. The crucial distinction is: Managed identity can replace application-stored credentials when the target service supports Azure RBAC.

Question 515

An engineering design review identifies: Teams each copy a deployment YAML template and security fixes reach only some repositories. Which shortcut should the team MOST specifically avoid for this case?

  1. Copy a template into every repository and disable future version updates.
  2. Expose the private package registry publicly with anonymous write access.
  3. Assign contents:write to all third-party actions and untrusted test steps.
  4. Set the service principal secret never to expire and share it across all projects.

Explanation

Correct Answer

A:

Copy a template into every repository and disable future version updates. This shortcut directly undermines the stated control or workflow. A safer action is: Move common steps into approved reusable templates with pinned or governed references. Explanation: Shared templates should be centrally governed and versioned for compatible consumers.

Incorrect Answers

B:

Expose the private package registry publicly with anonymous write access. 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 unsafe shortcut is: Copy a template into every repository and disable future version updates. The crucial distinction is: Shared templates should be centrally governed and versioned for compatible consumers.

C:

Assign contents:write to all third-party actions and untrusted test steps. 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 unsafe shortcut is: Copy a template into every repository and disable future version updates. The crucial distinction is: Shared templates should be centrally governed and versioned for compatible consumers.

D:

Set the service principal secret never to expire and share it across all projects. This would address a different situation, such as: An Azure DevOps pipeline's Azure Resource Manager service connection fails each quarter when its client secret expires. In the present case, the most directly relevant unsafe shortcut is: Copy a template into every repository and disable future version updates. The crucial distinction is: Shared templates should be centrally governed and versioned for compatible consumers.

Question 516

Before changing the pipeline or service, engineers find: An untrusted pull request can modify the secret-scanning workflow and disable scanning in its own run. Which evidence should the engineer inspect FIRST?

  1. Inspect workflow PR permissions, required checks and protected branch policy.
  2. Inspect image digests, scan results, base packages and policy thresholds.
  3. Inspect Defender for Cloud DevOps connector, authorization and repository inventory.
  4. Inspect repository secret-scanning alerts, token audit logs and response workflow.

Explanation

Correct Answer

A:

Inspect workflow PR permissions, required checks and protected branch policy. This directly checks the uncertain behavior or control before changing production. Security workflows require protected configuration and evaluation from trusted context. The resulting targeted action is: Enforce independently controlled scanning status and immutable required checks on protected branches.

Incorrect Answers

B:

Inspect image digests, scan results, base packages and policy thresholds. This would address a different situation, such as: An ACR pipeline pushes vulnerable base images and deploys without considering scan results. In the present case, the most directly relevant evidence is: Inspect workflow PR permissions, required checks and protected branch policy. The crucial distinction is: Security workflows require protected configuration and evaluation from trusted context.

C:

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 workflow PR permissions, required checks and protected branch policy. The crucial distinction is: Security workflows require protected configuration and evaluation from trusted context.

D:

Inspect repository secret-scanning alerts, token audit logs and response 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 evidence is: Inspect workflow PR permissions, required checks and protected branch policy. The crucial distinction is: Security workflows require protected configuration and evaluation from trusted context.

Question 517

A Microsoft DevOps team is addressing: A Bicep parameter file stores database administrator passwords in plaintext committed to Git. Which TWO complementary actions should be taken? Select TWO answers.

  1. Require reviewed what-if output and controlled data-preserving migration before deployment.
  2. Create a governed scoped exemption with an owner and expiry or redesign for compliance.
  3. Inspect template inputs, source history, Key Vault access and deployment output.
  4. Reference protected secrets via governed Key Vault/identity patterns without logging values.
  5. Publish approved Azure Deployment Environments definitions with scoped self-service and expiration.

Explanation

Correct Answers

C:

Inspect template inputs, source history, Key Vault access and deployment output. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Reference protected secrets via governed Key Vault/identity patterns without logging values. Together they address: Secrets should be supplied through protected identity and secret stores rather than committed IaC inputs.

D:

Reference protected secrets via governed Key Vault/identity patterns without logging values. This supplies the controlled implementation needed for the scenario. Its complementary step is: Inspect template inputs, source history, Key Vault access and deployment output. Together they address: Secrets should be supplied through protected identity and secret stores rather than committed IaC inputs.

Incorrect Answers

A:

Require reviewed what-if output and controlled data-preserving migration before deployment. This concerns a different DevOps situation: A refactor changes a storage account name while the pipeline applies it directly to production. This case instead requires both a targeted investigation (Inspect template inputs, source history, Key Vault access and deployment output.) and a controlled change (Reference protected secrets via governed Key Vault/identity patterns without logging values.).

B:

Create a governed scoped exemption with an owner and expiry or redesign for compliance. This concerns a different DevOps situation: A production deployment depends on a time-limited Azure Policy exemption that was never documented or reviewed. This case instead requires both a targeted investigation (Inspect template inputs, source history, Key Vault access and deployment output.) and a controlled change (Reference protected secrets via governed Key Vault/identity patterns without logging values.).

E:

Publish approved Azure Deployment Environments definitions with scoped self-service and expiration. This concerns a different DevOps situation: Developers need consistent temporary test environments, but each manually provisions expensive subscriptions and forgets cleanup. This case instead requires both a targeted investigation (Inspect template inputs, source history, Key Vault access and deployment output.) and a controlled change (Reference protected secrets via governed Key Vault/identity patterns without logging values.).

Question 518

A Microsoft DevOps team is addressing: A pipeline takes 50 minutes, but dashboard owners cannot distinguish runner queue delays from actual build execution. Which TWO complementary actions should be taken? Select TWO answers.

  1. Inspect vulnerability discovery times, severity classifications, exception approvals and closure evidence.
  2. Define recovery completion using service-level restoration and compute the metric accordingly.
  3. Compare queue timestamps, job timings, capacity saturation and approval intervals.
  4. Instrument pipeline stage durations and track queue waiting separately from execution.
  5. Publish excluded and flaky test counts with test trends and actionable owner assignments.

Explanation

Correct Answers

C:

Compare queue timestamps, job timings, capacity saturation and approval intervals. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Instrument pipeline stage durations and track queue waiting separately from execution. Together they address: Delivery optimization needs separate measurements for queue, execution and waiting stages.

D:

Instrument pipeline stage durations and track queue waiting separately from execution. This supplies the controlled implementation needed for the scenario. Its complementary step is: Compare queue timestamps, job timings, capacity saturation and approval intervals. Together they address: Delivery optimization needs separate measurements for queue, execution and waiting stages.

Incorrect Answers

A:

Inspect vulnerability discovery times, severity classifications, exception approvals and closure evidence. This concerns a different DevOps situation: A security scorecard shows the total number of alerts but cannot identify overdue critical fixes. This case instead requires both a targeted investigation (Compare queue timestamps, job timings, capacity saturation and approval intervals.) and a controlled change (Instrument pipeline stage durations and track queue waiting separately from execution.).

B:

Define recovery completion using service-level restoration and compute the metric accordingly. This concerns a different DevOps situation: An operations dashboard reports recovery time ending when a VM restarts, although customer transactions remain unavailable. This case instead requires both a targeted investigation (Compare queue timestamps, job timings, capacity saturation and approval intervals.) and a controlled change (Instrument pipeline stage durations and track queue waiting separately from execution.).

E:

Publish excluded and flaky test counts with test trends and actionable owner assignments. This concerns a different DevOps situation: A build dashboard reports 100% passing tests by excluding quarantined integration suites without disclosing the exclusions. This case instead requires both a targeted investigation (Compare queue timestamps, job timings, capacity saturation and approval intervals.) and a controlled change (Instrument pipeline stage durations and track queue waiting separately from execution.).

Question 519

Before changing the pipeline or service, engineers find: A product manager needs to view Azure Boards and submit work items but is given full build administration permissions. Which evidence should the engineer inspect FIRST?

  1. Inspect token scope, audit events, bot responsibilities and repository installation.
  2. Inspect project memberships, access level, team role and pipeline permissions.
  3. Inspect endpoint grant-to-all settings, environment checks and pipeline identities.
  4. Inspect existing identity attachments, role assignments and resource replacement behavior.

Explanation

Correct Answer

B:

Inspect project memberships, access level, team role and pipeline permissions. This directly checks the uncertain behavior or control before changing production. Azure DevOps access levels and security groups should reflect actual job duties. The resulting targeted action is: Use suitable Stakeholder access and restrict code/pipeline administration.

Incorrect Answers

A:

Inspect token scope, audit events, bot responsibilities and repository installation. 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 evidence is: Inspect project memberships, access level, team role and pipeline permissions. The crucial distinction is: Azure DevOps access levels and security groups should reflect actual job duties.

C:

Inspect endpoint grant-to-all settings, environment checks and pipeline identities. This would address a different situation, such as: An Azure DevOps deployment service connection is authorized for all pipelines, including untrusted test definitions. In the present case, the most directly relevant evidence is: Inspect project memberships, access level, team role and pipeline permissions. The crucial distinction is: Azure DevOps access levels and security groups should reflect actual job duties.

D:

Inspect existing identity attachments, role assignments and resource replacement behavior. 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 evidence is: Inspect project memberships, access level, team role and pipeline permissions. The crucial distinction is: Azure DevOps access levels and security groups should reflect actual job duties.

Question 520

The DevOps team must resolve this situation: A platform team thinks an Azure Policy Audit effect blocks deployment of unencrypted storage, but noncompliant accounts continue being created. Which engineering action is MOST appropriate?

  1. Use a reviewed Deny policy where prevention is required and remediate existing noncompliance separately.
  2. Publish approved reusable templates with governed versioning and service-specific parameters.
  3. Provision short-lived sandbox environments through approved IaC with automatic expiration.
  4. Publish a versioned Bicep networking module with secure defaults and reviewed parameters.

Explanation

Correct Answer

A:

Use a reviewed Deny policy where prevention is required and remediate existing noncompliance separately. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: A new prohibited test storage deployment is rejected while approved configurations succeed. Policy effects differ between reporting and preventive enforcement.

Incorrect Answers

B:

Publish approved reusable templates with governed versioning and service-specific parameters. This would address a different situation, such as: Each team's pipeline provisions Azure Container Apps independently, with inconsistent health probes and identity. In the present case, the most directly relevant engineering action is: Use a reviewed Deny policy where prevention is required and remediate existing noncompliance separately. The crucial distinction is: Policy effects differ between reporting and preventive enforcement.

C:

Provision short-lived sandbox environments through approved IaC with automatic expiration. This would address a different situation, such as: Engineers create temporary load-test environments manually but never remove costly public IP addresses. In the present case, the most directly relevant engineering action is: Use a reviewed Deny policy where prevention is required and remediate existing noncompliance separately. The crucial distinction is: Policy effects differ between reporting and preventive enforcement.

D:

Publish a versioned Bicep networking module with secure defaults and reviewed parameters. 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 engineering action is: Use a reviewed Deny policy where prevention is required and remediate existing noncompliance separately. The crucial distinction is: Policy effects differ between reporting and preventive enforcement.

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