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 65

Question 640

The DevOps team must resolve this situation: A developer accidentally commits a cloud token, but the repository has no automated alerting on leaked credentials. Which engineering action is MOST appropriate?

  1. Configure approved CodeQL analysis and risk-based remediation gates.
  2. Enable authorized secret scanning and push protection, then rotate exposed credentials.
  3. Use risk-based triage with owners, remediation SLAs and documented waivers.
  4. Enable Dependabot alerts and governed security updates with CI checks.

Explanation

Correct Answer

B:

Enable authorized secret scanning and push protection, then rotate exposed credentials. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: A harmless test token pattern triggers the expected prevention or review workflow. Secret scanning should detect exposed credentials and trigger prompt containment.

Incorrect Answers

A:

Configure approved CodeQL analysis and risk-based remediation gates. This would address a different situation, such as: A C# API has risky SQL construction patterns, but pipeline checks only verify compilation. In the present case, the most directly relevant engineering action is: Enable authorized secret scanning and push protection, then rotate exposed credentials. The crucial distinction is: Secret scanning should detect exposed credentials and trigger prompt containment.

C:

Use risk-based triage with owners, remediation SLAs and documented waivers. This would address a different situation, such as: Hundreds of low-severity dependency alerts crowd out a critical exploitable issue in production. In the present case, the most directly relevant engineering action is: Enable authorized secret scanning and push protection, then rotate exposed credentials. The crucial distinction is: Secret scanning should detect exposed credentials and trigger prompt containment.

D:

Enable Dependabot alerts and governed security updates with CI checks. 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 engineering action is: Enable authorized secret scanning and push protection, then rotate exposed credentials. The crucial distinction is: Secret scanning should detect exposed credentials and trigger prompt containment.

Question 641

Before changing the pipeline or service, engineers find: A Bicep pipeline deploys wildcard role assignments despite a known rule requiring narrowly scoped access. Which evidence should the engineer inspect FIRST?

  1. Inspect Azure what-if operations, storage data dependency, naming constraints and resource references.
  2. Review required_providers, lockfile, init results and changed plan outputs.
  3. Inspect guest baseline compliance, configuration assignments and VM identities.
  4. Inspect linter rules, RBAC template details, warning severity and pipeline checks.

Explanation

Correct Answer

D:

Inspect linter rules, RBAC template details, warning severity and pipeline checks. This directly checks the uncertain behavior or control before changing production. IaC static analysis should detect risky patterns before production deployment. The resulting targeted action is: Run Bicep validation and reviewed security rules with blocking policy for critical findings.

Incorrect Answers

A:

Inspect Azure what-if operations, storage data dependency, naming constraints and resource references. 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 evidence is: Inspect linter rules, RBAC template details, warning severity and pipeline checks. The crucial distinction is: IaC static analysis should detect risky patterns before production deployment.

B:

Review required_providers, lockfile, init results and changed plan outputs. This would address a different situation, such as: The same Terraform source yields changed resource behavior because local users and CI select different provider versions. In the present case, the most directly relevant evidence is: Inspect linter rules, RBAC template details, warning severity and pipeline checks. The crucial distinction is: IaC static analysis should detect risky patterns before production deployment.

C:

Inspect guest baseline compliance, configuration assignments and VM identities. 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 evidence is: Inspect linter rules, RBAC template details, warning severity and pipeline checks. The crucial distinction is: IaC static analysis should detect risky patterns before production deployment.

Question 642

A Microsoft DevOps team is addressing: A release pipeline downloads the latest build artifact by name instead of the approved artifact from staging. Which TWO complementary actions should be taken? Select TWO answers.

  1. Pin the release to the verified pipeline run and immutable artifact identifier.
  2. Inspect build timestamps, package versions, artifact digests and update metadata.
  3. Inspect source run IDs, artifact digests, release manifests and download task inputs.
  4. Grant read, publish and administration only to the appropriate separate identities.
  5. Inspect ACR manifests, tag mutation rights, deployment records and source mapping.

Explanation

Correct Answers

A:

Pin the release to the verified pipeline run and immutable artifact identifier. This supplies the controlled implementation needed for the scenario. Its complementary step is: Inspect source run IDs, artifact digests, release manifests and download task inputs. Together they address: Artifact promotion must bind deployment to the exact tested build.

C:

Inspect source run IDs, artifact digests, release manifests and download task inputs. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Pin the release to the verified pipeline run and immutable artifact identifier. Together they address: Artifact promotion must bind deployment to the exact tested build.

Incorrect Answers

B:

Inspect build timestamps, package versions, artifact digests and update metadata. This concerns a different DevOps situation: An organization uses calendar-versioned nightly internal tools but deployments cannot distinguish two builds made on the same day. This case instead requires both a targeted investigation (Inspect source run IDs, artifact digests, release manifests and download task inputs.) and a controlled change (Pin the release to the verified pipeline run and immutable artifact identifier.).

D:

Grant read, publish and administration only to the appropriate separate identities. 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 source run IDs, artifact digests, release manifests and download task inputs.) and a controlled change (Pin the release to the verified pipeline run and immutable artifact identifier.).

E:

Inspect ACR manifests, tag mutation rights, deployment records and source mapping. This concerns a different DevOps situation: A team overwrites the same image tag in Azure Container Registry for every build and loses reproducible deployment history. This case instead requires both a targeted investigation (Inspect source run IDs, artifact digests, release manifests and download task inputs.) and a controlled change (Pin the release to the verified pipeline run and immutable artifact identifier.).

Question 643

An Azure DevOps engineering team evaluates this condition: A dependency update workflow proposes a new package version but its artifact origin is not recorded, weakening supply-chain review. Which DevOps principle BEST explains the underlying weakness?

  1. Dependency monitoring should detect vulnerable package versions with actionable updates.
  2. Different scanning methods cover different classes of weakness and require complementary controls.
  3. Compliance scanning should identify licensing constraints before external software distribution.
  4. Automated security/compliance scanning should retain dependency provenance and approved package sources.

Explanation

Correct Answer

D:

Automated security/compliance scanning should retain dependency provenance and approved package sources. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Inspect lockfile changes, package registry source, published checksums and CI scan reports. An appropriate controlled response is: Require reviewed package source, SBOM and policy gates before accepting dependency updates.

Incorrect Answers

A:

Dependency monitoring should detect vulnerable package versions with actionable updates. 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 principle is: Automated security/compliance scanning should retain dependency provenance and approved package sources. The crucial distinction is: Automated security/compliance scanning should retain dependency provenance and approved package sources.

B:

Different scanning methods cover different classes of weakness and require complementary controls. This would address a different situation, such as: A project relies entirely on container image vulnerability scanning while application source contains an authorization flaw. In the present case, the most directly relevant principle is: Automated security/compliance scanning should retain dependency provenance and approved package sources. The crucial distinction is: Automated security/compliance scanning should retain dependency provenance and approved package sources.

C:

Compliance scanning should identify licensing constraints before external software distribution. This would address a different situation, such as: A binary distribution uses open-source dependencies but its release process does not check license obligations. In the present case, the most directly relevant principle is: Automated security/compliance scanning should retain dependency provenance and approved package sources. The crucial distinction is: Automated security/compliance scanning should retain dependency provenance and approved package sources.

Question 644

An engineering design review identifies: A microservice changes a JSON field name while a downstream consumer still relies on the old name. Which shortcut should the team MOST specifically avoid for this case?

  1. Treat a mocked database response as proof of production network connectivity.
  2. Use an HTTP 200 response from the homepage as the only release test.
  3. Insert a fixed 30-second sleep instead of checking actual readiness.
  4. Check only whether the producer emits syntactically valid JSON.

Explanation

Correct Answer

D:

Check only whether the producer emits syntactically valid JSON. This shortcut directly undermines the stated control or workflow. A safer action is: Run automated producer-consumer contract checks with backward-compatible staging. Explanation: Consumer contract tests should detect interface-breaking changes before coordinated release.

Incorrect Answers

A:

Treat a mocked database response as proof of production network connectivity. This would address a different situation, such as: Service unit tests pass but integration fails because Azure SQL connectivity differs between staging and production. In the present case, the most directly relevant unsafe shortcut is: Check only whether the producer emits syntactically valid JSON. The crucial distinction is: Consumer contract tests should detect interface-breaking changes before coordinated release.

B:

Use an HTTP 200 response from the homepage as the only release test. 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 unsafe shortcut is: Check only whether the producer emits syntactically valid JSON. The crucial distinction is: Consumer contract tests should detect interface-breaking changes before coordinated release.

C:

Insert a fixed 30-second sleep instead of checking actual readiness. 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 unsafe shortcut is: Check only whether the producer emits syntactically valid JSON. The crucial distinction is: Consumer contract tests should detect interface-breaking changes before coordinated release.

Question 645

After implementing the change, the team verifies: A mobile signing certificate is embedded as Base64 directly in a public pipeline YAML file. Which result would BEST demonstrate that the issue is corrected?

  1. The deployment succeeds while secret values never appear in repository or logs.
  2. Only an approved signing job downloads the file and output contains no key material.
  3. A failure-path test emits useful diagnostics but no usable access tokens.
  4. An unauthorized caller cannot download the deployment configuration and temp files are removed.

Explanation

Correct Answer

B:

Only an approved signing job downloads the file and output contains no key material. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Store approved signing material as an Azure Pipelines secure file with restricted authorization. Sensitive binary signing files need protected storage and controlled access.

Incorrect Answers

A:

The deployment succeeds while secret values never appear in repository or logs. This would address a different situation, such as: A pipeline prints a database password stored in a plain YAML variable during environment deployment. In the present case, the most directly relevant verification is: Only an approved signing job downloads the file and output contains no key material. The crucial distinction is: Sensitive binary signing files need protected storage and controlled access.

C:

A failure-path test emits useful diagnostics but no usable access tokens. This would address a different situation, such as: An Azure CLI task runs with set -x and echoes bearer tokens in the pipeline console log. In the present case, the most directly relevant verification is: Only an approved signing job downloads the file and output contains no key material. The crucial distinction is: Sensitive binary signing files need protected storage and controlled access.

D:

An unauthorized caller cannot download the deployment configuration and temp files are removed. 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 verification is: Only an approved signing job downloads the file and output contains no key material. The crucial distinction is: Sensitive binary signing files need protected storage and controlled access.

Question 646

After implementing the change, the team verifies: A pipeline reports repeated deployment failures but no team receives notifications because the original owner left the company. Which result would BEST demonstrate that the issue is corrected?

  1. An intentionally failed release reaches the active on-call group with diagnostic context.
  2. A clean replacement hosted image reproduces the expected build.
  3. A historical release can be reconstructed within the mandated retention period.
  4. An unchanged low-risk repository does not trigger redundant builds while required scans still run.

Explanation

Correct Answer

A:

An intentionally failed release reaches the active on-call group with diagnostic context. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Assign accountable pipeline owners and route critical failures to current responders. Pipeline operational health needs assigned responders and maintained notification routing.

Incorrect Answers

B:

A clean replacement hosted image reproduces the expected build. 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 verification is: An intentionally failed release reaches the active on-call group with diagnostic context. The crucial distinction is: Pipeline operational health needs assigned responders and maintained notification routing.

C:

A historical release can be reconstructed within the mandated retention period. This would address a different situation, such as: An organization deletes pipeline logs within a day even though deployment approvals must be auditable for a year. In the present case, the most directly relevant verification is: An intentionally failed release reaches the active on-call group with diagnostic context. The crucial distinction is: Pipeline operational health needs assigned responders and maintained notification routing.

D:

An unchanged low-risk repository does not trigger redundant builds while required scans still run. This would address a different situation, such as: Hundreds of nightly builds run when source code is unchanged, consuming expensive hosted parallel minutes. In the present case, the most directly relevant verification is: An intentionally failed release reaches the active on-call group with diagnostic context. The crucial distinction is: Pipeline operational health needs assigned responders and maintained notification routing.

Question 647

The DevOps team must resolve this situation: A GitHub repository scans vulnerabilities once a month but merges vulnerable code daily. Which engineering action is MOST appropriate?

  1. Run supported code scanning on pull requests with risk-appropriate merge gates.
  2. Correct failure handling and publish supported JUnit/TRX results with fail-on-test-failure behavior.
  3. Make integration testing depend on successful migration and test environment readiness.
  4. Test expand-and-contract schema changes against concurrent old and new application instances.

Explanation

Correct Answer

A:

Run supported code scanning on pull requests with risk-appropriate merge gates. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: A policy-blocking insecure test change cannot merge before security review. Code-scanning feedback should be available on proposed changes before merge.

Incorrect Answers

B:

Correct failure handling and publish supported JUnit/TRX results with fail-on-test-failure behavior. This would address a different situation, such as: A pipeline script prints a test failure but exits with zero, leaving no test results visible in Azure Pipelines. In the present case, the most directly relevant engineering action is: Run supported code scanning on pull requests with risk-appropriate merge gates. The crucial distinction is: Code-scanning feedback should be available on proposed changes before merge.

C:

Make integration testing depend on successful migration and test environment readiness. 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 engineering action is: Run supported code scanning on pull requests with risk-appropriate merge gates. The crucial distinction is: Code-scanning feedback should be available on proposed changes before merge.

D:

Test expand-and-contract schema changes against concurrent old and new application instances. This would address a different situation, such as: A release adds a non-null column while old and new application versions temporarily operate together. In the present case, the most directly relevant engineering action is: Run supported code scanning on pull requests with risk-appropriate merge gates. The crucial distinction is: Code-scanning feedback should be available on proposed changes before merge.

Question 648

An Azure DevOps engineering team evaluates this condition: An internal SDK removes a public method yet publishes the next build as a patch release, breaking consumers. Which DevOps principle BEST explains the underlying weakness?

  1. SemVer major versions communicate incompatible public API changes.
  2. Semantic versioning should reflect compatibility impact rather than commit count.
  3. Private package access requires scoped workflow identity and authorized repository permissions.
  4. Package views can separate promoted stable packages from unapproved candidates.

Explanation

Correct Answer

A:

SemVer major versions communicate incompatible public API changes. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Inspect public API diffs, release notes, versioning rules and downstream tests. An appropriate controlled response is: Publish an appropriate major version with migration guidance and compatibility gates.

Incorrect Answers

B:

Semantic versioning should reflect compatibility impact rather than commit count. This would address a different situation, such as: A compatible optional SDK feature is added, but release automation increments the major version for every change. In the present case, the most directly relevant principle is: SemVer major versions communicate incompatible public API changes. The crucial distinction is: SemVer major versions communicate incompatible public API changes.

C:

Private package access requires scoped workflow identity and authorized repository permissions. 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 principle is: SemVer major versions communicate incompatible public API changes. The crucial distinction is: SemVer major versions communicate incompatible public API changes.

D:

Package views can separate promoted stable packages from unapproved candidates. This would address a different situation, such as: A library's prerelease build appears in the same feed view consumed by production services and breaks compatibility. In the present case, the most directly relevant principle is: SemVer major versions communicate incompatible public API changes. The crucial distinction is: SemVer major versions communicate incompatible public API changes.

Question 649

An Azure DevOps engineering team evaluates this condition: Azure resource logs show unusual production service principal sign-ins, but a dashboard aggregates all identities together. Which DevOps principle BEST explains the underlying weakness?

  1. Performance diagnoses must compare the actual constrained resource across CPU, memory, disk and network.
  2. Security observability requires principal-specific queries and context.
  3. Missing data must not be interpreted as proof of a healthy resource.
  4. Operational telemetry should correlate errors with release markers and change events.

Explanation

Correct Answer

B:

Security observability requires principal-specific queries and context. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Inspect sign-in records, principal IDs, resource IDs, times and failure causes. An appropriate controlled response is: Build KQL queries with identity dimensions and appropriate anomaly thresholds.

Incorrect Answers

A:

Performance diagnoses must compare the actual constrained resource across CPU, memory, disk and network. This would address a different situation, such as: An application slows while CPU is low but disk I/O is saturated; operators conclude more vCPUs are needed. In the present case, the most directly relevant principle is: Security observability requires principal-specific queries and context. The crucial distinction is: Security observability requires principal-specific queries and context.

C:

Missing data must not be interpreted as proof of a healthy resource. This would address a different situation, such as: A VM's monitoring dashboard reports no errors because its telemetry agent stopped sending data three days ago. In the present case, the most directly relevant principle is: Security observability requires principal-specific queries and context. The crucial distinction is: Security observability requires principal-specific queries and context.

D:

Operational telemetry should correlate errors with release markers and change events. 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 principle is: Security observability requires principal-specific queries and context. The crucial distinction is: Security observability requires principal-specific queries and context.

Question 650

Before changing the pipeline or service, engineers find: A microservice changes a JSON field name while a downstream consumer still relies on the old name. Which evidence should the engineer inspect FIRST?

  1. Inspect coverage details, assertions, mutation results and test cases.
  2. Inspect producer schemas, consumer tests, artifact versions and failure logs.
  3. Review load profile, Azure Load Testing results, request percentiles and capacity metrics.
  4. Inspect schema migration scripts, live app versions, default values and rollback plans.

Explanation

Correct Answer

B:

Inspect producer schemas, consumer tests, artifact versions and failure logs. This directly checks the uncertain behavior or control before changing production. Consumer contract tests should detect interface-breaking changes before coordinated release. The resulting targeted action is: Run automated producer-consumer contract checks with backward-compatible staging.

Incorrect Answers

A:

Inspect coverage details, assertions, mutation results and test cases. This would address a different situation, such as: A business rule has 100% line coverage, but tests still pass when its comparison operator is reversed. In the present case, the most directly relevant evidence is: Inspect producer schemas, consumer tests, artifact versions and failure logs. The crucial distinction is: Consumer contract tests should detect interface-breaking changes before coordinated release.

C:

Review load profile, Azure Load Testing results, request percentiles and capacity metrics. This would address a different situation, such as: An API passes functional tests for one user but violates latency objectives under 1,000 concurrent clients. In the present case, the most directly relevant evidence is: Inspect producer schemas, consumer tests, artifact versions and failure logs. The crucial distinction is: Consumer contract tests should detect interface-breaking changes before coordinated release.

D:

Inspect schema migration scripts, live app versions, default values and rollback plans. This would address a different situation, such as: A release adds a non-null column while old and new application versions temporarily operate together. In the present case, the most directly relevant evidence is: Inspect producer schemas, consumer tests, artifact versions and failure logs. The crucial distinction is: Consumer contract tests should detect interface-breaking changes before coordinated release.

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