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 25

Question 240

The DevOps team must resolve this situation: Application images are deployed manually after infra provisioning and the deployed image tag is not recorded in Bicep or the release pipeline. Which engineering action is MOST appropriate?

  1. Reference protected secrets via governed Key Vault/identity patterns without logging values.
  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. Publish a versioned Bicep networking module with secure defaults and reviewed parameters.

Explanation

Correct Answer

B:

Pass verified immutable image identifiers through a controlled IaC deployment interface. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: Production uses the approved digest recorded in the associated pipeline run. Infrastructure and application delivery need traceable version handoff without mutable assumptions.

Incorrect Answers

A:

Reference protected secrets via governed Key Vault/identity patterns without logging values. This would address a different situation, such as: A Bicep parameter file stores database administrator passwords in plaintext committed to Git. In the present case, the most directly relevant engineering action is: Pass verified immutable image identifiers through a controlled IaC deployment interface. The crucial distinction is: Infrastructure and application delivery need traceable version handoff without mutable assumptions.

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: Pass verified immutable image identifiers through a controlled IaC deployment interface. The crucial distinction is: Infrastructure and application delivery need traceable version handoff without mutable assumptions.

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: Pass verified immutable image identifiers through a controlled IaC deployment interface. The crucial distinction is: Infrastructure and application delivery need traceable version handoff without mutable assumptions.

Question 241

A Microsoft DevOps team is addressing: A .NET service pulls internal NuGet libraries from a developer laptop because no shared feed exists. Which TWO complementary actions should be taken? Select TWO answers.

  1. Inspect feed role assignments, delete permissions, package history and retention.
  2. Inspect package sources, feed permissions, dependency versions and build logs.
  3. Grant the consuming build service read access at the appropriate feed scope.
  4. Protect deployed and rollback-candidate artifacts with defined retention exceptions.
  5. Publish versioned internal packages to Azure Artifacts and grant scoped pipeline feed access.

Explanation

Correct Answers

B:

Inspect package sources, feed permissions, dependency versions and build logs. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Publish versioned internal packages to Azure Artifacts and grant scoped pipeline feed access. Together they address: Internal dependencies should be published to an authenticated, versioned package feed.

E:

Publish versioned internal packages to Azure Artifacts and grant scoped pipeline feed access. This supplies the controlled implementation needed for the scenario. Its complementary step is: Inspect package sources, feed permissions, dependency versions and build logs. Together they address: Internal dependencies should be published to an authenticated, versioned package feed.

Incorrect Answers

A:

Inspect feed role assignments, delete permissions, package history and retention. 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 package sources, feed permissions, dependency versions and build logs.) and a controlled change (Publish versioned internal packages to Azure Artifacts and grant scoped pipeline feed access.).

C:

Grant the consuming build service read access at the appropriate feed scope. This concerns a different DevOps situation: A central deployment pipeline cannot restore a package from another Azure DevOps project although the feed works locally. This case instead requires both a targeted investigation (Inspect package sources, feed permissions, dependency versions and build logs.) and a controlled change (Publish versioned internal packages to Azure Artifacts and grant scoped pipeline feed access.).

D:

Protect deployed and rollback-candidate artifacts with defined retention exceptions. This concerns a different DevOps situation: Release rollback fails because the pipeline cleaned the package version deployed last week. This case instead requires both a targeted investigation (Inspect package sources, feed permissions, dependency versions and build logs.) and a controlled change (Publish versioned internal packages to Azure Artifacts and grant scoped pipeline feed access.).

Question 242

A Microsoft DevOps team is addressing: Developers need consistent temporary test environments, but each manually provisions expensive subscriptions and forgets cleanup. Which TWO complementary actions should be taken? Select TWO answers.

  1. Publish approved reusable templates with governed versioning and service-specific parameters.
  2. Publish approved Azure Deployment Environments definitions with scoped self-service and expiration.
  3. Inspect environment definitions, project catalog, role assignments and teardown process.
  4. Provision short-lived sandbox environments through approved IaC with automatic expiration.
  5. Inspect name generation, deployment history, actual resources and outputs.

Explanation

Correct Answers

B:

Publish approved Azure Deployment Environments definitions with scoped self-service and expiration. This supplies the controlled implementation needed for the scenario. Its complementary step is: Inspect environment definitions, project catalog, role assignments and teardown process. Together they address: Self-service environment catalogs can standardize provisioning and lifecycle governance.

C:

Inspect environment definitions, project catalog, role assignments and teardown process. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Publish approved Azure Deployment Environments definitions with scoped self-service and expiration. Together they address: Self-service environment catalogs can standardize provisioning and lifecycle governance.

Incorrect Answers

A:

Publish approved reusable templates with governed versioning and service-specific parameters. 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 definitions, project catalog, role assignments and teardown process.) and a controlled change (Publish approved Azure Deployment Environments definitions with scoped self-service and expiration.).

D:

Provision short-lived sandbox environments through approved IaC with automatic expiration. This concerns a different DevOps situation: Engineers create temporary load-test environments manually but never remove costly public IP addresses. This case instead requires both a targeted investigation (Inspect environment definitions, project catalog, role assignments and teardown process.) and a controlled change (Publish approved Azure Deployment Environments definitions with scoped self-service and expiration.).

E:

Inspect name generation, deployment history, actual resources and outputs. This concerns a different DevOps situation: A shared Bicep deployment creates a new Log Analytics workspace on each run due to non-deterministic resource names. This case instead requires both a targeted investigation (Inspect environment definitions, project catalog, role assignments and teardown process.) and a controlled change (Publish approved Azure Deployment Environments definitions with scoped self-service and expiration.).

Question 243

An Azure DevOps engineering team evaluates this condition: A retailer wants to expose a new checkout feature to 5% of customers but its current flag is on or off for everyone. Which DevOps principle BEST explains the underlying weakness?

  1. Targeting filters can control feature exposure by cohort or percentage.
  2. Database deployment scripts should be repeatable or safely versioned with migration state.
  3. Rolling replacement should account for connection draining and readiness transitions.
  4. Helm release operations need validated charts and controlled rollback behavior.

Explanation

Correct Answer

A:

Targeting filters can control feature exposure by cohort or percentage. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Review flag filter configuration, client context, expected cohorts and telemetry. An appropriate controlled response is: Configure a controlled percentage or targeting filter with versioned rollout criteria.

Incorrect Answers

B:

Database deployment scripts should be repeatable or safely versioned with migration state. This would address a different situation, such as: A release database task retries after a timeout and creates duplicate schema objects, causing subsequent deployments to fail. In the present case, the most directly relevant principle is: Targeting filters can control feature exposure by cohort or percentage. The crucial distinction is: Targeting filters can control feature exposure by cohort or percentage.

C:

Rolling replacement should account for connection draining and readiness transitions. This would address a different situation, such as: A deployment removes an application instance while it has open customer sessions, causing dropped purchases. In the present case, the most directly relevant principle is: Targeting filters can control feature exposure by cohort or percentage. The crucial distinction is: Targeting filters can control feature exposure by cohort or percentage.

D:

Helm release operations need validated charts and controlled rollback behavior. This would address a different situation, such as: An AKS Helm upgrade fails after rendering a misconfigured resource, leaving pods partially updated. In the present case, the most directly relevant principle is: Targeting filters can control feature exposure by cohort or percentage. The crucial distinction is: Targeting filters can control feature exposure by cohort or percentage.

Question 244

Before changing the pipeline or service, engineers find: A frontend release calls an API endpoint introduced only by a backend deployment scheduled later, breaking all sessions. Which evidence should the engineer inspect FIRST?

  1. Review component versions, release dependencies, API contracts and pipeline stage graph.
  2. Inspect incident severity, release branch plan, mandatory checks and approver availability.
  3. Inspect Deployment strategy, replica count, readiness probes and disruption events.
  4. Review schema changes, client versions, deployment order and rollback requirements.

Explanation

Correct Answer

A:

Review component versions, release dependencies, API contracts and pipeline stage graph. This directly checks the uncertain behavior or control before changing production. Cross-service deployment order must respect compatibility and dependency contracts. The resulting targeted action is: Use backward-compatible API rollout and explicit dependent stage ordering.

Incorrect Answers

B:

Inspect incident severity, release branch plan, mandatory checks and approver availability. This would address a different situation, such as: A security vulnerability needs same-day correction but the organization’s normal three-week release train blocks all fixes. In the present case, the most directly relevant evidence is: Review component versions, release dependencies, API contracts and pipeline stage graph. The crucial distinction is: Cross-service deployment order must respect compatibility and dependency contracts.

C:

Inspect Deployment strategy, replica count, readiness probes and disruption events. This would address a different situation, such as: An AKS update removes every API pod simultaneously because maxUnavailable equals the full replica count. In the present case, the most directly relevant evidence is: Review component versions, release dependencies, API contracts and pipeline stage graph. The crucial distinction is: Cross-service deployment order must respect compatibility and dependency contracts.

D:

Review schema changes, client versions, deployment order and rollback requirements. This would address a different situation, such as: An App Service slot swap puts new code online while old instances still write to a shared Azure SQL schema. In the present case, the most directly relevant evidence is: Review component versions, release dependencies, API contracts and pipeline stage graph. The crucial distinction is: Cross-service deployment order must respect compatibility and dependency contracts.

Question 245

After implementing the change, the team verifies: A downstream stage cannot determine the storage endpoint created by an infrastructure provisioning stage. Which result would BEST demonstrate that the issue is corrected?

  1. An untrusted development pipeline cannot read production variable values.
  2. A downstream task receives the intended endpoint from the current successful run.
  3. A test pipeline deploys after the old secret is revoked and stays least-privileged.
  4. A shared security fix is adopted through a reviewed template update in each consumer.

Explanation

Correct Answer

B:

A downstream task receives the intended endpoint from the current successful run. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Emit a named output variable and consume it through the appropriate dependency expression. Cross-stage values must be explicitly published and referenced through supported output syntax.

Incorrect Answers

A:

An untrusted development pipeline cannot read production variable values. 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 verification is: A downstream task receives the intended endpoint from the current successful run. The crucial distinction is: Cross-stage values must be explicitly published and referenced through supported output syntax.

C:

A test pipeline deploys after the old secret is revoked and stays least-privileged. 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 verification is: A downstream task receives the intended endpoint from the current successful run. The crucial distinction is: Cross-stage values must be explicitly published and referenced through supported output syntax.

D:

A shared security fix is adopted through a reviewed template update in each consumer. 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 verification is: A downstream task receives the intended endpoint from the current successful run. The crucial distinction is: Cross-stage values must be explicitly published and referenced through supported output syntax.

Question 246

After implementing the change, the team verifies: A VM's monitoring dashboard reports no errors because its telemetry agent stopped sending data three days ago. Which result would BEST demonstrate that the issue is corrected?

  1. A test bad revision appears as a distinct error-rate group in the query.
  2. A disconnected test agent generates an actionable monitoring-gap alert.
  3. The controlled rare failure produces a discoverable correlated trace.
  4. An injected failing release creates a visible change-linked error cluster.

Explanation

Correct Answer

B:

A disconnected test agent generates an actionable monitoring-gap alert. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Create a missing-heartbeat query or alert with appropriate response ownership. Missing data must not be interpreted as proof of a healthy resource.

Incorrect Answers

A:

A test bad revision appears as a distinct error-rate group in the query. 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 verification is: A disconnected test agent generates an actionable monitoring-gap alert. The crucial distinction is: Missing data must not be interpreted as proof of a healthy resource.

C:

The controlled rare failure produces a discoverable correlated trace. 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 verification is: A disconnected test agent generates an actionable monitoring-gap alert. The crucial distinction is: Missing data must not be interpreted as proof of a healthy resource.

D:

An injected failing release creates a visible change-linked error cluster. This would address a different situation, such as: A new release increases HTTP 500s, but the team cannot match failures to deployment timestamps. In the present case, the most directly relevant verification is: A disconnected test agent generates an actionable monitoring-gap alert. The crucial distinction is: Missing data must not be interpreted as proof of a healthy resource.

Question 247

After implementing the change, the team verifies: A Bicep parameter file stores database administrator passwords in plaintext committed to Git. Which result would BEST demonstrate that the issue is corrected?

  1. A clean pipeline deploys securely without a password appearing in source or logs.
  2. A test template omission cannot delete an unrelated protected storage resource.
  3. A new prohibited test storage deployment is rejected while approved configurations succeed.
  4. Running the same deployment twice produces no duplicate workspaces.

Explanation

Correct Answer

A:

A clean pipeline deploys securely without a password appearing in source or logs. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Reference protected secrets via governed Key Vault/identity patterns without logging values. Secrets should be supplied through protected identity and secret stores rather than committed IaC inputs.

Incorrect Answers

B:

A test template omission cannot delete an unrelated protected storage resource. This would address a different situation, such as: A deployment pipeline uses complete mode unintentionally and deletes resources omitted from an updated ARM template. In the present case, the most directly relevant verification is: A clean pipeline deploys securely without a password appearing in source or logs. The crucial distinction is: Secrets should be supplied through protected identity and secret stores rather than committed IaC inputs.

C:

A new prohibited test storage deployment is rejected while approved configurations succeed. 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 verification is: A clean pipeline deploys securely without a password appearing in source or logs. The crucial distinction is: Secrets should be supplied through protected identity and secret stores rather than committed IaC inputs.

D:

Running the same deployment twice produces no duplicate workspaces. 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 verification is: A clean pipeline deploys securely without a password appearing in source or logs. The crucial distinction is: Secrets should be supplied through protected identity and secret stores rather than committed IaC inputs.

Question 248

After implementing the change, the team verifies: A .NET service pulls internal NuGet libraries from a developer laptop because no shared feed exists. Which result would BEST demonstrate that the issue is corrected?

  1. The cross-project build restores packages without a global administrator token.
  2. Two clean builds of the same commit restore an identical dependency graph.
  3. A client installs the documented release and verifies its content digest.
  4. A clean hosted agent resolves the approved package without a developer workstation.

Explanation

Correct Answer

D:

A clean hosted agent resolves the approved package without a developer workstation. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Publish versioned internal packages to Azure Artifacts and grant scoped pipeline feed access. Internal dependencies should be published to an authenticated, versioned package feed.

Incorrect Answers

A:

The cross-project build restores packages without a global administrator token. This would address a different situation, such as: A central deployment pipeline cannot restore a package from another Azure DevOps project although the feed works locally. In the present case, the most directly relevant verification is: A clean hosted agent resolves the approved package without a developer workstation. The crucial distinction is: Internal dependencies should be published to an authenticated, versioned package feed.

B:

Two clean builds of the same commit restore an identical dependency graph. This would address a different situation, such as: The same Git commit restores different NuGet package versions one week apart and intermittently fails tests. In the present case, the most directly relevant verification is: A clean hosted agent resolves the approved package without a developer workstation. The crucial distinction is: Internal dependencies should be published to an authenticated, versioned package feed.

C:

A client installs the documented release and verifies its content digest. This would address a different situation, such as: An organization distributes a proprietary CLI as email attachments so engineering teams run inconsistent versions. In the present case, the most directly relevant verification is: A clean hosted agent resolves the approved package without a developer workstation. The crucial distinction is: Internal dependencies should be published to an authenticated, versioned package feed.

Question 249

Before changing the pipeline or service, engineers find: A library's prerelease build appears in the same feed view consumed by production services and breaks compatibility. Which evidence should the engineer inspect FIRST?

  1. Inspect feed view membership, promotion permissions, consumer package sources and versions.
  2. Inspect package visibility, repository grant, GITHUB_TOKEN permissions and workflow context.
  3. Compare project version ranges, lockfiles, feed updates and restore output.
  4. Inspect delivery channels, artifact checksums, user installs and release approvals.

Explanation

Correct Answer

A:

Inspect feed view membership, promotion permissions, consumer package sources and versions. This directly checks the uncertain behavior or control before changing production. Package views can separate promoted stable packages from unapproved candidates. The resulting targeted action is: Use reviewed package promotion into stable feed views before production consumption.

Incorrect Answers

B:

Inspect package visibility, repository grant, GITHUB_TOKEN permissions and workflow context. This would address a different situation, such as: A GitHub Actions workflow receives 403 when installing a private package owned by another organization repository. In the present case, the most directly relevant evidence is: Inspect feed view membership, promotion permissions, consumer package sources and versions. The crucial distinction is: Package views can separate promoted stable packages from unapproved candidates.

C:

Compare project version ranges, lockfiles, feed updates and restore output. This would address a different situation, such as: The same Git commit restores different NuGet package versions one week apart and intermittently fails tests. In the present case, the most directly relevant evidence is: Inspect feed view membership, promotion permissions, consumer package sources and versions. The crucial distinction is: Package views can separate promoted stable packages from unapproved candidates.

D:

Inspect delivery channels, artifact checksums, user installs and release approvals. This would address a different situation, such as: An organization distributes a proprietary CLI as email attachments so engineering teams run inconsistent versions. In the present case, the most directly relevant evidence is: Inspect feed view membership, promotion permissions, consumer package sources and versions. The crucial distinction is: Package views can separate promoted stable packages from unapproved candidates.

Question 250

Before changing the pipeline or service, engineers find: 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 evidence should the engineer inspect FIRST?

  1. Review certificate exposure, pipeline YAML, secure-file permissions and task usage.
  2. Inspect blob access, SAS lifetime, logs and secret-bearing file handling.
  3. Inspect Key Vault version stages, runtime cache, rotation timeline and access policy.
  4. Inspect Key Vault certificate/secret objects, identity rights and App Service bindings.

Explanation

Correct Answer

D:

Inspect Key Vault certificate/secret objects, identity rights and App Service bindings. This directly checks the uncertain behavior or control before changing production. Certificate deployment must match required private-key access and target service configuration. The resulting targeted action is: Deploy the appropriately authorized certificate material through supported bindings and managed access.

Incorrect Answers

A:

Review certificate exposure, pipeline YAML, secure-file permissions and task usage. This would address a different situation, such as: A mobile signing certificate is embedded as Base64 directly in a public pipeline YAML file. In the present case, the most directly relevant evidence is: Inspect Key Vault certificate/secret objects, identity rights and App Service bindings. The crucial distinction is: Certificate deployment must match required private-key access and target service configuration.

B:

Inspect blob access, SAS lifetime, logs and secret-bearing file handling. 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 evidence is: Inspect Key Vault certificate/secret objects, identity rights and App Service bindings. The crucial distinction is: Certificate deployment must match required private-key access and target service configuration.

C:

Inspect Key Vault version stages, runtime cache, rotation timeline and access policy. 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 evidence is: Inspect Key Vault certificate/secret objects, identity rights and App Service bindings. The crucial distinction is: Certificate deployment must match required private-key access and target service configuration.

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