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 29

Question 280

A Microsoft DevOps team is addressing: A new release increases HTTP 500s, but the team cannot match failures to deployment timestamps. Which TWO complementary actions should be taken? Select TWO answers.

  1. Build KQL queries with identity dimensions and appropriate anomaly thresholds.
  2. Inspect request duration distribution, service cohorts, and p95/p99 KQL queries.
  3. Compare application failures, deployment annotations, version IDs and request telemetry.
  4. Inspect customDimensions, timestamp, role name and exception records.
  5. Add release annotations and traceable version properties to Application Insights.

Explanation

Correct Answers

C:

Compare application failures, deployment annotations, version IDs and request telemetry. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Add release annotations and traceable version properties to Application Insights. Together they address: Operational telemetry should correlate errors with release markers and change events.

E:

Add release annotations and traceable version properties to Application Insights. This supplies the controlled implementation needed for the scenario. Its complementary step is: Compare application failures, deployment annotations, version IDs and request telemetry. Together they address: Operational telemetry should correlate errors with release markers and change events.

Incorrect Answers

A:

Build KQL queries with identity dimensions and appropriate anomaly thresholds. This concerns a different DevOps situation: Azure resource logs show unusual production service principal sign-ins, but a dashboard aggregates all identities together. This case instead requires both a targeted investigation (Compare application failures, deployment annotations, version IDs and request telemetry.) and a controlled change (Add release annotations and traceable version properties to Application Insights.).

B:

Inspect request duration distribution, service cohorts, and p95/p99 KQL queries. This concerns a different DevOps situation: An API dashboard shows acceptable average response time even though the slowest 5% of requests exceed the customer SLA. This case instead requires both a targeted investigation (Compare application failures, deployment annotations, version IDs and request telemetry.) and a controlled change (Add release annotations and traceable version properties to Application Insights.).

D:

Inspect customDimensions, timestamp, role name and exception records. This concerns a different DevOps situation: A Log Analytics workspace stores application exceptions, but engineers cannot identify which deployment revision triggered a spike. This case instead requires both a targeted investigation (Compare application failures, deployment annotations, version IDs and request telemetry.) and a controlled change (Add release annotations and traceable version properties to Application Insights.).

Question 281

A Microsoft DevOps team is addressing: A mobile signing certificate is embedded as Base64 directly in a public pipeline YAML file. Which TWO complementary actions should be taken? Select TWO answers.

  1. Deploy the appropriately authorized certificate material through supported bindings and managed access.
  2. Review certificate exposure, pipeline YAML, secure-file permissions and task usage.
  3. Store approved signing material as an Azure Pipelines secure file with restricted authorization.
  4. Move cloud credential issuance into the guarded deployment job with scoped federation.
  5. Use an authorized Azure Key Vault-backed secret reference with protected variable handling.

Explanation

Correct Answers

B:

Review certificate exposure, pipeline YAML, secure-file permissions and task usage. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Store approved signing material as an Azure Pipelines secure file with restricted authorization. Together they address: Sensitive binary signing files need protected storage and controlled access.

C:

Store approved signing material as an Azure Pipelines secure file with restricted authorization. This supplies the controlled implementation needed for the scenario. Its complementary step is: Review certificate exposure, pipeline YAML, secure-file permissions and task usage. Together they address: Sensitive binary signing files need protected storage and controlled access.

Incorrect Answers

A:

Deploy the appropriately authorized certificate material through supported bindings and managed access. This concerns a different DevOps 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. This case instead requires both a targeted investigation (Review certificate exposure, pipeline YAML, secure-file permissions and task usage.) and a controlled change (Store approved signing material as an Azure Pipelines secure file with restricted authorization.).

D:

Move cloud credential issuance into the guarded deployment job with scoped federation. This concerns a different DevOps situation: A GitHub environment is protected, but the deployment job obtains Azure credentials in an earlier unprotected build step. This case instead requires both a targeted investigation (Review certificate exposure, pipeline YAML, secure-file permissions and task usage.) and a controlled change (Store approved signing material as an Azure Pipelines secure file with restricted authorization.).

E:

Use an authorized Azure Key Vault-backed secret reference with protected variable handling. This concerns a different DevOps situation: A pipeline prints a database password stored in a plain YAML variable during environment deployment. This case instead requires both a targeted investigation (Review certificate exposure, pipeline YAML, secure-file permissions and task usage.) and a controlled change (Store approved signing material as an Azure Pipelines secure file with restricted authorization.).

Question 282

An Azure DevOps engineering team evaluates this condition: An autoscaled deployment needs consistent identity across short-lived Azure compute instances that are replaced frequently. Which DevOps principle BEST explains the underlying weakness?

  1. A user-assigned managed identity can preserve identity lifecycle independently of individual resources.
  2. Workflow tokens should default to read-only and be elevated only where necessary.
  3. Azure DevOps access levels and security groups should reflect actual job duties.
  4. Administrative and approval authority should be segregated for sensitive deployments.

Explanation

Correct Answer

A:

A user-assigned managed identity can preserve identity lifecycle independently of individual resources. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Inspect existing identity attachments, role assignments and resource replacement behavior. An appropriate controlled response is: Attach an approved user-assigned managed identity to the participating compute resources.

Incorrect Answers

B:

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: A user-assigned managed identity can preserve identity lifecycle independently of individual resources. The crucial distinction is: A user-assigned managed identity can preserve identity lifecycle independently of individual resources.

C:

Azure DevOps access levels and security groups should reflect actual job duties. This would address a different situation, such as: A product manager needs to view Azure Boards and submit work items but is given full build administration permissions. In the present case, the most directly relevant principle is: A user-assigned managed identity can preserve identity lifecycle independently of individual resources. The crucial distinction is: A user-assigned managed identity can preserve identity lifecycle independently of individual resources.

D:

Administrative and approval authority should be segregated for sensitive deployments. This would address a different situation, such as: Developers can edit protected deployment environments and approve their own releases because one group owns all project settings. In the present case, the most directly relevant principle is: A user-assigned managed identity can preserve identity lifecycle independently of individual resources. The crucial distinction is: A user-assigned managed identity can preserve identity lifecycle independently of individual resources.

Question 283

Before changing the pipeline or service, engineers find: A YAML pipeline references a production environment but deploys through an unprotected job that never uses the environment resource. Which evidence should the engineer inspect FIRST?

  1. Review stage condition expressions, dependency status and test results.
  2. Inspect deployment jobs, environment references, resource checks and service connection access.
  3. Inspect repository runner group rules, fork workflow triggers and credential persistence.
  4. Inspect task group inputs, variable classifications, log output and service permissions.

Explanation

Correct Answer

B:

Inspect deployment jobs, environment references, resource checks and service connection access. This directly checks the uncertain behavior or control before changing production. Environment approvals apply only when pipelines use the protected deployment resource correctly. The resulting targeted action is: Use a deployment job bound to the protected environment and enforce resource checks.

Incorrect Answers

A:

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 deployment jobs, environment references, resource checks and service connection access. The crucial distinction is: Environment approvals apply only when pipelines use the protected deployment resource correctly.

C:

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 deployment jobs, environment references, resource checks and service connection access. The crucial distinction is: Environment approvals apply only when pipelines use the protected deployment resource correctly.

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: Inspect deployment jobs, environment references, resource checks and service connection access. The crucial distinction is: Environment approvals apply only when pipelines use the protected deployment resource correctly.

Question 284

After implementing the change, the team verifies: The same Terraform source yields changed resource behavior because local users and CI select different provider versions. Which result would BEST demonstrate that the issue is corrected?

  1. A test service deployment inherits baseline health and identity configuration.
  2. A test environment creates approved resources and deprovisions under the policy.
  3. Production uses the approved digest recorded in the associated pipeline run.
  4. Repeated plans use the same provider version and give consistent changes.

Explanation

Correct Answer

D:

Repeated plans use the same provider version and give consistent changes. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Pin and review provider versions with a committed lockfile and CI version checks. IaC builds need controlled provider requirements and lockfile provenance.

Incorrect Answers

A:

A test service deployment inherits baseline health and identity configuration. 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 verification is: Repeated plans use the same provider version and give consistent changes. The crucial distinction is: IaC builds need controlled provider requirements and lockfile provenance.

B:

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: Repeated plans use the same provider version and give consistent changes. The crucial distinction is: IaC builds need controlled provider requirements and lockfile provenance.

C:

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: Repeated plans use the same provider version and give consistent changes. The crucial distinction is: IaC builds need controlled provider requirements and lockfile provenance.

Question 285

The DevOps team must resolve this situation: A cost-reduction retention rule deletes the last known-good container image before the rollback period ends. Which engineering action is MOST appropriate?

  1. Protect recent deployed digests and remove only eligible unreferenced artifacts.
  2. Pin or explicitly install supported toolchains and test migrations before image retirement.
  3. Run independent tests in parallel within the approved concurrency and resource budget.
  4. Migrate to workload identity federation or controlled rotation with alerting.

Explanation

Correct Answer

A:

Protect recent deployed digests and remove only eligible unreferenced artifacts. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: A rollback exercise retrieves its signed prior image while obsolete builds expire. Artifact retention needs business-approved rollback and forensic windows.

Incorrect Answers

B:

Pin or explicitly install supported toolchains and test migrations before image retirement. This would address a different situation, such as: Builds fail after an Azure Pipelines hosted image update because a legacy runtime was implicitly available before. In the present case, the most directly relevant engineering action is: Protect recent deployed digests and remove only eligible unreferenced artifacts. The crucial distinction is: Artifact retention needs business-approved rollback and forensic windows.

C:

Run independent tests in parallel within the approved concurrency and resource budget. This would address a different situation, such as: A large build spends most of its time serially running three independent test suites. In the present case, the most directly relevant engineering action is: Protect recent deployed digests and remove only eligible unreferenced artifacts. The crucial distinction is: Artifact retention needs business-approved rollback and forensic windows.

D:

Migrate to workload identity federation or controlled rotation with alerting. This would address a different situation, such as: A legacy release service principal secret is set to expire tomorrow and pipeline maintenance has no automated credential lifecycle. In the present case, the most directly relevant engineering action is: Protect recent deployed digests and remove only eligible unreferenced artifacts. The crucial distinction is: Artifact retention needs business-approved rollback and forensic windows.

Question 286

An Azure DevOps engineering team evaluates this condition: A package registry is scheduled for migration, but retired feeds still contain dependencies used by maintained builds. Which DevOps principle BEST explains the underlying weakness?

  1. Artifact retention needs business-approved rollback and forensic windows.
  2. Pipeline health should surface flaky failures and retry overhead separately from success.
  3. Pipeline migration must account for external dependencies and supported retention.
  4. Pipelines should declare supported tooling instead of depending on incidental agent image contents.

Explanation

Correct Answer

C:

Pipeline migration must account for external dependencies and supported retention. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Inspect package restore sources, build manifests, feed versions and migration schedule. An appropriate controlled response is: Mirror or migrate required immutable package versions before switching consumers.

Incorrect Answers

A:

Artifact retention needs business-approved rollback and forensic windows. This would address a different situation, such as: A cost-reduction retention rule deletes the last known-good container image before the rollback period ends. In the present case, the most directly relevant principle is: Pipeline migration must account for external dependencies and supported retention. The crucial distinction is: Pipeline migration must account for external dependencies and supported retention.

B:

Pipeline health should surface flaky failures and retry overhead separately from success. This would address a different situation, such as: Pipeline duration grows because a flaky test is retried eight times but the dashboard still shows every build as green. In the present case, the most directly relevant principle is: Pipeline migration must account for external dependencies and supported retention. The crucial distinction is: Pipeline migration must account for external dependencies and supported retention.

D:

Pipelines should declare supported tooling instead of depending on incidental agent image contents. This would address a different situation, such as: Builds fail after an Azure Pipelines hosted image update because a legacy runtime was implicitly available before. In the present case, the most directly relevant principle is: Pipeline migration must account for external dependencies and supported retention. The crucial distinction is: Pipeline migration must account for external dependencies and supported retention.

Question 287

After implementing the change, the team verifies: A GitHub Actions release stores a long-lived Azure service principal password in repository secrets for every deployment. Which result would BEST demonstrate that the issue is corrected?

  1. A failed test stage prevents the dependent production verification and deployment.
  2. A production deployment succeeds with a short-lived token and no stored client secret.
  3. A representative task runs without emitting sensitive values in logs.
  4. An untrusted development pipeline cannot read production variable values.

Explanation

Correct Answer

B:

A production deployment succeeds with a short-lived token and no stored client secret. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Configure trusted GitHub OIDC federation and least-privilege Azure roles for the deployment. Workload identity federation reduces dependence on persistent credentials for Azure deployment.

Incorrect Answers

A:

A failed test stage prevents the dependent production verification and deployment. 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 verification is: A production deployment succeeds with a short-lived token and no stored client secret. The crucial distinction is: Workload identity federation reduces dependence on persistent credentials for Azure deployment.

C:

A representative task runs without emitting sensitive values in logs. 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 verification is: A production deployment succeeds with a short-lived token and no stored client secret. The crucial distinction is: Workload identity federation reduces dependence on persistent credentials for Azure deployment.

D:

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 production deployment succeeds with a short-lived token and no stored client secret. The crucial distinction is: Workload identity federation reduces dependence on persistent credentials for Azure deployment.

Question 288

The DevOps team must resolve this situation: External contributors can directly edit protected organization branches rather than submitting reviewed fork-based changes. Which engineering action is MOST appropriate?

  1. Use fork-and-pull-request contributions with least-privilege branch access.
  2. Require reviewed back-merges or cherry-picks of hotfixes into active branches.
  3. Apply equivalent required reviews and test gates to all protected release branches.
  4. Integrate incomplete code safely behind governed feature flags and short-lived branches.

Explanation

Correct Answer

A:

Use fork-and-pull-request contributions with least-privilege branch access. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: A sample outside contribution requires approved checks before entering protected mainline. External contributions should use constrained write scope and enforced review.

Incorrect Answers

B:

Require reviewed back-merges or cherry-picks of hotfixes into active branches. 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 engineering action is: Use fork-and-pull-request contributions with least-privilege branch access. The crucial distinction is: External contributions should use constrained write scope and enforced review.

C:

Apply equivalent required reviews and test gates to all protected release branches. This would address a different situation, such as: A company protects main but permits unrestricted direct commits to an unprotected release branch deployed to production. In the present case, the most directly relevant engineering action is: Use fork-and-pull-request contributions with least-privilege branch access. The crucial distinction is: External contributions should use constrained write scope and enforced review.

D:

Integrate incomplete code safely behind governed feature flags and short-lived branches. This would address a different situation, such as: A feature needs gradual rollout, but the team maintains a year-long divergent branch to hide unfinished functionality. In the present case, the most directly relevant engineering action is: Use fork-and-pull-request contributions with least-privilege branch access. The crucial distinction is: External contributions should use constrained write scope and enforced review.

Question 289

After implementing the change, the team verifies: Service unit tests pass but integration fails because Azure SQL connectivity differs between staging and production. Which result would BEST demonstrate that the issue is corrected?

  1. A destructive test cannot modify the protected production storage account.
  2. A controlled failing test produces useful diagnostics without leaking the credential.
  3. A policy-blocking insecure test change cannot merge before security review.
  4. A bad connectivity rule fails before release while approved paths succeed.

Explanation

Correct Answer

D:

A bad connectivity rule fails before release while approved paths succeed. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Run isolated integration tests against approved representative Azure SQL dependencies. Integration tests must exercise representative dependent services and configuration.

Incorrect Answers

A:

A destructive test cannot modify the protected production storage account. This would address a different situation, such as: A test pipeline reuses a production storage account and occasionally deletes customer fixtures. In the present case, the most directly relevant verification is: A bad connectivity rule fails before release while approved paths succeed. The crucial distinction is: Integration tests must exercise representative dependent services and configuration.

B:

A controlled failing test produces useful diagnostics without leaking the credential. 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 verification is: A bad connectivity rule fails before release while approved paths succeed. The crucial distinction is: Integration tests must exercise representative dependent services and configuration.

C:

A policy-blocking insecure test change cannot merge before security review. This would address a different situation, such as: A GitHub repository scans vulnerabilities once a month but merges vulnerable code daily. In the present case, the most directly relevant verification is: A bad connectivity rule fails before release while approved paths succeed. The crucial distinction is: Integration tests must exercise representative dependent services and configuration.

Question 290

A Microsoft DevOps team is addressing: A build dashboard reports 100% passing tests by excluding quarantined integration suites without disclosing the exclusions. Which TWO complementary actions should be taken? Select TWO answers.

  1. Calculate lead time for eligible service changes from commit to actual production deployment.
  2. Review pipeline test publications, excluded suites, flaky test logs and quality thresholds.
  3. Define and enforce meaningful Active and Done transitions in the team's process.
  4. Build service-segmented queries and complementary stability metrics.
  5. Publish excluded and flaky test counts with test trends and actionable owner assignments.

Explanation

Correct Answers

B:

Review pipeline test publications, excluded suites, flaky test logs and quality thresholds. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Publish excluded and flaky test counts with test trends and actionable owner assignments. Together they address: Quality dashboards should show scope, omissions and relevant risk alongside pass rates.

E:

Publish excluded and flaky test counts with test trends and actionable owner assignments. This supplies the controlled implementation needed for the scenario. Its complementary step is: Review pipeline test publications, excluded suites, flaky test logs and quality thresholds. Together they address: Quality dashboards should show scope, omissions and relevant risk alongside pass rates.

Incorrect Answers

A:

Calculate lead time for eligible service changes from commit to actual production deployment. This concerns a different DevOps situation: A dashboard measures deployment frequency but calculates lead time from the first commit in an unrelated repository. This case instead requires both a targeted investigation (Review pipeline test publications, excluded suites, flaky test logs and quality thresholds.) and a controlled change (Publish excluded and flaky test counts with test trends and actionable owner assignments.).

C:

Define and enforce meaningful Active and Done transitions in the team's process. This concerns a different DevOps situation: Azure Boards reports near-zero cycle time because teams move stories to Active only when coding is almost finished. This case instead requires both a targeted investigation (Review pipeline test publications, excluded suites, flaky test logs and quality thresholds.) and a controlled change (Publish excluded and flaky test counts with test trends and actionable owner assignments.).

D:

Build service-segmented queries and complementary stability metrics. This concerns a different DevOps situation: A company combines experimental internal tools and regulated payment services into one deployment-frequency ranking. This case instead requires both a targeted investigation (Review pipeline test publications, excluded suites, flaky test logs and quality thresholds.) and a controlled change (Publish excluded and flaky test counts with test trends and actionable owner assignments.).

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