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 17

Question 160

A Microsoft DevOps team is addressing: A team's claimed 90% code coverage includes only generated code and excludes its core authorization module. Which TWO complementary actions should be taken? Select TWO answers.

  1. Collect meaningful coverage with transparent exclusions and enforce reviewed thresholds.
  2. Require verified unit test checks as part of protected pull request policy.
  3. Inspect connection policy, test-stage service connections, database logs and environment settings.
  4. Inspect service connections, resource IDs, variables and test cleanup scripts.
  5. Review coverage collection filters, included assemblies and security-sensitive modules.

Explanation

Correct Answers

A:

Collect meaningful coverage with transparent exclusions and enforce reviewed thresholds. This supplies the controlled implementation needed for the scenario. Its complementary step is: Review coverage collection filters, included assemblies and security-sensitive modules. Together they address: Coverage gates must reflect relevant tested production code and disclose exclusions.

E:

Review coverage collection filters, included assemblies and security-sensitive modules. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Collect meaningful coverage with transparent exclusions and enforce reviewed thresholds. Together they address: Coverage gates must reflect relevant tested production code and disclose exclusions.

Incorrect Answers

B:

Require verified unit test checks as part of protected pull request policy. This concerns a different DevOps situation: A protected mainline accepts pull requests before a required unit test suite finishes, causing broken packages. This case instead requires both a targeted investigation (Review coverage collection filters, included assemblies and security-sensitive modules.) and a controlled change (Collect meaningful coverage with transparent exclusions and enforce reviewed thresholds.).

C:

Inspect connection policy, test-stage service connections, database logs and environment settings. This concerns a different DevOps situation: Service unit tests pass but integration fails because Azure SQL connectivity differs between staging and production. This case instead requires both a targeted investigation (Review coverage collection filters, included assemblies and security-sensitive modules.) and a controlled change (Collect meaningful coverage with transparent exclusions and enforce reviewed thresholds.).

D:

Inspect service connections, resource IDs, variables and test cleanup scripts. This concerns a different DevOps situation: A test pipeline reuses a production storage account and occasionally deletes customer fixtures. This case instead requires both a targeted investigation (Review coverage collection filters, included assemblies and security-sensitive modules.) and a controlled change (Collect meaningful coverage with transparent exclusions and enforce reviewed thresholds.).

Question 161

The DevOps team must resolve this situation: An App Service accesses Azure Storage using a connection string containing an account key in source control. Which engineering action is MOST appropriate?

  1. Invite an outside collaborator with restricted access to the reviewed repository.
  2. Separate pipeline authors from release-approval administrators and audit exceptions.
  3. Use suitable Stakeholder access and restrict code/pipeline administration.
  4. Enable system-assigned managed identity and grant narrow storage data-plane roles.

Explanation

Correct Answer

D:

Enable system-assigned managed identity and grant narrow storage data-plane roles. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: The app accesses its authorized container after the account key is revoked. Managed identity can replace application-stored credentials when the target service supports Azure RBAC.

Incorrect Answers

A:

Invite an outside collaborator with restricted access to the reviewed repository. 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 engineering action is: Enable system-assigned managed identity and grant narrow storage data-plane roles. The crucial distinction is: Managed identity can replace application-stored credentials when the target service supports Azure RBAC.

B:

Separate pipeline authors from release-approval administrators and audit exceptions. 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 engineering action is: Enable system-assigned managed identity and grant narrow storage data-plane roles. The crucial distinction is: Managed identity can replace application-stored credentials when the target service supports Azure RBAC.

C:

Use suitable Stakeholder access and restrict code/pipeline administration. 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 engineering action is: Enable system-assigned managed identity and grant narrow storage data-plane roles. The crucial distinction is: Managed identity can replace application-stored credentials when the target service supports Azure RBAC.

Question 162

Before changing the pipeline or service, engineers find: An audit team cannot associate production features with reviewed pull requests after squash merging because release metadata records only original feature SHAs. Which evidence should the engineer inspect FIRST?

  1. Review deployment branch sources, permissions and branch policy coverage.
  2. Inspect merge cadence, branch age, conflict history and required checks.
  3. Inspect merge strategy, generated commit IDs, pull request metadata and release manifest.
  4. Inspect check run SHAs, policy settings, new commits and merge event history.

Explanation

Correct Answer

C:

Inspect merge strategy, generated commit IDs, pull request metadata and release manifest. This directly checks the uncertain behavior or control before changing production. Traceability after squash merges needs durable pull request and resulting commit identifiers. The resulting targeted action is: Record the final mainline commit and linked PR/work item in deployment provenance.

Incorrect Answers

A:

Review deployment branch sources, permissions and branch policy coverage. 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 evidence is: Inspect merge strategy, generated commit IDs, pull request metadata and release manifest. The crucial distinction is: Traceability after squash merges needs durable pull request and resulting commit identifiers.

B:

Inspect merge cadence, branch age, conflict history and required checks. This would address a different situation, such as: An organization merges changes only at the end of a six-week release branch, creating hundreds of conflicts. In the present case, the most directly relevant evidence is: Inspect merge strategy, generated commit IDs, pull request metadata and release manifest. The crucial distinction is: Traceability after squash merges needs durable pull request and resulting commit identifiers.

D:

Inspect check run SHAs, policy settings, new commits and merge event history. This would address a different situation, such as: A pull request passes security tests, then receives new commits but can merge without rerunning required checks. In the present case, the most directly relevant evidence is: Inspect merge strategy, generated commit IDs, pull request metadata and release manifest. The crucial distinction is: Traceability after squash merges needs durable pull request and resulting commit identifiers.

Question 163

An Azure DevOps engineering team evaluates this condition: A Terraform workflow stores its state file in an unencrypted shared file share accessible to all developers. Which DevOps principle BEST explains the underlying weakness?

  1. Self-service environment catalogs can standardize provisioning and lifecycle governance.
  2. IaC state may contain sensitive values and requires protected remote storage and controlled locking.
  3. IaC dependency design must express when required resources and authorization are ready.
  4. Policy exemptions need justified owner approval, scope and expiration.

Explanation

Correct Answer

B:

IaC state may contain sensitive values and requires protected remote storage and controlled locking. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Inspect backend settings, state access policy, encryption and concurrent writes. An appropriate controlled response is: Use secured remote state with least-privilege identity and locking support.

Incorrect Answers

A:

Self-service environment catalogs can standardize provisioning and lifecycle governance. 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 principle is: IaC state may contain sensitive values and requires protected remote storage and controlled locking. The crucial distinction is: IaC state may contain sensitive values and requires protected remote storage and controlled locking.

C:

IaC dependency design must express when required resources and authorization are ready. This would address a different situation, such as: A Bicep deployment creates an application before the required Key Vault access is effective, causing startup failures. In the present case, the most directly relevant principle is: IaC state may contain sensitive values and requires protected remote storage and controlled locking. The crucial distinction is: IaC state may contain sensitive values and requires protected remote storage and controlled locking.

D:

Policy exemptions need justified owner approval, scope and expiration. This would address a different situation, such as: A production deployment depends on a time-limited Azure Policy exemption that was never documented or reviewed. In the present case, the most directly relevant principle is: IaC state may contain sensitive values and requires protected remote storage and controlled locking. The crucial distinction is: IaC state may contain sensitive values and requires protected remote storage and controlled locking.

Question 164

After implementing the change, the team verifies: A deployment pipeline runs on feature-branch pushes despite a policy requiring releases only from protected main. Which result would BEST demonstrate that the issue is corrected?

  1. A test-only job cannot mutate repository releases while publish job remains authorized.
  2. A feature-branch push cannot deploy while a reviewed mainline commit can.
  3. A simulated pair of releases leaves the later approved version running.
  4. An untrusted fork cannot execute on the privileged production runner.

Explanation

Correct Answer

B:

A feature-branch push cannot deploy while a reviewed mainline commit can. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Limit production deployment to permitted protected refs and validated build artifacts. Pipeline triggers must enforce reviewed source ref eligibility.

Incorrect Answers

A:

A test-only job cannot mutate repository releases while publish job remains authorized. 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 verification is: A feature-branch push cannot deploy while a reviewed mainline commit can. The crucial distinction is: Pipeline triggers must enforce reviewed source ref eligibility.

C:

A simulated pair of releases leaves the later approved version running. This would address a different situation, such as: Two production deployments target the same App Service slot simultaneously and the earlier one overwrites the newer release. In the present case, the most directly relevant verification is: A feature-branch push cannot deploy while a reviewed mainline commit can. The crucial distinction is: Pipeline triggers must enforce reviewed source ref eligibility.

D:

An untrusted fork cannot execute on the privileged production runner. 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 verification is: A feature-branch push cannot deploy while a reviewed mainline commit can. The crucial distinction is: Pipeline triggers must enforce reviewed source ref eligibility.

Question 165

The DevOps team must resolve this situation: A pipeline reports repeated deployment failures but no team receives notifications because the original owner left the company. Which engineering action is MOST appropriate?

  1. Right-size authorized agent capacity and prioritize critical release jobs.
  2. Assign accountable pipeline owners and route critical failures to current responders.
  3. Configure environment-level approvals and checks outside untrusted YAML modification paths.
  4. Migrate to workload identity federation or controlled rotation with alerting.

Explanation

Correct Answer

B:

Assign accountable pipeline owners and route critical failures to current responders. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: An intentionally failed release reaches the active on-call group with diagnostic context. Pipeline operational health needs assigned responders and maintained notification routing.

Incorrect Answers

A:

Right-size authorized agent capacity and prioritize critical release jobs. This would address a different situation, such as: A pipeline runs quickly on an agent but waits 70 minutes in queue due to a limited self-hosted pool. In the present case, the most directly relevant engineering action is: Assign accountable pipeline owners and route critical failures to current responders. The crucial distinction is: Pipeline operational health needs assigned responders and maintained notification routing.

C:

Configure environment-level approvals and checks outside untrusted YAML modification paths. This would address a different situation, such as: After migrating to YAML, a production release skips mandatory human approval that existed in a classic release stage. In the present case, the most directly relevant engineering action is: Assign accountable pipeline owners and route critical failures to current responders. The crucial distinction is: Pipeline operational health needs assigned responders and maintained notification routing.

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: Assign accountable pipeline owners and route critical failures to current responders. The crucial distinction is: Pipeline operational health needs assigned responders and maintained notification routing.

Question 166

After implementing the change, the team verifies: A shopping application logs HTTP failures but does not show which downstream payment call caused the response delay. Which result would BEST demonstrate that the issue is corrected?

  1. An intentionally failed deployment reaches the active on-call team with run identity.
  2. A controlled path disruption is visible with source/destination context.
  3. A generated test event is queryable with the correct source and timestamp.
  4. A slow payment request appears as a correlated downstream dependency span.

Explanation

Correct Answer

D:

A slow payment request appears as a correlated downstream dependency span. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Instrument supported Application Insights distributed tracing with context propagation. Distributed telemetry should correlate requests and dependencies across application boundaries.

Incorrect Answers

A:

An intentionally failed deployment reaches the active on-call team with run identity. This would address a different situation, such as: Production pipeline deployments fail overnight, but engineers notice only when checking the Azure DevOps portal the next morning. In the present case, the most directly relevant verification is: A slow payment request appears as a correlated downstream dependency span. The crucial distinction is: Distributed telemetry should correlate requests and dependencies across application boundaries.

B:

A controlled path disruption is visible with source/destination context. 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 verification is: A slow payment request appears as a correlated downstream dependency span. The crucial distinction is: Distributed telemetry should correlate requests and dependencies across application boundaries.

C:

A generated test event is queryable with the correct source and timestamp. This would address a different situation, such as: A VM sends no logs to Log Analytics because its Azure Monitor Agent data collection rule targets another resource group. In the present case, the most directly relevant verification is: A slow payment request appears as a correlated downstream dependency span. The crucial distinction is: Distributed telemetry should correlate requests and dependencies across application boundaries.

Question 167

An Azure DevOps engineering team evaluates this condition: An Azure Repos project has GitHub Advanced Security licensed but required code and secret scanning were never enabled for key repos. Which DevOps principle BEST explains the underlying weakness?

  1. Security capability licensing does not prove scans run or findings are reviewed.
  2. DevOps security posture can be integrated into centralized cloud risk monitoring.
  3. Compliance scanning should identify licensing constraints before external software distribution.
  4. Security scanning should prioritize relevant risk and accountable remediation.

Explanation

Correct Answer

A:

Security capability licensing does not prove scans run or findings are reviewed. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Inspect Azure DevOps Advanced Security settings, repository enablement and security alerts. An appropriate controlled response is: Enable supported secret, dependency and code scanning for target Azure Repos repositories.

Incorrect Answers

B:

DevOps security posture can be integrated into centralized cloud risk monitoring. 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 principle is: Security capability licensing does not prove scans run or findings are reviewed. The crucial distinction is: Security capability licensing does not prove scans run or findings are reviewed.

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: Security capability licensing does not prove scans run or findings are reviewed. The crucial distinction is: Security capability licensing does not prove scans run or findings are reviewed.

D:

Security scanning should prioritize relevant risk and accountable remediation. 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 principle is: Security capability licensing does not prove scans run or findings are reviewed. The crucial distinction is: Security capability licensing does not prove scans run or findings are reviewed.

Question 168

Before changing the pipeline or service, engineers find: A central deployment pipeline cannot restore a package from another Azure DevOps project although the feed works locally. Which evidence should the engineer inspect FIRST?

  1. Inspect ACR manifests, tag mutation rights, deployment records and source mapping.
  2. Inspect package sources, feed permissions, dependency versions and build logs.
  3. Compare project version ranges, lockfiles, feed updates and restore output.
  4. Inspect feed/project scope, pipeline identity, role assignment and error logs.

Explanation

Correct Answer

D:

Inspect feed/project scope, pipeline identity, role assignment and error logs. This directly checks the uncertain behavior or control before changing production. Cross-project feeds require authorized build-service identities and scope settings. The resulting targeted action is: Grant the consuming build service read access at the appropriate feed scope.

Incorrect Answers

A:

Inspect ACR manifests, tag mutation rights, deployment records and source mapping. This would address a different situation, such as: A team overwrites the same image tag in Azure Container Registry for every build and loses reproducible deployment history. In the present case, the most directly relevant evidence is: Inspect feed/project scope, pipeline identity, role assignment and error logs. The crucial distinction is: Cross-project feeds require authorized build-service identities and scope settings.

B:

Inspect package sources, feed permissions, dependency versions and build logs. This would address a different situation, such as: A.NET service pulls internal NuGet libraries from a developer laptop because no shared feed exists. In the present case, the most directly relevant evidence is: Inspect feed/project scope, pipeline identity, role assignment and error logs. The crucial distinction is: Cross-project feeds require authorized build-service identities and scope settings.

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/project scope, pipeline identity, role assignment and error logs. The crucial distinction is: Cross-project feeds require authorized build-service identities and scope settings.

Question 169

After implementing the change, the team verifies: A central deployment pipeline cannot restore a package from another Azure DevOps project although the feed works locally. Which result would BEST demonstrate that the issue is corrected?

  1. A newly built wheel no longer includes the vulnerable dependency and tests pass.
  2. The cross-project build restores packages without a global administrator token.
  3. An ordinary consumer can restore packages but cannot remove published releases.
  4. A fresh workflow installs the private package without a long-lived personal token.

Explanation

Correct Answer

B:

The cross-project build restores packages without a global administrator token. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Grant the consuming build service read access at the appropriate feed scope. Cross-project feeds require authorized build-service identities and scope settings.

Incorrect Answers

A:

A newly built wheel no longer includes the vulnerable dependency and tests pass. This would address a different situation, such as: A pipeline publishes Python wheels from a feed after an advisory identifies a vulnerable indirect dependency. In the present case, the most directly relevant verification is: The cross-project build restores packages without a global administrator token. The crucial distinction is: Cross-project feeds require authorized build-service identities and scope settings.

C:

An ordinary consumer can restore packages but cannot remove published releases. This would address a different situation, such as: Every developer can delete the versions of a private production library that other teams depend on. In the present case, the most directly relevant verification is: The cross-project build restores packages without a global administrator token. The crucial distinction is: Cross-project feeds require authorized build-service identities and scope settings.

D:

A fresh workflow installs the private package without a long-lived personal token. 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 verification is: The cross-project build restores packages without a global administrator token. The crucial distinction is: Cross-project feeds require authorized build-service identities and scope settings.

Question 170

Before changing the pipeline or service, engineers find: The same Terraform source yields changed resource behavior because local users and CI select different provider versions. Which evidence should the engineer inspect FIRST?

  1. Inspect template deployment mode, resource group contents, what-if output and retention requirements.
  2. Review required_providers, lockfile, init results and changed plan outputs.
  3. Inspect template inputs, source history, Key Vault access and deployment output.
  4. Inspect environment provisioning logs, resource tags, TTL and cleanup policies.

Explanation

Correct Answer

B:

Review required_providers, lockfile, init results and changed plan outputs. This directly checks the uncertain behavior or control before changing production. IaC builds need controlled provider requirements and lockfile provenance. The resulting targeted action is: Pin and review provider versions with a committed lockfile and CI version checks.

Incorrect Answers

A:

Inspect template deployment mode, resource group contents, what-if output and retention requirements. 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 evidence is: Review required_providers, lockfile, init results and changed plan outputs. The crucial distinction is: IaC builds need controlled provider requirements and lockfile provenance.

C:

Inspect template inputs, source history, Key Vault access and deployment output. 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 evidence is: Review required_providers, lockfile, init results and changed plan outputs. The crucial distinction is: IaC builds need controlled provider requirements and lockfile provenance.

D:

Inspect environment provisioning logs, resource tags, TTL and cleanup policies. 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 evidence is: Review required_providers, lockfile, init results and changed plan outputs. The crucial distinction is: IaC builds need controlled provider requirements and lockfile provenance.

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