Microsoft AZ-400 Practice Test 89
Question 880
An Azure DevOps engineering team evaluates this condition: A refactor changes a storage account name while the pipeline applies it directly to production. Which DevOps principle BEST explains the underlying weakness?
- Infrastructure and application delivery need traceable version handoff without mutable assumptions.
- Declarative deployments should converge to consistent named resources across repeated runs.
- IaC builds need controlled provider requirements and lockfile provenance.
- Stateful IaC replacements require impact review and a migration plan.
Explanation
Correct Answer
D:Stateful IaC replacements require impact review and a migration plan. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Inspect Azure what-if operations, storage data dependency, naming constraints and resource references. An appropriate controlled response is: Require reviewed what-if output and controlled data-preserving migration before deployment.
Incorrect Answers
A:Infrastructure and application delivery need traceable version handoff without mutable assumptions. 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 principle is: Stateful IaC replacements require impact review and a migration plan. The crucial distinction is: Stateful IaC replacements require impact review and a migration plan.
B:Declarative deployments should converge to consistent named resources across repeated runs. 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 principle is: Stateful IaC replacements require impact review and a migration plan. The crucial distinction is: Stateful IaC replacements require impact review and a migration plan.
C:IaC builds need controlled provider requirements and lockfile provenance. 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 principle is: Stateful IaC replacements require impact review and a migration plan. The crucial distinction is: Stateful IaC replacements require impact review and a migration plan.
Question 881
An engineering design review identifies: A release detects elevated errors but cannot roll back because the prior verified package was deleted. Which shortcut should the team MOST specifically avoid for this case?
- Delete the Helm history to make the failed release disappear.
- Update all pods at once and wait for customer complaints to identify errors.
- Rebuild the former release from floating dependencies during an outage.
- Drop the old database column before any old app instance stops writing.
Explanation
Correct Answer
C:Rebuild the former release from floating dependencies during an outage. This shortcut directly undermines the stated control or workflow. A safer action is: Retain a protected previous release and automate monitored rollback upon failure. Explanation: Deployment strategy must preserve known-good artifacts and tested rollback paths.
Incorrect Answers
A:Delete the Helm history to make the failed release disappear. 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 unsafe shortcut is: Rebuild the former release from floating dependencies during an outage. The crucial distinction is: Deployment strategy must preserve known-good artifacts and tested rollback paths.
B:Update all pods at once and wait for customer complaints to identify errors. This would address a different situation, such as: A new AKS container image may affect payments, but the team wants to limit customer exposure during rollout. In the present case, the most directly relevant unsafe shortcut is: Rebuild the former release from floating dependencies during an outage. The crucial distinction is: Deployment strategy must preserve known-good artifacts and tested rollback paths.
D:Drop the old database column before any old app instance stops writing. 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 unsafe shortcut is: Rebuild the former release from floating dependencies during an outage. The crucial distinction is: Deployment strategy must preserve known-good artifacts and tested rollback paths.
Question 882
An Azure DevOps engineering team evaluates this condition: An automation bot uses a maintainer's all-repository personal access token to comment on pull requests. Which DevOps principle BEST explains the underlying weakness?
- Managed identity can replace application-stored credentials when the target service supports Azure RBAC.
- Service connection authorization must be limited to approved pipelines and resource scope.
- Azure DevOps access levels and security groups should reflect actual job duties.
- App-based automation can use narrow installation permissions and accountable identity.
Explanation
Correct Answer
D:App-based automation can use narrow installation permissions and accountable identity. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Inspect token scope, audit events, bot responsibilities and repository installation. An appropriate controlled response is: Use a GitHub App with minimal repository permissions for the workflow.
Incorrect Answers
A:Managed identity can replace application-stored credentials when the target service supports Azure RBAC. This would address a different situation, such as: An App Service accesses Azure Storage using a connection string containing an account key in source control. In the present case, the most directly relevant principle is: App-based automation can use narrow installation permissions and accountable identity. The crucial distinction is: App-based automation can use narrow installation permissions and accountable identity.
B:Service connection authorization must be limited to approved pipelines and resource scope. This would address a different situation, such as: An Azure DevOps deployment service connection is authorized for all pipelines, including untrusted test definitions. In the present case, the most directly relevant principle is: App-based automation can use narrow installation permissions and accountable identity. The crucial distinction is: App-based automation can use narrow installation permissions and accountable identity.
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: App-based automation can use narrow installation permissions and accountable identity. The crucial distinction is: App-based automation can use narrow installation permissions and accountable identity.
Question 883
After implementing the change, the team verifies: A team reports excellent developer experience based only on responses from its three most active maintainers. Which result would BEST demonstrate that the issue is corrected?
- The report states response coverage and captures previously omitted contributor feedback.
- The dashboard includes the interval when infrastructure was healthy but checkout failed.
- Payment release performance can be evaluated without being distorted by sandbox builds.
- Sample completed stories show realistic cycle times that match actual engineering work.
Explanation
Correct Answer
A:The report states response coverage and captures previously omitted contributor feedback. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Gather representative developer feedback and combine it with observed flow telemetry. Process metrics should disclose sampling limitations and actionable qualitative context.
Incorrect Answers
B:The dashboard includes the interval when infrastructure was healthy but checkout failed. This would address a different situation, such as: An operations dashboard reports recovery time ending when a VM restarts, although customer transactions remain unavailable. In the present case, the most directly relevant verification is: The report states response coverage and captures previously omitted contributor feedback. The crucial distinction is: Process metrics should disclose sampling limitations and actionable qualitative context.
C:Payment release performance can be evaluated without being distorted by sandbox builds. This would address a different situation, such as: A company combines experimental internal tools and regulated payment services into one deployment-frequency ranking. In the present case, the most directly relevant verification is: The report states response coverage and captures previously omitted contributor feedback. The crucial distinction is: Process metrics should disclose sampling limitations and actionable qualitative context.
D:Sample completed stories show realistic cycle times that match actual engineering work. This would address a different situation, such as: Azure Boards reports near-zero cycle time because teams move stories to Active only when coding is almost finished. In the present case, the most directly relevant verification is: The report states response coverage and captures previously omitted contributor feedback. The crucial distinction is: Process metrics should disclose sampling limitations and actionable qualitative context.
Question 884
An Azure DevOps engineering team evaluates this condition: A Log Analytics workspace stores application exceptions, but engineers cannot identify which deployment revision triggered a spike. Which DevOps principle BEST explains the underlying weakness?
- Performance diagnoses must compare the actual constrained resource across CPU, memory, disk and network.
- Missing data must not be interpreted as proof of a healthy resource.
- Security observability requires principal-specific queries and context.
- KQL grouping by revision and time can separate release regressions from background failures.
Explanation
Correct Answer
D:KQL grouping by revision and time can separate release regressions from background failures. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Inspect customDimensions, timestamp, role name and exception records. An appropriate controlled response is: Use a Kusto summarize query grouped by deployment version and appropriate time bins.
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: KQL grouping by revision and time can separate release regressions from background failures. The crucial distinction is: KQL grouping by revision and time can separate release regressions from background failures.
B: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: KQL grouping by revision and time can separate release regressions from background failures. The crucial distinction is: KQL grouping by revision and time can separate release regressions from background failures.
C:Security observability requires principal-specific queries and context. This would address a different situation, such as: Azure resource logs show unusual production service principal sign-ins, but a dashboard aggregates all identities together. In the present case, the most directly relevant principle is: KQL grouping by revision and time can separate release regressions from background failures. The crucial distinction is: KQL grouping by revision and time can separate release regressions from background failures.
Question 885
Before changing the pipeline or service, engineers find: A pull request passes security tests, then receives new commits but can merge without rerunning required checks. Which evidence should the engineer inspect FIRST?
- Inspect merge conflicts, feature activation requirements and current flag controls.
- Compare branch naming, workflow filters, release tags and production deployment records.
- Inspect merge cadence, branch age, conflict history and required checks.
- Inspect check run SHAs, policy settings, new commits and merge event history.
Explanation
Correct Answer
D:Inspect check run SHAs, policy settings, new commits and merge event history. This directly checks the uncertain behavior or control before changing production. Required checks must apply to the head commit actually being merged. The resulting targeted action is: Require fresh passing checks after updates to the protected pull request.
Incorrect Answers
A:Inspect merge conflicts, feature activation requirements and current flag controls. 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 evidence is: Inspect check run SHAs, policy settings, new commits and merge event history. The crucial distinction is: Required checks must apply to the head commit actually being merged.
B:Compare branch naming, workflow filters, release tags and production deployment records. This would address a different situation, such as: Teams use dozens of release branches with ambiguous names, and automation often deploys the wrong branch. In the present case, the most directly relevant evidence is: Inspect check run SHAs, policy settings, new commits and merge event history. The crucial distinction is: Required checks must apply to the head commit actually being merged.
C: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 check run SHAs, policy settings, new commits and merge event history. The crucial distinction is: Required checks must apply to the head commit actually being merged.
Question 886
Before changing the pipeline or service, engineers find: A service builds on a Windows workstation but fails on Linux CI because a source import differs only in filename case. Which evidence should the engineer inspect FIRST?
- Inspect file types, object sizes, clone profiles and LFS availability.
- Inspect LFS usage, pointer resolution, CI checkout settings and quota alerts.
- Inspect project access groups, repository ACLs, token grants and vendor responsibilities.
- Review tracked paths, Git case settings, import statements and CI filesystem behavior.
Explanation
Correct Answer
D:Review tracked paths, Git case settings, import statements and CI filesystem behavior. This directly checks the uncertain behavior or control before changing production. Source control workflows must verify path case and platform consistency. The resulting targeted action is: Normalize names and case-correct imports with cross-platform validation in PR checks.
Incorrect Answers
A:Inspect file types, object sizes, clone profiles and LFS availability. This would address a different situation, such as: Designers repeatedly commit multi-gigabyte video assets as normal Git blobs and cloning takes hours. In the present case, the most directly relevant evidence is: Review tracked paths, Git case settings, import statements and CI filesystem behavior. The crucial distinction is: Source control workflows must verify path case and platform consistency.
B:Inspect LFS usage, pointer resolution, CI checkout settings and quota alerts. This would address a different situation, such as: A project enables Git LFS but build agents repeatedly fail because downloads exceed the organization's storage bandwidth quota. In the present case, the most directly relevant evidence is: Review tracked paths, Git case settings, import statements and CI filesystem behavior. The crucial distinction is: Source control workflows must verify path case and platform consistency.
C:Inspect project access groups, repository ACLs, token grants and vendor responsibilities. This would address a different situation, such as: A QA vendor needs read-only test access but has been granted repository administration rights. In the present case, the most directly relevant evidence is: Review tracked paths, Git case settings, import statements and CI filesystem behavior. The crucial distinction is: Source control workflows must verify path case and platform consistency.
Question 887
An Azure DevOps engineering team evaluates this condition: A Terraform pipeline applies a production plan without showing that a changed resource will be destroyed. Which DevOps principle BEST explains the underlying weakness?
- Helm release operations need validated charts and controlled rollback behavior.
- Deployment strategy must preserve known-good artifacts and tested rollback paths.
- Infrastructure deployment should preview and approve material changes before applying.
- Deployments should reference the exact verified image digest or protected immutable tag.
Explanation
Correct Answer
C:Infrastructure deployment should preview and approve material changes before applying. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Inspect generated plan actions, state lock, resource dependencies and change policy. An appropriate controlled response is: Publish a reviewed Terraform plan and apply the exact approved plan under controls.
Incorrect Answers
A: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: Infrastructure deployment should preview and approve material changes before applying. The crucial distinction is: Infrastructure deployment should preview and approve material changes before applying.
B:Deployment strategy must preserve known-good artifacts and tested rollback paths. This would address a different situation, such as: A release detects elevated errors but cannot roll back because the prior verified package was deleted. In the present case, the most directly relevant principle is: Infrastructure deployment should preview and approve material changes before applying. The crucial distinction is: Infrastructure deployment should preview and approve material changes before applying.
D:Deployments should reference the exact verified image digest or protected immutable tag. This would address a different situation, such as: A release manifest references an ACR latest tag that was replaced after QA approval. In the present case, the most directly relevant principle is: Infrastructure deployment should preview and approve material changes before applying. The crucial distinction is: Infrastructure deployment should preview and approve material changes before applying.
Question 888
After implementing the change, the team verifies: A large repository launches 100 independent test jobs though the organization owns only 10 paid parallel agent slots. Which result would BEST demonstrate that the issue is corrected?
- A simulated pair of releases leaves the later approved version running.
- An untrusted fork cannot execute on the privileged production runner.
- A downstream task receives the intended endpoint from the current successful run.
- A test run completes faster without exceeding the owned concurrency budget.
Explanation
Correct Answer
D:A test run completes faster without exceeding the owned concurrency budget. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Optimize test partitions and concurrency to fit approved parallel job capacity. Pipeline parallelism should match resource quotas and job critical paths.
Incorrect Answers
A: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 test run completes faster without exceeding the owned concurrency budget. The crucial distinction is: Pipeline parallelism should match resource quotas and job critical paths.
B: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 test run completes faster without exceeding the owned concurrency budget. The crucial distinction is: Pipeline parallelism should match resource quotas and job critical paths.
C:A downstream task receives the intended endpoint from the current successful run. This would address a different situation, such as: A downstream stage cannot determine the storage endpoint created by an infrastructure provisioning stage. In the present case, the most directly relevant verification is: A test run completes faster without exceeding the owned concurrency budget. The crucial distinction is: Pipeline parallelism should match resource quotas and job critical paths.
Question 889
After implementing the change, the team verifies: A release pipeline downloads the latest build artifact by name instead of the approved artifact from staging. Which result would BEST demonstrate that the issue is corrected?
- Existing consumers remain on supported prior versions unless they explicitly upgrade.
- A clean hosted agent resolves the approved package without a developer workstation.
- Two clean builds of the same commit restore an identical dependency graph.
- The production artifact SHA matches the artifact that completed staging verification.
Explanation
Correct Answer
D:The production artifact SHA matches the artifact that completed staging verification. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Pin the release to the verified pipeline run and immutable artifact identifier. Artifact promotion must bind deployment to the exact tested build.
Incorrect Answers
A:Existing consumers remain on supported prior versions unless they explicitly upgrade. This would address a different situation, such as: An internal SDK removes a public method yet publishes the next build as a patch release, breaking consumers. In the present case, the most directly relevant verification is: The production artifact SHA matches the artifact that completed staging verification. The crucial distinction is: Artifact promotion must bind deployment to the exact tested build.
B:A clean hosted agent resolves the approved package without a developer workstation. 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 verification is: The production artifact SHA matches the artifact that completed staging verification. The crucial distinction is: Artifact promotion must bind deployment to the exact tested build.
C: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: The production artifact SHA matches the artifact that completed staging verification. The crucial distinction is: Artifact promotion must bind deployment to the exact tested build.
Question 890
An Azure DevOps engineering team evaluates this condition: A monorepo pipeline skips tests for a common authentication library because its paths filter only includes one service folder. Which DevOps principle BEST explains the underlying weakness?
- Cross-stage values must be explicitly published and referenced through supported output syntax.
- Shared templates should be centrally governed and versioned for compatible consumers.
- Workload identity federation reduces dependence on persistent credentials for Azure deployment.
- Path filters must include shared dependencies required by the target service.
Explanation
Correct Answer
D:Path filters must include shared dependencies required by the target service. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Review folder ownership, trigger patterns, dependency graph and missed commits. An appropriate controlled response is: Expand path filters to cover the service and relevant shared library changes.
Incorrect Answers
A:Cross-stage values must be explicitly published and referenced through supported output syntax. This would address a different situation, such as: A downstream stage cannot determine the storage endpoint created by an infrastructure provisioning stage. In the present case, the most directly relevant principle is: Path filters must include shared dependencies required by the target service. The crucial distinction is: Path filters must include shared dependencies required by the target service.
B:Shared templates should be centrally governed and versioned for compatible consumers. 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 principle is: Path filters must include shared dependencies required by the target service. The crucial distinction is: Path filters must include shared dependencies required by the target service.
C:Workload identity federation reduces dependence on persistent credentials for Azure deployment. This would address a different situation, such as: A GitHub Actions release stores a long-lived Azure service principal password in repository secrets for every deployment. In the present case, the most directly relevant principle is: Path filters must include shared dependencies required by the target service. The crucial distinction is: Path filters must include shared dependencies required by the target service.