Microsoft AZ-400 Practice Test 74
Question 730
A Microsoft DevOps team is addressing: A self-hosted agent fails after months because workspace and Docker layer caches exhaust disk space. Which TWO complementary actions should be taken? Select TWO answers.
- Inspect free disk, workspace lifecycle, container images and failure records.
- Pin or explicitly install supported toolchains and test migrations before image retirement.
- Review cache key configuration, lockfile hash, package restore logs and unexpected results.
- Implement safe workspace cleanup and monitored cache eviction consistent with rollback needs.
- Inspect run timelines, environment approval events and task durations.
Explanation
Correct Answers
A:Inspect free disk, workspace lifecycle, container images and failure records. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Implement safe workspace cleanup and monitored cache eviction consistent with rollback needs. Together they address: Self-hosted agent maintenance requires bounded workspace cleanup and cache retention.
D:Implement safe workspace cleanup and monitored cache eviction consistent with rollback needs. This supplies the controlled implementation needed for the scenario. Its complementary step is: Inspect free disk, workspace lifecycle, container images and failure records. Together they address: Self-hosted agent maintenance requires bounded workspace cleanup and cache retention.
Incorrect Answers
B:Pin or explicitly install supported toolchains and test migrations before image retirement. This concerns a different DevOps situation: Builds fail after an Azure Pipelines hosted image update because a legacy runtime was implicitly available before. This case instead requires both a targeted investigation (Inspect free disk, workspace lifecycle, container images and failure records.) and a controlled change (Implement safe workspace cleanup and monitored cache eviction consistent with rollback needs.).
C:Review cache key configuration, lockfile hash, package restore logs and unexpected results. This concerns a different DevOps situation: A pipeline caches packages under one global key even after lockfile changes, causing inconsistent builds. This case instead requires both a targeted investigation (Inspect free disk, workspace lifecycle, container images and failure records.) and a controlled change (Implement safe workspace cleanup and monitored cache eviction consistent with rollback needs.).
E:Inspect run timelines, environment approval events and task durations. This concerns a different DevOps situation: An approval gate makes a release appear to take two hours, but actual deployment work takes five minutes. This case instead requires both a targeted investigation (Inspect free disk, workspace lifecycle, container images and failure records.) and a controlled change (Implement safe workspace cleanup and monitored cache eviction consistent with rollback needs.).
Question 731
An Azure DevOps engineering team evaluates this condition: A production stage sometimes downloads an artifact from a different branch due to an ambiguous pipeline resource definition. Which DevOps principle BEST explains the underlying weakness?
- Pipeline resource references should bind to intended verified source and build run.
- Duration analysis should distinguish human wait stages and task execution bottlenecks.
- Deployment identities should support safe rotation or federation without release downtime.
- Pipeline operational health needs assigned responders and maintained notification routing.
Explanation
Correct Answer
A:Pipeline resource references should bind to intended verified source and build run. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Inspect pipeline resources, branch filters, artifact provenance and run IDs. An appropriate controlled response is: Pin or govern the consumed artifact to the approved pipeline run and branch.
Incorrect Answers
B:Duration analysis should distinguish human wait stages and task execution bottlenecks. This would address a different situation, such as: An approval gate makes a release appear to take two hours, but actual deployment work takes five minutes. In the present case, the most directly relevant principle is: Pipeline resource references should bind to intended verified source and build run. The crucial distinction is: Pipeline resource references should bind to intended verified source and build run.
C:Deployment identities should support safe rotation or federation without release downtime. 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 principle is: Pipeline resource references should bind to intended verified source and build run. The crucial distinction is: Pipeline resource references should bind to intended verified source and build run.
D:Pipeline operational health needs assigned responders and maintained notification routing. This would address a different situation, such as: A pipeline reports repeated deployment failures but no team receives notifications because the original owner left the company. In the present case, the most directly relevant principle is: Pipeline resource references should bind to intended verified source and build run. The crucial distinction is: Pipeline resource references should bind to intended verified source and build run.
Question 732
The DevOps team must resolve this situation: Blob transaction failures increase, but dashboards track only storage account capacity in bytes. Which engineering action is MOST appropriate?
- Configure storage request/error monitoring with service-specific thresholds.
- Enable supported AKS container telemetry with resource labels and actionable alerts.
- Configure insight charts and notifications for failed and slow required workflows.
- Instrument supported Application Insights distributed tracing with context propagation.
Explanation
Correct Answer
A:Configure storage request/error monitoring with service-specific thresholds. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: A simulated failed blob operation is visible despite unchanged storage capacity. Operational monitoring must include service request errors, latency and availability, not just capacity.
Incorrect Answers
B:Enable supported AKS container telemetry with resource labels and actionable alerts. This would address a different situation, such as: AKS pods restart frequently but the team captures only the last running pod's console output. In the present case, the most directly relevant engineering action is: Configure storage request/error monitoring with service-specific thresholds. The crucial distinction is: Operational monitoring must include service request errors, latency and availability, not just capacity.
C:Configure insight charts and notifications for failed and slow required workflows. This would address a different situation, such as: A GitHub project has rising CI failures, but maintainers monitor only total completed workflow counts. In the present case, the most directly relevant engineering action is: Configure storage request/error monitoring with service-specific thresholds. The crucial distinction is: Operational monitoring must include service request errors, latency and availability, not just capacity.
D: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 storage request/error monitoring with service-specific thresholds. The crucial distinction is: Operational monitoring must include service request errors, latency and availability, not just capacity.
Question 733
An Azure DevOps engineering team evaluates this condition: A developer needs one service from a huge monorepo, but each checkout transfers every unrelated project and binary. Which DevOps principle BEST explains the underlying weakness?
- Repository hygiene needs tracked-artifact policy and planned history repair when necessary.
- Repository access should be limited to the minimum collaborator operations.
- Large binary artifacts need purpose-built storage to avoid expanding ordinary Git history.
- Large repositories can use sparse checkout and partial clone to reduce unnecessary working data.
Explanation
Correct Answer
D:Large repositories can use sparse checkout and partial clone to reduce unnecessary working data. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Inspect repository layout, dependency graph, clone filters and build requirements. An appropriate controlled response is: Configure supported sparse checkout or Scalar/partial clone for constrained workflows.
Incorrect Answers
A:Repository hygiene needs tracked-artifact policy and planned history repair when necessary. 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 principle is: Large repositories can use sparse checkout and partial clone to reduce unnecessary working data. The crucial distinction is: Large repositories can use sparse checkout and partial clone to reduce unnecessary working data.
B:Repository access should be limited to the minimum collaborator operations. 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 principle is: Large repositories can use sparse checkout and partial clone to reduce unnecessary working data. The crucial distinction is: Large repositories can use sparse checkout and partial clone to reduce unnecessary working data.
C:Large binary artifacts need purpose-built storage to avoid expanding ordinary Git history. 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 principle is: Large repositories can use sparse checkout and partial clone to reduce unnecessary working data. The crucial distinction is: Large repositories can use sparse checkout and partial clone to reduce unnecessary working data.
Question 734
The DevOps team must resolve this situation: A service builds on a Windows workstation but fails on Linux CI because a source import differs only in filename case. Which engineering action is MOST appropriate?
- Stop tracking generated outputs and plan reviewed history cleanup with team coordination.
- Configure supported sparse checkout or Scalar/partial clone for constrained workflows.
- Normalize names and case-correct imports with cross-platform validation in PR checks.
- Archive the repository or lock write access with audited exception handling.
Explanation
Correct Answer
C:Normalize names and case-correct imports with cross-platform validation in PR checks. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: The same repository commit builds on both the intended Windows and Linux agents. Source control workflows must verify path case and platform consistency.
Incorrect Answers
A:Stop tracking generated outputs and plan reviewed history cleanup with team coordination. 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 engineering action is: Normalize names and case-correct imports with cross-platform validation in PR checks. The crucial distinction is: Source control workflows must verify path case and platform consistency.
B:Configure supported sparse checkout or Scalar/partial clone for constrained workflows. 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 engineering action is: Normalize names and case-correct imports with cross-platform validation in PR checks. The crucial distinction is: Source control workflows must verify path case and platform consistency.
D:Archive the repository or lock write access with audited exception handling. This would address a different situation, such as: An archived security-sensitive repository remains writable by former project members and receives unreviewed commits. In the present case, the most directly relevant engineering action is: Normalize names and case-correct imports with cross-platform validation in PR checks. The crucial distinction is: Source control workflows must verify path case and platform consistency.
Question 735
The DevOps team must resolve this situation: A payment workflow completes an HTTP health check but fails after users submit the checkout form. Which engineering action is MOST appropriate?
- Implement repeatable baseline comparison gates for resource consumption and latency.
- Run supported code scanning on pull requests with risk-appropriate merge gates.
- Add guarded end-to-end UI tests for checkout and payment confirmation.
- Test expand-and-contract schema changes against concurrent old and new application instances.
Explanation
Correct Answer
C:Add guarded end-to-end UI tests for checkout and payment confirmation. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: A deliberately broken checkout fails the test pipeline before deployment. Release validation should test critical business journeys rather than only process liveness.
Incorrect Answers
A:Implement repeatable baseline comparison gates for resource consumption and latency. This would address a different situation, such as: An API's new release increases CPU costs by 60%, but the load test reports green because no baseline exists. In the present case, the most directly relevant engineering action is: Add guarded end-to-end UI tests for checkout and payment confirmation. The crucial distinction is: Release validation should test critical business journeys rather than only process liveness.
B:Run supported code scanning on pull requests with risk-appropriate merge gates. This would address a different situation, such as: A GitHub repository scans vulnerabilities once a month but merges vulnerable code daily. In the present case, the most directly relevant engineering action is: Add guarded end-to-end UI tests for checkout and payment confirmation. The crucial distinction is: Release validation should test critical business journeys rather than only process liveness.
D:Test expand-and-contract schema changes against concurrent old and new application instances. This would address a different situation, such as: A release adds a non-null column while old and new application versions temporarily operate together. In the present case, the most directly relevant engineering action is: Add guarded end-to-end UI tests for checkout and payment confirmation. The crucial distinction is: Release validation should test critical business journeys rather than only process liveness.
Question 736
A Microsoft DevOps team is addressing: Builds fail after an Azure Pipelines hosted image update because a legacy runtime was implicitly available before. Which TWO complementary actions should be taken? Select TWO answers.
- Pin or explicitly install supported toolchains and test migrations before image retirement.
- Pin or govern the consumed artifact to the approved pipeline run and branch.
- Track flaky test metrics and assign root-cause fixes rather than unconditional retries.
- Inspect agent image announcement, demands, SDK versions and task compatibility.
- Compare classic stage approvals with YAML environment checks and service-connection authorization.
Explanation
Correct Answers
A:Pin or explicitly install supported toolchains and test migrations before image retirement. This supplies the controlled implementation needed for the scenario. Its complementary step is: Inspect agent image announcement, demands, SDK versions and task compatibility. Together they address: Pipelines should declare supported tooling instead of depending on incidental agent image contents.
D:Inspect agent image announcement, demands, SDK versions and task compatibility. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Pin or explicitly install supported toolchains and test migrations before image retirement. Together they address: Pipelines should declare supported tooling instead of depending on incidental agent image contents.
Incorrect Answers
B:Pin or govern the consumed artifact to the approved pipeline run and branch. This concerns a different DevOps situation: A production stage sometimes downloads an artifact from a different branch due to an ambiguous pipeline resource definition. This case instead requires both a targeted investigation (Inspect agent image announcement, demands, SDK versions and task compatibility.) and a controlled change (Pin or explicitly install supported toolchains and test migrations before image retirement.).
C:Track flaky test metrics and assign root-cause fixes rather than unconditional retries. This concerns a different DevOps situation: Pipeline duration grows because a flaky test is retried eight times but the dashboard still shows every build as green. This case instead requires both a targeted investigation (Inspect agent image announcement, demands, SDK versions and task compatibility.) and a controlled change (Pin or explicitly install supported toolchains and test migrations before image retirement.).
E:Compare classic stage approvals with YAML environment checks and service-connection authorization. This concerns a different DevOps situation: After migrating to YAML, a production release skips mandatory human approval that existed in a classic release stage. This case instead requires both a targeted investigation (Inspect agent image announcement, demands, SDK versions and task compatibility.) and a controlled change (Pin or explicitly install supported toolchains and test migrations before image retirement.).
Question 737
Before changing the pipeline or service, engineers find: An automation bot uses a maintainer's all-repository personal access token to comment on pull requests. Which evidence should the engineer inspect FIRST?
- Inspect endpoint grant-to-all settings, environment checks and pipeline identities.
- Inspect service connection credentials, Entra federated subject, role assignments and usage logs.
- Inspect token scope, audit events, bot responsibilities and repository installation.
- Inspect existing identity attachments, role assignments and resource replacement behavior.
Explanation
Correct Answer
C:Inspect token scope, audit events, bot responsibilities and repository installation. This directly checks the uncertain behavior or control before changing production. App-based automation can use narrow installation permissions and accountable identity. The resulting targeted action is: Use a GitHub App with minimal repository permissions for the workflow.
Incorrect Answers
A:Inspect endpoint grant-to-all settings, environment checks and pipeline identities. 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 evidence is: Inspect token scope, audit events, bot responsibilities and repository installation. The crucial distinction is: App-based automation can use narrow installation permissions and accountable identity.
B:Inspect service connection credentials, Entra federated subject, role assignments and usage logs. This would address a different situation, such as: A deployment workflow has a client secret in a variable group that is copied between projects and never rotated. In the present case, the most directly relevant evidence is: Inspect token scope, audit events, bot responsibilities and repository installation. The crucial distinction is: App-based automation can use narrow installation permissions and accountable identity.
D:Inspect existing identity attachments, role assignments and resource replacement behavior. This would address a different situation, such as: An autoscaled deployment needs consistent identity across short-lived Azure compute instances that are replaced frequently. In the present case, the most directly relevant evidence is: Inspect token scope, audit events, bot responsibilities and repository installation. The crucial distinction is: App-based automation can use narrow installation permissions and accountable identity.
Question 738
The DevOps team must resolve this situation: A desktop client update is rolled out to every employee globally at the same moment, causing a widespread outage. Which engineering action is MOST appropriate?
- Implement staged deployment rings with explicit gates and pause criteria.
- Use backward-compatible API rollout and explicit dependent stage ordering.
- Use expand-and-contract database changes before traffic migration.
- Configure a controlled percentage or targeting filter with versioned rollout criteria.
Explanation
Correct Answer
A:Implement staged deployment rings with explicit gates and pause criteria. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: A first-ring failure prevents later cohorts from receiving the release. Ring deployment sequences exposure through controlled representative cohorts.
Incorrect Answers
B:Use backward-compatible API rollout and explicit dependent stage ordering. This would address a different situation, such as: A frontend release calls an API endpoint introduced only by a backend deployment scheduled later, breaking all sessions. In the present case, the most directly relevant engineering action is: Implement staged deployment rings with explicit gates and pause criteria. The crucial distinction is: Ring deployment sequences exposure through controlled representative cohorts.
C:Use expand-and-contract database changes before traffic migration. 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 engineering action is: Implement staged deployment rings with explicit gates and pause criteria. The crucial distinction is: Ring deployment sequences exposure through controlled representative cohorts.
D:Configure a controlled percentage or targeting filter with versioned rollout criteria. This would address a different situation, such as: A retailer wants to expose a new checkout feature to 5% of customers but its current flag is on or off for everyone. In the present case, the most directly relevant engineering action is: Implement staged deployment rings with explicit gates and pause criteria. The crucial distinction is: Ring deployment sequences exposure through controlled representative cohorts.
Question 739
An Azure DevOps engineering team evaluates this condition: A post-deployment verification job runs even when staging tests fail because its condition overrides the default dependency check. Which DevOps principle BEST explains the underlying weakness?
- Job-level token permissions should match each workflow task's minimum needs.
- Path filters must include shared dependencies required by the target service.
- Custom YAML conditions must retain required success prerequisites.
- Workload identity federation reduces dependence on persistent credentials for Azure deployment.
Explanation
Correct Answer
C:Custom YAML conditions must retain required success prerequisites. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Review stage condition expressions, dependency status and test results. An appropriate controlled response is: Include explicit succeeded dependencies in the custom promotion condition.
Incorrect Answers
A:Job-level token permissions should match each workflow task's minimum needs. 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 principle is: Custom YAML conditions must retain required success prerequisites. The crucial distinction is: Custom YAML conditions must retain required success prerequisites.
B:Path filters must include shared dependencies required by the target service. This would address a different situation, such as: A monorepo pipeline skips tests for a common authentication library because its paths filter only includes one service folder. In the present case, the most directly relevant principle is: Custom YAML conditions must retain required success prerequisites. The crucial distinction is: Custom YAML conditions must retain required success prerequisites.
D: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: Custom YAML conditions must retain required success prerequisites. The crucial distinction is: Custom YAML conditions must retain required success prerequisites.
Question 740
An Azure DevOps engineering team evaluates this condition: A deployment pipeline runs on feature-branch pushes despite a policy requiring releases only from protected main. Which DevOps principle BEST explains the underlying weakness?
- Pipeline triggers must enforce reviewed source ref eligibility.
- Azure Pipelines GitHub integration requires scoped access and appropriate PR triggers.
- Cross-stage values must be explicitly published and referenced through supported output syntax.
- Agent placement should satisfy network access and security constraints without overprivilege.
Explanation
Correct Answer
A:Pipeline triggers must enforce reviewed source ref eligibility. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Inspect YAML trigger filters, branch protections and deployment conditions. An appropriate controlled response is: Limit production deployment to permitted protected refs and validated build artifacts.
Incorrect Answers
B:Azure Pipelines GitHub integration requires scoped access and appropriate PR triggers. This would address a different situation, such as: An Azure DevOps pipeline uses a GitHub repository but cannot run pull-request validation because its repository connection is misconfigured. In the present case, the most directly relevant principle is: Pipeline triggers must enforce reviewed source ref eligibility. The crucial distinction is: Pipeline triggers must enforce reviewed source ref eligibility.
C: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: Pipeline triggers must enforce reviewed source ref eligibility. The crucial distinction is: Pipeline triggers must enforce reviewed source ref eligibility.
D:Agent placement should satisfy network access and security constraints without overprivilege. This would address a different situation, such as: A build must reach private package infrastructure inaccessible from Microsoft-hosted agents. In the present case, the most directly relevant principle is: Pipeline triggers must enforce reviewed source ref eligibility. The crucial distinction is: Pipeline triggers must enforce reviewed source ref eligibility.