Microsoft AZ-400 Practice Test 32
Question 310
An Azure DevOps engineering team evaluates this condition: A deployment pipeline uses complete mode unintentionally and deletes resources omitted from an updated ARM template. Which DevOps principle BEST explains the underlying weakness?
- Deployment mode and scope determine whether absent resources may be removed.
- Infrastructure and application delivery need traceable version handoff without mutable assumptions.
- Secrets should be supplied through protected identity and secret stores rather than committed IaC inputs.
- Guest desired-state policy should be measurable and enforceable across managed VMs.
Explanation
Correct Answer
A:Deployment mode and scope determine whether absent resources may be removed. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Inspect template deployment mode, resource group contents, what-if output and retention requirements. An appropriate controlled response is: Use a safe scoped deployment strategy with reviewed change previews and deletion protections.
Incorrect Answers
B: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: Deployment mode and scope determine whether absent resources may be removed. The crucial distinction is: Deployment mode and scope determine whether absent resources may be removed.
C:Secrets should be supplied through protected identity and secret stores rather than committed IaC inputs. 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 principle is: Deployment mode and scope determine whether absent resources may be removed. The crucial distinction is: Deployment mode and scope determine whether absent resources may be removed.
D:Guest desired-state policy should be measurable and enforceable across managed VMs. 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 principle is: Deployment mode and scope determine whether absent resources may be removed. The crucial distinction is: Deployment mode and scope determine whether absent resources may be removed.
Question 311
An Azure DevOps engineering team evaluates this condition: A deployment job fails but the failure is not associated with the GitHub issue that requested the release. Which DevOps principle BEST explains the underlying weakness?
- Closed-loop delivery needs automated status updates connected to the requesting work.
- Shared delivery dependencies must be visible across team backlogs with responsible ownership.
- Feedback must enter an owned trackable workflow with prioritization and resolution evidence.
- Delivery flow status must distinguish actionable approval, test and dependency bottlenecks.
Explanation
Correct Answer
A:Closed-loop delivery needs automated status updates connected to the requesting work. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Review workflow run identities, issue references, failure events and notification rules. An appropriate controlled response is: Update related GitHub Issues from protected workflow events with release status and error context.
Incorrect Answers
B:Shared delivery dependencies must be visible across team backlogs with responsible ownership. 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 principle is: Closed-loop delivery needs automated status updates connected to the requesting work. The crucial distinction is: Closed-loop delivery needs automated status updates connected to the requesting work.
C:Feedback must enter an owned trackable workflow with prioritization and resolution evidence. This would address a different situation, such as: Customer-reported bugs arrive in chat messages and are never consistently recorded for the development team. In the present case, the most directly relevant principle is: Closed-loop delivery needs automated status updates connected to the requesting work. The crucial distinction is: Closed-loop delivery needs automated status updates connected to the requesting work.
D:Delivery flow status must distinguish actionable approval, test and dependency bottlenecks. This would address a different situation, such as: A team cannot tell when a pull request is waiting for security approval versus failed tests. In the present case, the most directly relevant principle is: Closed-loop delivery needs automated status updates connected to the requesting work. The crucial distinction is: Closed-loop delivery needs automated status updates connected to the requesting work.
Question 312
The DevOps team must resolve this situation: An operations dashboard reports recovery time ending when a VM restarts, although customer transactions remain unavailable. Which engineering action is MOST appropriate?
- Calculate lead time for eligible service changes from commit to actual production deployment.
- Build service-segmented queries and complementary stability metrics.
- Define recovery completion using service-level restoration and compute the metric accordingly.
- Instrument pipeline stage durations and track queue waiting separately from execution.
Explanation
Correct Answer
C:Define recovery completion using service-level restoration and compute the metric accordingly. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: The dashboard includes the interval when infrastructure was healthy but checkout failed. Time to restore service should reflect verified business-service recovery.
Incorrect Answers
A:Calculate lead time for eligible service changes from commit to actual production deployment. This would address a different situation, such as: A dashboard measures deployment frequency but calculates lead time from the first commit in an unrelated repository. In the present case, the most directly relevant engineering action is: Define recovery completion using service-level restoration and compute the metric accordingly. The crucial distinction is: Time to restore service should reflect verified business-service recovery.
B:Build service-segmented queries and complementary stability metrics. 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 engineering action is: Define recovery completion using service-level restoration and compute the metric accordingly. The crucial distinction is: Time to restore service should reflect verified business-service recovery.
D:Instrument pipeline stage durations and track queue waiting separately from execution. This would address a different situation, such as: A pipeline takes 50 minutes, but dashboard owners cannot distinguish runner queue delays from actual build execution. In the present case, the most directly relevant engineering action is: Define recovery completion using service-level restoration and compute the metric accordingly. The crucial distinction is: Time to restore service should reflect verified business-service recovery.
Question 313
An Azure DevOps engineering team evaluates this condition: A release detects elevated errors but cannot roll back because the prior verified package was deleted. Which DevOps principle BEST explains the underlying weakness?
- Deployment slots support staged verification and controlled production swaps where supported.
- Feature flag control separates deployment from governed feature activation.
- Deployment strategy must preserve known-good artifacts and tested rollback paths.
- Database deployment scripts should be repeatable or safely versioned with migration state.
Explanation
Correct Answer
C:Deployment strategy must preserve known-good artifacts and tested rollback paths. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Review artifact retention, release manifest, service health signals and restoration test. An appropriate controlled response is: Retain a protected previous release and automate monitored rollback upon failure.
Incorrect Answers
A:Deployment slots support staged verification and controlled production swaps where supported. This would address a different situation, such as: A web application must deploy without interruption, but direct production updates restart every active instance. In the present case, the most directly relevant principle is: Deployment strategy must preserve known-good artifacts and tested rollback paths. The crucial distinction is: Deployment strategy must preserve known-good artifacts and tested rollback paths.
B:Feature flag control separates deployment from governed feature activation. This would address a different situation, such as: A half-finished payment feature accidentally activates immediately when its code merges into main. In the present case, the most directly relevant principle is: Deployment strategy must preserve known-good artifacts and tested rollback paths. The crucial distinction is: Deployment strategy must preserve known-good artifacts and tested rollback paths.
D:Database deployment scripts should be repeatable or safely versioned with migration state. This would address a different situation, such as: A release database task retries after a timeout and creates duplicate schema objects, causing subsequent deployments to fail. In the present case, the most directly relevant principle is: Deployment strategy must preserve known-good artifacts and tested rollback paths. The crucial distinction is: Deployment strategy must preserve known-good artifacts and tested rollback paths.
Question 314
An Azure DevOps engineering team evaluates this condition: A new release increases HTTP 500s, but the team cannot match failures to deployment timestamps. Which DevOps principle BEST explains the underlying weakness?
- Correlated tracing requires joining telemetry using compatible operation identifiers.
- Telemetry sampling strategy must preserve adequate signal for critical failures.
- Operational telemetry should correlate errors with release markers and change events.
- Missing data must not be interpreted as proof of a healthy resource.
Explanation
Correct Answer
C:Operational telemetry should correlate errors with release markers and change events. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Compare application failures, deployment annotations, version IDs and request telemetry. An appropriate controlled response is: Add release annotations and traceable version properties to Application Insights.
Incorrect Answers
A:Correlated tracing requires joining telemetry using compatible operation identifiers. This would address a different situation, such as: Application requests and dependency spans share an operation ID but engineers compare two unrelated totals instead of correlating affected calls. In the present case, the most directly relevant principle is: Operational telemetry should correlate errors with release markers and change events. The crucial distinction is: Operational telemetry should correlate errors with release markers and change events.
B:Telemetry sampling strategy must preserve adequate signal for critical failures. This would address a different situation, such as: A low-volume payment failure disappears from diagnostic traces because sampling drops all relevant requests. In the present case, the most directly relevant principle is: Operational telemetry should correlate errors with release markers and change events. The crucial distinction is: Operational telemetry should correlate errors with release markers and change events.
D: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: Operational telemetry should correlate errors with release markers and change events. The crucial distinction is: Operational telemetry should correlate errors with release markers and change events.
Question 315
Before changing the pipeline or service, engineers find: A project enables Git LFS but build agents repeatedly fail because downloads exceed the organization's storage bandwidth quota. Which evidence should the engineer inspect FIRST?
- Inspect historical blobs, generated folders, .gitignore rules and clone sizes.
- Inspect project access groups, repository ACLs, token grants and vendor responsibilities.
- Inspect superproject gitlinks, submodule branch settings and build input records.
- Inspect LFS usage, pointer resolution, CI checkout settings and quota alerts.
Explanation
Correct Answer
D:Inspect LFS usage, pointer resolution, CI checkout settings and quota alerts. This directly checks the uncertain behavior or control before changing production. Repository strategies must monitor large-file storage limits and build consumption patterns. The resulting targeted action is: Govern large-file retention, selective downloads and authorized capacity increases.
Incorrect Answers
A:Inspect historical blobs, generated folders,.gitignore rules and clone sizes. This would address a different situation, such as: A project accidentally committed generated build outputs and its repository history grew by several gigabytes. In the present case, the most directly relevant evidence is: Inspect LFS usage, pointer resolution, CI checkout settings and quota alerts. The crucial distinction is: Repository strategies must monitor large-file storage limits and build consumption patterns.
B: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: Inspect LFS usage, pointer resolution, CI checkout settings and quota alerts. The crucial distinction is: Repository strategies must monitor large-file storage limits and build consumption patterns.
C:Inspect superproject gitlinks, submodule branch settings and build input records. This would address a different situation, such as: A build references a Git submodule by moving branch and occasionally acquires incompatible dependency changes. In the present case, the most directly relevant evidence is: Inspect LFS usage, pointer resolution, CI checkout settings and quota alerts. The crucial distinction is: Repository strategies must monitor large-file storage limits and build consumption patterns.
Question 316
After implementing the change, the team verifies: A database credential is removed from the latest Git commit but remains visible in old revisions. Which result would BEST demonstrate that the issue is corrected?
- The old credential is invalid and authorized scans find no active secret exposure.
- A representative CI job retrieves necessary LFS objects within quota and reports failures.
- The target service builds correctly with only its required repository content.
- The vendor can run authorized tests but cannot change protected repository settings.
Explanation
Correct Answer
A:The old credential is invalid and authorized scans find no active secret exposure. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Revoke or rotate the credential, restrict exposure and perform controlled history remediation if necessary. Removing a secret from the latest tree does not revoke credentials or erase history.
Incorrect Answers
B:A representative CI job retrieves necessary LFS objects within quota and reports failures. 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 verification is: The old credential is invalid and authorized scans find no active secret exposure. The crucial distinction is: Removing a secret from the latest tree does not revoke credentials or erase history.
C:The target service builds correctly with only its required repository content. This would address a different situation, such as: A developer needs one service from a huge monorepo, but each checkout transfers every unrelated project and binary. In the present case, the most directly relevant verification is: The old credential is invalid and authorized scans find no active secret exposure. The crucial distinction is: Removing a secret from the latest tree does not revoke credentials or erase history.
D:The vendor can run authorized tests but cannot change protected repository settings. 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 verification is: The old credential is invalid and authorized scans find no active secret exposure. The crucial distinction is: Removing a secret from the latest tree does not revoke credentials or erase history.
Question 317
A Microsoft DevOps team is addressing: A shared variable group contains production connection strings, and every development pipeline can read them. Which TWO complementary actions should be taken? Select TWO answers.
- Migrate the service connection to supported workload identity federation with scoped access.
- Create a controlled matrix over required operating systems and runtime versions.
- Separate production variables and restrict group use to approved production pipelines.
- Restrict runner access to trusted workflows and use ephemeral isolated runners for sensitive jobs.
- Inspect library permissions, pipeline authorization, variable source and consumer identities.
Explanation
Correct Answers
C:Separate production variables and restrict group use to approved production pipelines. This supplies the controlled implementation needed for the scenario. Its complementary step is: Inspect library permissions, pipeline authorization, variable source and consumer identities. Together they address: Variable groups must have environment-specific authorization and secret access controls.
E:Inspect library permissions, pipeline authorization, variable source and consumer identities. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Separate production variables and restrict group use to approved production pipelines. Together they address: Variable groups must have environment-specific authorization and secret access controls.
Incorrect Answers
A:Migrate the service connection to supported workload identity federation with scoped access. This concerns a different DevOps situation: An Azure DevOps pipeline's Azure Resource Manager service connection fails each quarter when its client secret expires. This case instead requires both a targeted investigation (Inspect library permissions, pipeline authorization, variable source and consumer identities.) and a controlled change (Separate production variables and restrict group use to approved production pipelines.).
B:Create a controlled matrix over required operating systems and runtime versions. This concerns a different DevOps situation: A cross-platform CLI is built only on Windows and fails later when customers run it on Linux. This case instead requires both a targeted investigation (Inspect library permissions, pipeline authorization, variable source and consumer identities.) and a controlled change (Separate production variables and restrict group use to approved production pipelines.).
D:Restrict runner access to trusted workflows and use ephemeral isolated runners for sensitive jobs. This concerns a different DevOps situation: A GitHub self-hosted runner accepts workflows from untrusted forks and shares its workspace with production credentials. This case instead requires both a targeted investigation (Inspect library permissions, pipeline authorization, variable source and consumer identities.) and a controlled change (Separate production variables and restrict group use to approved production pipelines.).
Question 318
The DevOps team must resolve this situation: Production pipeline deployments fail overnight, but engineers notice only when checking the Azure DevOps portal the next morning. Which engineering action is MOST appropriate?
- Enable an approved connection monitor for the critical private network path.
- Configure supported VM Insights or guest-memory collection and meaningful alerts.
- Instrument supported Application Insights distributed tracing with context propagation.
- Configure monitored failure notifications and an actionable operations escalation path.
Explanation
Correct Answer
D:Configure monitored failure notifications and an actionable operations escalation path. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: An intentionally failed deployment reaches the active on-call team with run identity. Operational monitoring should route significant pipeline failures to accountable responders.
Incorrect Answers
A:Enable an approved connection monitor for the critical private network path. 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 engineering action is: Configure monitored failure notifications and an actionable operations escalation path. The crucial distinction is: Operational monitoring should route significant pipeline failures to accountable responders.
B:Configure supported VM Insights or guest-memory collection and meaningful alerts. This would address a different situation, such as: A production VM experiences OOM kills while CPU remains normal and default platform graphs show no guest memory usage. In the present case, the most directly relevant engineering action is: Configure monitored failure notifications and an actionable operations escalation path. The crucial distinction is: Operational monitoring should route significant pipeline failures to accountable responders.
C:Instrument supported Application Insights distributed tracing with context propagation. This would address a different situation, such as: A shopping application logs HTTP failures but does not show which downstream payment call caused the response delay. In the present case, the most directly relevant engineering action is: Configure monitored failure notifications and an actionable operations escalation path. The crucial distinction is: Operational monitoring should route significant pipeline failures to accountable responders.
Question 319
An Azure DevOps engineering team evaluates this condition: A nightly integration suite fails intermittently because test data is shared between parallel jobs. Which DevOps principle BEST explains the underlying weakness?
- Reliable tests need deterministic data isolation and controlled concurrency.
- Release validation should test critical business journeys rather than only process liveness.
- Testing pipelines must avoid exposing credentials while preserving useful diagnostics.
- Release gates must evaluate approved risk exceptions and mandatory security criteria.
Explanation
Correct Answer
A:Reliable tests need deterministic data isolation and controlled concurrency. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Inspect parallel execution order, shared fixtures, timing and test retry patterns. An appropriate controlled response is: Give parallel tests isolated data and synchronize genuine shared dependencies.
Incorrect Answers
B:Release validation should test critical business journeys rather than only process liveness. 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 principle is: Reliable tests need deterministic data isolation and controlled concurrency. The crucial distinction is: Reliable tests need deterministic data isolation and controlled concurrency.
C:Testing pipelines must avoid exposing credentials while preserving useful diagnostics. This would address a different situation, such as: A test task writes its service principal secret into verbose logs on every failing run. In the present case, the most directly relevant principle is: Reliable tests need deterministic data isolation and controlled concurrency. The crucial distinction is: Reliable tests need deterministic data isolation and controlled concurrency.
D:Release gates must evaluate approved risk exceptions and mandatory security criteria. 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 principle is: Reliable tests need deterministic data isolation and controlled concurrency. The crucial distinction is: Reliable tests need deterministic data isolation and controlled concurrency.
Question 320
The DevOps team must resolve this situation: A pipeline takes 50 minutes, but dashboard owners cannot distinguish runner queue delays from actual build execution. Which engineering action is MOST appropriate?
- Publish excluded and flaky test counts with test trends and actionable owner assignments.
- Calculate lead time for eligible service changes from commit to actual production deployment.
- Instrument pipeline stage durations and track queue waiting separately from execution.
- Build service-segmented queries and complementary stability metrics.
Explanation
Correct Answer
C:Instrument pipeline stage durations and track queue waiting separately from execution. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: A test job delayed by runner scarcity shows queue time rather than slow compilation. Delivery optimization needs separate measurements for queue, execution and waiting stages.
Incorrect Answers
A:Publish excluded and flaky test counts with test trends and actionable owner assignments. This would address a different situation, such as: A build dashboard reports 100% passing tests by excluding quarantined integration suites without disclosing the exclusions. In the present case, the most directly relevant engineering action is: Instrument pipeline stage durations and track queue waiting separately from execution. The crucial distinction is: Delivery optimization needs separate measurements for queue, execution and waiting stages.
B:Calculate lead time for eligible service changes from commit to actual production deployment. This would address a different situation, such as: A dashboard measures deployment frequency but calculates lead time from the first commit in an unrelated repository. In the present case, the most directly relevant engineering action is: Instrument pipeline stage durations and track queue waiting separately from execution. The crucial distinction is: Delivery optimization needs separate measurements for queue, execution and waiting stages.
D:Build service-segmented queries and complementary stability metrics. 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 engineering action is: Instrument pipeline stage durations and track queue waiting separately from execution. The crucial distinction is: Delivery optimization needs separate measurements for queue, execution and waiting stages.