Microsoft AZ-400 Practice Test 90
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.
Question 891
An Azure DevOps engineering team evaluates this condition: A VM's monitoring dashboard reports no errors because its telemetry agent stopped sending data three days ago. Which DevOps principle BEST explains the underlying weakness?
- Missing data must not be interpreted as proof of a healthy resource.
- Telemetry sampling strategy must preserve adequate signal for critical failures.
- Performance analysis should include tail latency percentiles rather than mean alone.
- Operational telemetry should correlate errors with release markers and change events.
Explanation
Correct Answer
A:Missing data must not be interpreted as proof of a healthy resource. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Inspect Heartbeat records, ingestion timestamps, agent status and alert behavior. An appropriate controlled response is: Create a missing-heartbeat query or alert with appropriate response ownership.
Incorrect Answers
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: Missing data must not be interpreted as proof of a healthy resource. The crucial distinction is: Missing data must not be interpreted as proof of a healthy resource.
C:Performance analysis should include tail latency percentiles rather than mean alone. This would address a different situation, such as: An API dashboard shows acceptable average response time even though the slowest 5% of requests exceed the customer SLA. In the present case, the most directly relevant principle is: Missing data must not be interpreted as proof of a healthy resource. The crucial distinction is: Missing data must not be interpreted as proof of a healthy resource.
D:Operational telemetry should correlate errors with release markers and change events. This would address a different situation, such as: A new release increases HTTP 500s, but the team cannot match failures to deployment timestamps. In the present case, the most directly relevant principle is: Missing data must not be interpreted as proof of a healthy resource. The crucial distinction is: Missing data must not be interpreted as proof of a healthy resource.
Question 892
After implementing the change, the team verifies: Teams each copy a deployment YAML template and security fixes reach only some repositories. Which result would BEST demonstrate that the issue is corrected?
- A test run completes faster without exceeding the owned concurrency budget.
- A downstream task receives the intended endpoint from the current successful run.
- A shared security fix is adopted through a reviewed template update in each consumer.
- A sample GitHub pull request launches a traceable Azure Pipeline check.
Explanation
Correct Answer
C:A shared security fix is adopted through a reviewed template update in each consumer. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Move common steps into approved reusable templates with pinned or governed references. Shared templates should be centrally governed and versioned for compatible consumers.
Incorrect Answers
A:A test run completes faster without exceeding the owned concurrency budget. This would address a different situation, such as: A large repository launches 100 independent test jobs though the organization owns only 10 paid parallel agent slots. In the present case, the most directly relevant verification is: A shared security fix is adopted through a reviewed template update in each consumer. The crucial distinction is: Shared templates should be centrally governed and versioned for compatible consumers.
B: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 shared security fix is adopted through a reviewed template update in each consumer. The crucial distinction is: Shared templates should be centrally governed and versioned for compatible consumers.
D:A sample GitHub pull request launches a traceable Azure Pipeline check. 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 verification is: A shared security fix is adopted through a reviewed template update in each consumer. The crucial distinction is: Shared templates should be centrally governed and versioned for compatible consumers.
Question 893
After implementing the change, the team verifies: A developer accidentally removes an important local commit during an interactive rebase, but it is still reachable from Git reflog. Which result would BEST demonstrate that the issue is corrected?
- The same repository commit builds on both the intended Windows and Linux agents.
- The restored changes match the lost commit without overwriting colleagues' work.
- The target service builds correctly with only its required repository content.
- The old credential is invalid and authorized scans find no active secret exposure.
Explanation
Correct Answer
B:The restored changes match the lost commit without overwriting colleagues' work. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Recover the intended commit using the recorded reflog SHA and a safe new branch. Git reflog can help recover recent local reference movements before garbage collection.
Incorrect Answers
A:The same repository commit builds on both the intended Windows and Linux agents. This would address a different situation, such as: A service builds on a Windows workstation but fails on Linux CI because a source import differs only in filename case. In the present case, the most directly relevant verification is: The restored changes match the lost commit without overwriting colleagues' work. The crucial distinction is: Git reflog can help recover recent local reference movements before garbage collection.
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 restored changes match the lost commit without overwriting colleagues' work. The crucial distinction is: Git reflog can help recover recent local reference movements before garbage collection.
D:The old credential is invalid and authorized scans find no active secret exposure. This would address a different situation, such as: A database credential is removed from the latest Git commit but remains visible in old revisions. In the present case, the most directly relevant verification is: The restored changes match the lost commit without overwriting colleagues' work. The crucial distinction is: Git reflog can help recover recent local reference movements before garbage collection.
Question 894
A Microsoft DevOps team is addressing: A pipeline runs quickly on an agent but waits 70 minutes in queue due to a limited self-hosted pool. Which TWO complementary actions should be taken? Select TWO answers.
- Inspect retention defaults, legal requirements, approval records and storage cost.
- Right-size authorized agent capacity and prioritize critical release jobs.
- Review queue latency, pool capacity, concurrent jobs and utilization.
- Remove serial bottlenecks or right-size jobs before purchasing concurrency.
- Run independent tests in parallel within the approved concurrency and resource budget.
Explanation
Correct Answers
B:Right-size authorized agent capacity and prioritize critical release jobs. This supplies the controlled implementation needed for the scenario. Its complementary step is: Review queue latency, pool capacity, concurrent jobs and utilization. Together they address: Pipeline telemetry should distinguish agent scarcity from actual code execution cost.
C:Review queue latency, pool capacity, concurrent jobs and utilization. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Right-size authorized agent capacity and prioritize critical release jobs. Together they address: Pipeline telemetry should distinguish agent scarcity from actual code execution cost.
Incorrect Answers
A:Inspect retention defaults, legal requirements, approval records and storage cost. This concerns a different DevOps situation: An organization deletes pipeline logs within a day even though deployment approvals must be auditable for a year. This case instead requires both a targeted investigation (Review queue latency, pool capacity, concurrent jobs and utilization.) and a controlled change (Right-size authorized agent capacity and prioritize critical release jobs.).
D:Remove serial bottlenecks or right-size jobs before purchasing concurrency. This concerns a different DevOps situation: A pipeline team wants 50 more hosted agent slots even though bottlenecks are serial manual approvals and limited integration environments. This case instead requires both a targeted investigation (Review queue latency, pool capacity, concurrent jobs and utilization.) and a controlled change (Right-size authorized agent capacity and prioritize critical release jobs.).
E:Run independent tests in parallel within the approved concurrency and resource budget. This concerns a different DevOps situation: A large build spends most of its time serially running three independent test suites. This case instead requires both a targeted investigation (Review queue latency, pool capacity, concurrent jobs and utilization.) and a controlled change (Right-size authorized agent capacity and prioritize critical release jobs.).
Question 895
After implementing the change, the team verifies: A YAML pipeline references a production environment but deploys through an unprotected job that never uses the environment resource. Which result would BEST demonstrate that the issue is corrected?
- A feature-branch push cannot deploy while a reviewed mainline commit can.
- A common authentication library change runs the affected service's tests.
- A downstream task receives the intended endpoint from the current successful run.
- An unauthorized run cannot access the production deployment until approval completes.
Explanation
Correct Answer
D:An unauthorized run cannot access the production deployment until approval completes. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Use a deployment job bound to the protected environment and enforce resource checks. Environment approvals apply only when pipelines use the protected deployment resource correctly.
Incorrect Answers
A:A feature-branch push cannot deploy while a reviewed mainline commit can. This would address a different situation, such as: A deployment pipeline runs on feature-branch pushes despite a policy requiring releases only from protected main. In the present case, the most directly relevant verification is: An unauthorized run cannot access the production deployment until approval completes. The crucial distinction is: Environment approvals apply only when pipelines use the protected deployment resource correctly.
B:A common authentication library change runs the affected service's tests. 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 verification is: An unauthorized run cannot access the production deployment until approval completes. The crucial distinction is: Environment approvals apply only when pipelines use the protected deployment resource correctly.
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: An unauthorized run cannot access the production deployment until approval completes. The crucial distinction is: Environment approvals apply only when pipelines use the protected deployment resource correctly.
Question 896
The DevOps team must resolve this situation: A VM sends no logs to Log Analytics because its Azure Monitor Agent data collection rule targets another resource group. Which engineering action is MOST appropriate?
- Configure insight charts and notifications for failed and slow required workflows.
- Configure supported VM Insights or guest-memory collection and meaningful alerts.
- Associate the approved data collection rule and validate required log flow to the workspace.
- Instrument supported Application Insights distributed tracing with context propagation.
Explanation
Correct Answer
C:Associate the approved data collection rule and validate required log flow to the workspace. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: A generated test event is queryable with the correct source and timestamp. Telemetry collection depends on correct agent, rule association and destination permissions.
Incorrect Answers
A: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: Associate the approved data collection rule and validate required log flow to the workspace. The crucial distinction is: Telemetry collection depends on correct agent, rule association and destination permissions.
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: Associate the approved data collection rule and validate required log flow to the workspace. The crucial distinction is: Telemetry collection depends on correct agent, rule association and destination permissions.
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: Associate the approved data collection rule and validate required log flow to the workspace. The crucial distinction is: Telemetry collection depends on correct agent, rule association and destination permissions.
Question 897
An engineering design review identifies: An engineering organization uses long-lived feature branches, and its hotfixes regularly miss previously merged changes. Which shortcut should the team MOST specifically avoid for this case?
- Report aggregate bug counts without recording related tests or affected revisions.
- Delete every review requirement so developers can push hotfixes directly to main.
- Ask support staff to maintain a private unversioned list of customer complaints.
- Treat the work item's Closed state as proof that its code is in production.
Explanation
Correct Answer
B:Delete every review requirement so developers can push hotfixes directly to main. This shortcut directly undermines the stated control or workflow. A safer action is: Adopt protected mainline GitHub Flow with small reviewed changes and linked work items. Explanation: Short-lived branches and reviewed pull requests reduce integration drift and make changes traceable.
Incorrect Answers
A:Report aggregate bug counts without recording related tests or affected revisions. 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 unsafe shortcut is: Delete every review requirement so developers can push hotfixes directly to main. The crucial distinction is: Short-lived branches and reviewed pull requests reduce integration drift and make changes traceable.
C:Ask support staff to maintain a private unversioned list of customer complaints. 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 unsafe shortcut is: Delete every review requirement so developers can push hotfixes directly to main. The crucial distinction is: Short-lived branches and reviewed pull requests reduce integration drift and make changes traceable.
D:Treat the work item's Closed state as proof that its code is in production. 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 unsafe shortcut is: Delete every review requirement so developers can push hotfixes directly to main. The crucial distinction is: Short-lived branches and reviewed pull requests reduce integration drift and make changes traceable.
Question 898
After implementing the change, the team verifies: Operators modify a production firewall directly, but the Terraform plan assumes its prior values remain in place. Which result would BEST demonstrate that the issue is corrected?
- Expired exemptions are surfaced and prohibited deployments resume enforcement.
- A repeat plan is stable and firewall rules match the reviewed configuration.
- A test service deployment inherits baseline health and identity configuration.
- A deliberately altered setting triggers the intended compliance detection and correction process.
Explanation
Correct Answer
B:A repeat plan is stable and firewall rules match the reviewed configuration. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Run governed drift detection and reconcile approved changes through IaC. Desired state must be reconciled with real infrastructure before applying further changes.
Incorrect Answers
A:Expired exemptions are surfaced and prohibited deployments resume enforcement. This would address a different situation, such as: A production deployment depends on a time-limited Azure Policy exemption that was never documented or reviewed. In the present case, the most directly relevant verification is: A repeat plan is stable and firewall rules match the reviewed configuration. The crucial distinction is: Desired state must be reconciled with real infrastructure before applying further changes.
C:A test service deployment inherits baseline health and identity configuration. This would address a different situation, such as: Each team's pipeline provisions Azure Container Apps independently, with inconsistent health probes and identity. In the present case, the most directly relevant verification is: A repeat plan is stable and firewall rules match the reviewed configuration. The crucial distinction is: Desired state must be reconciled with real infrastructure before applying further changes.
D:A deliberately altered setting triggers the intended compliance detection and correction process. This would address a different situation, such as: A legacy fleet uses Azure Automation State Configuration but receives no reliable reports of drift or node registration. In the present case, the most directly relevant verification is: A repeat plan is stable and firewall rules match the reviewed configuration. The crucial distinction is: Desired state must be reconciled with real infrastructure before applying further changes.
Question 899
After implementing the change, the team verifies: A release manifest references an ACR latest tag that was replaced after QA approval. Which result would BEST demonstrate that the issue is corrected?
- A first-ring failure prevents later cohorts from receiving the release.
- A later tag overwrite cannot change the image selected for this release.
- Replaying a completed migration does not corrupt or duplicate the schema.
- An in-flight checkout completes during a controlled target replacement.
Explanation
Correct Answer
B:A later tag overwrite cannot change the image selected for this release. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Pin the approved image digest in deployment configuration and retain rollback versions. Deployments should reference the exact verified image digest or protected immutable tag.
Incorrect Answers
A:A first-ring failure prevents later cohorts from receiving the release. This would address a different situation, such as: A desktop client update is rolled out to every employee globally at the same moment, causing a widespread outage. In the present case, the most directly relevant verification is: A later tag overwrite cannot change the image selected for this release. The crucial distinction is: Deployments should reference the exact verified image digest or protected immutable tag.
C:Replaying a completed migration does not corrupt or duplicate the schema. 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 verification is: A later tag overwrite cannot change the image selected for this release. The crucial distinction is: Deployments should reference the exact verified image digest or protected immutable tag.
D:An in-flight checkout completes during a controlled target replacement. This would address a different situation, such as: A deployment removes an application instance while it has open customer sessions, causing dropped purchases. In the present case, the most directly relevant verification is: A later tag overwrite cannot change the image selected for this release. The crucial distinction is: Deployments should reference the exact verified image digest or protected immutable tag.
Question 900
A Microsoft DevOps team is addressing: A cost-reduction retention rule deletes the last known-good container image before the rollback period ends. Which TWO complementary actions should be taken? Select TWO answers.
- Inspect agent image announcement, demands, SDK versions and task compatibility.
- Use dependency-aware cache keys and safe restore fallback behavior.
- Inspect release references, retention rules, ACR manifests and recovery requirements.
- Implement safe workspace cleanup and monitored cache eviction consistent with rollback needs.
- Protect recent deployed digests and remove only eligible unreferenced artifacts.
Explanation
Correct Answers
C:Inspect release references, retention rules, ACR manifests and recovery requirements. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Protect recent deployed digests and remove only eligible unreferenced artifacts. Together they address: Artifact retention needs business-approved rollback and forensic windows.
E:Protect recent deployed digests and remove only eligible unreferenced artifacts. This supplies the controlled implementation needed for the scenario. Its complementary step is: Inspect release references, retention rules, ACR manifests and recovery requirements. Together they address: Artifact retention needs business-approved rollback and forensic windows.
Incorrect Answers
A:Inspect agent image announcement, demands, SDK versions and task compatibility. 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 release references, retention rules, ACR manifests and recovery requirements.) and a controlled change (Protect recent deployed digests and remove only eligible unreferenced artifacts.).
B:Use dependency-aware cache keys and safe restore fallback behavior. 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 release references, retention rules, ACR manifests and recovery requirements.) and a controlled change (Protect recent deployed digests and remove only eligible unreferenced artifacts.).
D:Implement safe workspace cleanup and monitored cache eviction consistent with rollback needs. This concerns a different DevOps situation: A self-hosted agent fails after months because workspace and Docker layer caches exhaust disk space. This case instead requires both a targeted investigation (Inspect release references, retention rules, ACR manifests and recovery requirements.) and a controlled change (Protect recent deployed digests and remove only eligible unreferenced artifacts.).