Microsoft AZ-400 Practice Test 27
Question 260
A Microsoft DevOps team is addressing: Operators modify a production firewall directly, but the Terraform plan assumes its prior values remain in place. Which TWO complementary actions should be taken? Select TWO answers.
- Inspect provider refresh results, plan drift and authorized manual changes.
- Inspect backend settings, state access policy, encryption and concurrent writes.
- Run governed drift detection and reconcile approved changes through IaC.
- Inspect template inputs, source history, Key Vault access and deployment output.
- Pass verified immutable image identifiers through a controlled IaC deployment interface.
Explanation
Correct Answers
A:Inspect provider refresh results, plan drift and authorized manual changes. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Run governed drift detection and reconcile approved changes through IaC. Together they address: Desired state must be reconciled with real infrastructure before applying further changes.
C:Run governed drift detection and reconcile approved changes through IaC. This supplies the controlled implementation needed for the scenario. Its complementary step is: Inspect provider refresh results, plan drift and authorized manual changes. Together they address: Desired state must be reconciled with real infrastructure before applying further changes.
Incorrect Answers
B:Inspect backend settings, state access policy, encryption and concurrent writes. This concerns a different DevOps situation: A Terraform workflow stores its state file in an unencrypted shared file share accessible to all developers. This case instead requires both a targeted investigation (Inspect provider refresh results, plan drift and authorized manual changes.) and a controlled change (Run governed drift detection and reconcile approved changes through IaC.).
D:Inspect template inputs, source history, Key Vault access and deployment output. This concerns a different DevOps situation: A Bicep parameter file stores database administrator passwords in plaintext committed to Git. This case instead requires both a targeted investigation (Inspect provider refresh results, plan drift and authorized manual changes.) and a controlled change (Run governed drift detection and reconcile approved changes through IaC.).
E:Pass verified immutable image identifiers through a controlled IaC deployment interface. This concerns a different DevOps situation: Application images are deployed manually after infra provisioning and the deployed image tag is not recorded in Bicep or the release pipeline. This case instead requires both a targeted investigation (Inspect provider refresh results, plan drift and authorized manual changes.) and a controlled change (Run governed drift detection and reconcile approved changes through IaC.).
Question 261
Before changing the pipeline or service, engineers find: A team overwrites the same image tag in Azure Container Registry for every build and loses reproducible deployment history. Which evidence should the engineer inspect FIRST?
- Inspect package sources, feed permissions, dependency versions and build logs.
- Inspect artifact store versioning, write policy, source SHA and release logs.
- Inspect package-lock metadata, dependency tree, registry provenance and update policy.
- Inspect ACR manifests, tag mutation rights, deployment records and source mapping.
Explanation
Correct Answer
D:Inspect ACR manifests, tag mutation rights, deployment records and source mapping. This directly checks the uncertain behavior or control before changing production. Release images should be identified by immutable digests or protected version tags. The resulting targeted action is: Promote and deploy verified image digests with approved version labels.
Incorrect Answers
A: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 ACR manifests, tag mutation rights, deployment records and source mapping. The crucial distinction is: Release images should be identified by immutable digests or protected version tags.
B:Inspect artifact store versioning, write policy, source SHA and release logs. This would address a different situation, such as: A build pipeline uploads a ZIP under a stable filename and a later build overwrites it before deployment. In the present case, the most directly relevant evidence is: Inspect ACR manifests, tag mutation rights, deployment records and source mapping. The crucial distinction is: Release images should be identified by immutable digests or protected version tags.
C:Inspect package-lock metadata, dependency tree, registry provenance and update policy. This would address a different situation, such as: A Node application pins a top-level package but a transitive dependency introduces an unreviewed major behavior change. In the present case, the most directly relevant evidence is: Inspect ACR manifests, tag mutation rights, deployment records and source mapping. The crucial distinction is: Release images should be identified by immutable digests or protected version tags.
Question 262
A Microsoft DevOps team is addressing: Azure Boards reports near-zero cycle time because teams move stories to Active only when coding is almost finished. Which TWO complementary actions should be taken? Select TWO answers.
- Define and enforce meaningful Active and Done transitions in the team's process.
- Inspect workflow states, audit logs, start-of-work criteria and board queries.
- Inspect commit timestamps, deployment records, service ownership and calculation filters.
- Instrument pipeline stage durations and track queue waiting separately from execution.
- Gather representative developer feedback and combine it with observed flow telemetry.
Explanation
Correct Answers
A:Define and enforce meaningful Active and Done transitions in the team's process. This supplies the controlled implementation needed for the scenario. Its complementary step is: Inspect workflow states, audit logs, start-of-work criteria and board queries. Together they address: Flow metrics depend on consistent state-transition definitions and truthful process data.
B:Inspect workflow states, audit logs, start-of-work criteria and board queries. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Define and enforce meaningful Active and Done transitions in the team's process. Together they address: Flow metrics depend on consistent state-transition definitions and truthful process data.
Incorrect Answers
C:Inspect commit timestamps, deployment records, service ownership and calculation filters. 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 (Inspect workflow states, audit logs, start-of-work criteria and board queries.) and a controlled change (Define and enforce meaningful Active and Done transitions in the team's process.).
D:Instrument pipeline stage durations and track queue waiting separately from execution. This concerns a different DevOps situation: A pipeline takes 50 minutes, but dashboard owners cannot distinguish runner queue delays from actual build execution. This case instead requires both a targeted investigation (Inspect workflow states, audit logs, start-of-work criteria and board queries.) and a controlled change (Define and enforce meaningful Active and Done transitions in the team's process.).
E:Gather representative developer feedback and combine it with observed flow telemetry. This concerns a different DevOps situation: A team reports excellent developer experience based only on responses from its three most active maintainers. This case instead requires both a targeted investigation (Inspect workflow states, audit logs, start-of-work criteria and board queries.) and a controlled change (Define and enforce meaningful Active and Done transitions in the team's process.).
Question 263
An Azure DevOps engineering team evaluates this condition: An approval gate makes a release appear to take two hours, but actual deployment work takes five minutes. Which DevOps principle BEST explains the underlying weakness?
- Duration analysis should distinguish human wait stages and task execution bottlenecks.
- Pipeline resource references should bind to intended verified source and build run.
- Artifact retention needs business-approved rollback and forensic windows.
- Pipeline job dependencies should parallelize independent work when capacity permits.
Explanation
Correct Answer
A:Duration analysis should distinguish human wait stages and task execution bottlenecks. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Inspect run timelines, environment approval events and task durations. An appropriate controlled response is: Report approval wait separately and optimize only the relevant bottleneck.
Incorrect Answers
B:Pipeline resource references should bind to intended verified source and build run. This would address a different situation, such as: A production stage sometimes downloads an artifact from a different branch due to an ambiguous pipeline resource definition. In the present case, the most directly relevant principle is: Duration analysis should distinguish human wait stages and task execution bottlenecks. The crucial distinction is: Duration analysis should distinguish human wait stages and task execution bottlenecks.
C: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: Duration analysis should distinguish human wait stages and task execution bottlenecks. The crucial distinction is: Duration analysis should distinguish human wait stages and task execution bottlenecks.
D:Pipeline job dependencies should parallelize independent work when capacity permits. 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 principle is: Duration analysis should distinguish human wait stages and task execution bottlenecks. The crucial distinction is: Duration analysis should distinguish human wait stages and task execution bottlenecks.
Question 264
An Azure DevOps engineering team evaluates this condition: A large repository launches 100 independent test jobs though the organization owns only 10 paid parallel agent slots. Which DevOps principle BEST explains the underlying weakness?
- Concurrent deployments require serialization or controlled exclusive access to shared environments.
- Matrix job strategies can validate supported platforms from one pipeline definition.
- Pipeline parallelism should match resource quotas and job critical paths.
- YAML stage dependencies should express the actual required job order.
Explanation
Correct Answer
C:Pipeline parallelism should match resource quotas and job critical paths. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Inspect queue times, licensing capacity, job dependency graph and build duration. An appropriate controlled response is: Optimize test partitions and concurrency to fit approved parallel job capacity.
Incorrect Answers
A:Concurrent deployments require serialization or controlled exclusive access to shared environments. 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 principle is: Pipeline parallelism should match resource quotas and job critical paths. The crucial distinction is: Pipeline parallelism should match resource quotas and job critical paths.
B:Matrix job strategies can validate supported platforms from one pipeline definition. This would address a different situation, such as: A cross-platform CLI is built only on Windows and fails later when customers run it on Linux. In the present case, the most directly relevant principle is: Pipeline parallelism should match resource quotas and job critical paths. The crucial distinction is: Pipeline parallelism should match resource quotas and job critical paths.
D:YAML stage dependencies should express the actual required job order. This would address a different situation, such as: A deployment stage starts before the packaging stage publishes an artifact because stages are configured independently. In the present case, the most directly relevant principle is: Pipeline parallelism should match resource quotas and job critical paths. The crucial distinction is: Pipeline parallelism should match resource quotas and job critical paths.
Question 265
Before changing the pipeline or service, engineers find: A protected mainline accepts pull requests before a required unit test suite finishes, causing broken packages. Which evidence should the engineer inspect FIRST?
- Inspect parallel execution order, shared fixtures, timing and test retry patterns.
- Review process exit codes, PublishTestResults task settings and test XML files.
- Review PR check policies, test job dependencies and build result timing.
- Inspect issue severity, gate criteria, exception owners and evidence attachments.
Explanation
Correct Answer
C:Review PR check policies, test job dependencies and build result timing. This directly checks the uncertain behavior or control before changing production. Unit test gates should complete successfully against the proposed change before merge. The resulting targeted action is: Require verified unit test checks as part of protected pull request policy.
Incorrect Answers
A:Inspect parallel execution order, shared fixtures, timing and test retry patterns. This would address a different situation, such as: A nightly integration suite fails intermittently because test data is shared between parallel jobs. In the present case, the most directly relevant evidence is: Review PR check policies, test job dependencies and build result timing. The crucial distinction is: Unit test gates should complete successfully against the proposed change before merge.
B:Review process exit codes, PublishTestResults task settings and test XML files. 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 evidence is: Review PR check policies, test job dependencies and build result timing. The crucial distinction is: Unit test gates should complete successfully against the proposed change before merge.
D:Inspect issue severity, gate criteria, exception owners and evidence attachments. This would address a different situation, such as: A deployment receives approval even when a required penetration-test issue remains unresolved and unaccepted. In the present case, the most directly relevant evidence is: Review PR check policies, test job dependencies and build result timing. The crucial distinction is: Unit test gates should complete successfully against the proposed change before merge.
Question 266
Before changing the pipeline or service, engineers find: A team cannot tell when a pull request is waiting for security approval versus failed tests. Which evidence should the engineer inspect FIRST?
- Review parent features, dependency links, delivery plans and blocked work items.
- Inspect pull request check states, required reviewers, labels and notification settings.
- Inspect production incident links, bug work items, affected commits and test case mappings.
- Inspect Azure Boards development links, commit conventions and pipeline release metadata.
Explanation
Correct Answer
B:Inspect pull request check states, required reviewers, labels and notification settings. This directly checks the uncertain behavior or control before changing production. Delivery flow status must distinguish actionable approval, test and dependency bottlenecks. The resulting targeted action is: Configure meaningful status checks, reviewer ownership and notification routing.
Incorrect Answers
A:Review parent features, dependency links, delivery plans and blocked work items. This would address a different situation, such as: A platform dependency blocks three application teams, but each Azure Boards team tracks a separate unrelated task. In the present case, the most directly relevant evidence is: Inspect pull request check states, required reviewers, labels and notification settings. The crucial distinction is: Delivery flow status must distinguish actionable approval, test and dependency bottlenecks.
C:Inspect production incident links, bug work items, affected commits and test case mappings. This would address a different situation, such as: Several production defects were fixed, but QA cannot determine which automated test gaps allowed them to escape. In the present case, the most directly relevant evidence is: Inspect pull request check states, required reviewers, labels and notification settings. The crucial distinction is: Delivery flow status must distinguish actionable approval, test and dependency bottlenecks.
D:Inspect Azure Boards development links, commit conventions and pipeline release metadata. This would address a different situation, such as: Azure Boards shows completed user stories, but there is no way to identify the commits and deployments delivering each story. In the present case, the most directly relevant evidence is: Inspect pull request check states, required reviewers, labels and notification settings. The crucial distinction is: Delivery flow status must distinguish actionable approval, test and dependency bottlenecks.
Question 267
After implementing the change, the team verifies: Several production defects were fixed, but QA cannot determine which automated test gaps allowed them to escape. Which result would BEST demonstrate that the issue is corrected?
- A sampled escaped defect traces to an added regression test and successful validation.
- The shared platform dependency appears before downstream releases in an integrated plan.
- A failed sample release leaves the linked issue open and alerts its responsible team.
- A sample released story traces to its pull request, verified build and target deployment.
Explanation
Correct Answer
A:A sampled escaped defect traces to an added regression test and successful validation. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Relate production bugs to failing or missing tests and preventive backlog work. Defect traceability should connect incidents to code, test coverage and prevention work.
Incorrect Answers
B:The shared platform dependency appears before downstream releases in an integrated plan. This would address a different situation, such as: A platform dependency blocks three application teams, but each Azure Boards team tracks a separate unrelated task. In the present case, the most directly relevant verification is: A sampled escaped defect traces to an added regression test and successful validation. The crucial distinction is: Defect traceability should connect incidents to code, test coverage and prevention work.
C:A failed sample release leaves the linked issue open and alerts its responsible team. This would address a different situation, such as: A deployment job fails but the failure is not associated with the GitHub issue that requested the release. In the present case, the most directly relevant verification is: A sampled escaped defect traces to an added regression test and successful validation. The crucial distinction is: Defect traceability should connect incidents to code, test coverage and prevention work.
D:A sample released story traces to its pull request, verified build and target deployment. This would address a different situation, such as: Azure Boards shows completed user stories, but there is no way to identify the commits and deployments delivering each story. In the present case, the most directly relevant verification is: A sampled escaped defect traces to an added regression test and successful validation. The crucial distinction is: Defect traceability should connect incidents to code, test coverage and prevention work.
Question 268
The DevOps team must resolve this situation: A security vulnerability needs same-day correction but the organization’s normal three-week release train blocks all fixes. Which engineering action is MOST appropriate?
- Define a limited hotfix workflow with priority testing, accountable approval and later backport.
- Use chart lint/templates, guarded upgrade behavior and supported rollback to a tested revision.
- Set appropriate maxUnavailable/maxSurge and validate readiness during rollout.
- Use governed secret reference/rotation patterns with staged compatibility testing.
Explanation
Correct Answer
A:Define a limited hotfix workflow with priority testing, accountable approval and later backport. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: A test urgent fix reaches production through review and is merged to maintained branches. A governed hotfix path can accelerate release while retaining minimum essential quality and traceability.
Incorrect Answers
B:Use chart lint/templates, guarded upgrade behavior and supported rollback to a tested revision. 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 engineering action is: Define a limited hotfix workflow with priority testing, accountable approval and later backport. The crucial distinction is: A governed hotfix path can accelerate release while retaining minimum essential quality and traceability.
C:Set appropriate maxUnavailable/maxSurge and validate readiness during rollout. This would address a different situation, such as: An AKS update removes every API pod simultaneously because maxUnavailable equals the full replica count. In the present case, the most directly relevant engineering action is: Define a limited hotfix workflow with priority testing, accountable approval and later backport. The crucial distinction is: A governed hotfix path can accelerate release while retaining minimum essential quality and traceability.
D:Use governed secret reference/rotation patterns with staged compatibility testing. This would address a different situation, such as: A production release references an unversioned shared secret and breaks when a different team rotates it mid-deployment. In the present case, the most directly relevant engineering action is: Define a limited hotfix workflow with priority testing, accountable approval and later backport. The crucial distinction is: A governed hotfix path can accelerate release while retaining minimum essential quality and traceability.
Question 269
An Azure DevOps engineering team evaluates this condition: Critical production deployment failures send only email to an unattended shared mailbox. Which DevOps principle BEST explains the underlying weakness?
- API documentation must be published from the approved version and checked for compatibility.
- Cross-tool event integrations need idempotent handling and observability.
- Architectural knowledge needs attributable change history and accountable reviewer approval.
- Notifications should reach accountable responders through monitored channels with useful context.
Explanation
Correct Answer
D:Notifications should reach accountable responders through monitored channels with useful context. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Review pipeline notification subscriptions, Teams integration, owners and incident escalation. An appropriate controlled response is: Route deployment and failure events to the approved Microsoft Teams operations channel.
Incorrect Answers
A:API documentation must be published from the approved version and checked for compatibility. This would address a different situation, such as: A versioned REST API deploys successfully but its consumer documentation still lists removed fields. In the present case, the most directly relevant principle is: Notifications should reach accountable responders through monitored channels with useful context. The crucial distinction is: Notifications should reach accountable responders through monitored channels with useful context.
B:Cross-tool event integrations need idempotent handling and observability. This would address a different situation, such as: An Azure DevOps webhook creates duplicate change tickets whenever the receiving service retries a timeout. In the present case, the most directly relevant principle is: Notifications should reach accountable responders through monitored channels with useful context. The crucial distinction is: Notifications should reach accountable responders through monitored channels with useful context.
C:Architectural knowledge needs attributable change history and accountable reviewer approval. This would address a different situation, such as: An architecture decision record is stored in a shared folder where anyone can overwrite approved design rationale without review. In the present case, the most directly relevant principle is: Notifications should reach accountable responders through monitored channels with useful context. The crucial distinction is: Notifications should reach accountable responders through monitored channels with useful context.
Question 270
The DevOps team must resolve this situation: A library's prerelease build appears in the same feed view consumed by production services and breaks compatibility. Which engineering action is MOST appropriate?
- Promote and deploy verified image digests with approved version labels.
- Publish versioned internal packages to Azure Artifacts and grant scoped pipeline feed access.
- Publish an appropriate major version with migration guidance and compatibility gates.
- Use reviewed package promotion into stable feed views before production consumption.
Explanation
Correct Answer
D:Use reviewed package promotion into stable feed views before production consumption. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: Production restores an approved stable version while prerelease candidates stay isolated. Package views can separate promoted stable packages from unapproved candidates.
Incorrect Answers
A:Promote and deploy verified image digests with approved version labels. 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 engineering action is: Use reviewed package promotion into stable feed views before production consumption. The crucial distinction is: Package views can separate promoted stable packages from unapproved candidates.
B:Publish versioned internal packages to Azure Artifacts and grant scoped pipeline feed access. 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 engineering action is: Use reviewed package promotion into stable feed views before production consumption. The crucial distinction is: Package views can separate promoted stable packages from unapproved candidates.
C:Publish an appropriate major version with migration guidance and compatibility gates. 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 engineering action is: Use reviewed package promotion into stable feed views before production consumption. The crucial distinction is: Package views can separate promoted stable packages from unapproved candidates.