Microsoft AZ-400 Practice Test 58
Question 570
After implementing the change, the team verifies: A pipeline team wants 50 more hosted agent slots even though bottlenecks are serial manual approvals and limited integration environments. Which result would BEST demonstrate that the issue is corrected?
- An intentionally failed release reaches the active on-call group with diagnostic context.
- A new deployment succeeds after retiring the old secret while preserving permissions.
- A trial optimization improves completion time at acceptable agent cost.
- A test report identifies approval latency independently of execution time.
Explanation
Correct Answer
C:A trial optimization improves completion time at acceptable agent cost. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Remove serial bottlenecks or right-size jobs before purchasing concurrency. Capacity changes should be justified by measured critical-path improvements and cost.
Incorrect Answers
A:An intentionally failed release reaches the active on-call group with diagnostic context. 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 verification is: A trial optimization improves completion time at acceptable agent cost. The crucial distinction is: Capacity changes should be justified by measured critical-path improvements and cost.
B:A new deployment succeeds after retiring the old secret while preserving permissions. 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 verification is: A trial optimization improves completion time at acceptable agent cost. The crucial distinction is: Capacity changes should be justified by measured critical-path improvements and cost.
D:A test report identifies approval latency independently of execution time. 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 verification is: A trial optimization improves completion time at acceptable agent cost. The crucial distinction is: Capacity changes should be justified by measured critical-path improvements and cost.
Question 571
A Microsoft DevOps team is addressing: A VM sends no logs to Log Analytics because its Azure Monitor Agent data collection rule targets another resource group. Which TWO complementary actions should be taken? Select TWO answers.
- Associate the approved data collection rule and validate required log flow to the workspace.
- Inspect GitHub Actions run history, job timing, failure causes and usage trends.
- Inspect Azure Monitor Agent, VM insights settings, counters and related crash logs.
- Inspect VM agent health, DCR association, scope, endpoint and ingestion diagnostics.
- Inspect Azure Pipelines notifications, Azure Monitor integration, event routing and team ownership.
Explanation
Correct Answers
A:Associate the approved data collection rule and validate required log flow to the workspace. This supplies the controlled implementation needed for the scenario. Its complementary step is: Inspect VM agent health, DCR association, scope, endpoint and ingestion diagnostics. Together they address: Telemetry collection depends on correct agent, rule association and destination permissions.
D:Inspect VM agent health, DCR association, scope, endpoint and ingestion diagnostics. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Associate the approved data collection rule and validate required log flow to the workspace. Together they address: Telemetry collection depends on correct agent, rule association and destination permissions.
Incorrect Answers
B:Inspect GitHub Actions run history, job timing, failure causes and usage trends. This concerns a different DevOps situation: A GitHub project has rising CI failures, but maintainers monitor only total completed workflow counts. This case instead requires both a targeted investigation (Inspect VM agent health, DCR association, scope, endpoint and ingestion diagnostics.) and a controlled change (Associate the approved data collection rule and validate required log flow to the workspace.).
C:Inspect Azure Monitor Agent, VM insights settings, counters and related crash logs. This concerns a different DevOps situation: A production VM experiences OOM kills while CPU remains normal and default platform graphs show no guest memory usage. This case instead requires both a targeted investigation (Inspect VM agent health, DCR association, scope, endpoint and ingestion diagnostics.) and a controlled change (Associate the approved data collection rule and validate required log flow to the workspace.).
E:Inspect Azure Pipelines notifications, Azure Monitor integration, event routing and team ownership. This concerns a different DevOps situation: Production pipeline deployments fail overnight, but engineers notice only when checking the Azure DevOps portal the next morning. This case instead requires both a targeted investigation (Inspect VM agent health, DCR association, scope, endpoint and ingestion diagnostics.) and a controlled change (Associate the approved data collection rule and validate required log flow to the workspace.).
Question 572
Before changing the pipeline or service, engineers find: A team reports excellent developer experience based only on responses from its three most active maintainers. Which evidence should the engineer inspect FIRST?
- Inspect commit timestamps, deployment records, service ownership and calculation filters.
- Compare queue timestamps, job timings, capacity saturation and approval intervals.
- Inspect survey population, response rates, roles and unanswered groups.
- Review pipeline test publications, excluded suites, flaky test logs and quality thresholds.
Explanation
Correct Answer
C:Inspect survey population, response rates, roles and unanswered groups. This directly checks the uncertain behavior or control before changing production. Process metrics should disclose sampling limitations and actionable qualitative context. The resulting targeted action is: Gather representative developer feedback and combine it with observed flow telemetry.
Incorrect Answers
A:Inspect commit timestamps, deployment records, service ownership and calculation filters. 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 evidence is: Inspect survey population, response rates, roles and unanswered groups. The crucial distinction is: Process metrics should disclose sampling limitations and actionable qualitative context.
B:Compare queue timestamps, job timings, capacity saturation and approval intervals. 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 evidence is: Inspect survey population, response rates, roles and unanswered groups. The crucial distinction is: Process metrics should disclose sampling limitations and actionable qualitative context.
D:Review pipeline test publications, excluded suites, flaky test logs and quality thresholds. 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 evidence is: Inspect survey population, response rates, roles and unanswered groups. The crucial distinction is: Process metrics should disclose sampling limitations and actionable qualitative context.
Question 573
The DevOps team must resolve this situation: A product manager needs to view Azure Boards and submit work items but is given full build administration permissions. Which engineering action is MOST appropriate?
- Use suitable Stakeholder access and restrict code/pipeline administration.
- Disable broad access and explicitly authorize the approved production pipelines.
- Set minimum GITHUB_TOKEN permissions for each job and restrict untrusted execution.
- Invite an outside collaborator with restricted access to the reviewed repository.
Explanation
Correct Answer
A:Use suitable Stakeholder access and restrict code/pipeline administration. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: The manager can create permitted work items but cannot change release environments. Azure DevOps access levels and security groups should reflect actual job duties.
Incorrect Answers
B:Disable broad access and explicitly authorize the approved production pipelines. 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 engineering action is: Use suitable Stakeholder access and restrict code/pipeline administration. The crucial distinction is: Azure DevOps access levels and security groups should reflect actual job duties.
C:Set minimum GITHUB_TOKEN permissions for each job and restrict untrusted execution. This would address a different situation, such as: A GitHub Actions test workflow with untrusted input has contents:write even though it only runs tests. In the present case, the most directly relevant engineering action is: Use suitable Stakeholder access and restrict code/pipeline administration. The crucial distinction is: Azure DevOps access levels and security groups should reflect actual job duties.
D:Invite an outside collaborator with restricted access to the reviewed repository. This would address a different situation, such as: An external auditor needs read access to one private repository, but is added as an owner of the whole organization. In the present case, the most directly relevant engineering action is: Use suitable Stakeholder access and restrict code/pipeline administration. The crucial distinction is: Azure DevOps access levels and security groups should reflect actual job duties.
Question 574
A Microsoft DevOps team is addressing: An external auditor needs read access to one private repository, but is added as an owner of the whole organization. Which TWO complementary actions should be taken? Select TWO answers.
- Inspect organization membership, outside collaborator assignments and repository visibility.
- Inspect existing identity attachments, role assignments and resource replacement behavior.
- Inspect endpoint grant-to-all settings, environment checks and pipeline identities.
- Inspect token scope, audit events, bot responsibilities and repository installation.
- Invite an outside collaborator with restricted access to the reviewed repository.
Explanation
Correct Answers
A:Inspect organization membership, outside collaborator assignments and repository visibility. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Invite an outside collaborator with restricted access to the reviewed repository. Together they address: External access should be scoped to the minimum repository and role.
E:Invite an outside collaborator with restricted access to the reviewed repository. This supplies the controlled implementation needed for the scenario. Its complementary step is: Inspect organization membership, outside collaborator assignments and repository visibility. Together they address: External access should be scoped to the minimum repository and role.
Incorrect Answers
B:Inspect existing identity attachments, role assignments and resource replacement behavior. This concerns a different DevOps situation: An autoscaled deployment needs consistent identity across short-lived Azure compute instances that are replaced frequently. This case instead requires both a targeted investigation (Inspect organization membership, outside collaborator assignments and repository visibility.) and a controlled change (Invite an outside collaborator with restricted access to the reviewed repository.).
C:Inspect endpoint grant-to-all settings, environment checks and pipeline identities. This concerns a different DevOps situation: An Azure DevOps deployment service connection is authorized for all pipelines, including untrusted test definitions. This case instead requires both a targeted investigation (Inspect organization membership, outside collaborator assignments and repository visibility.) and a controlled change (Invite an outside collaborator with restricted access to the reviewed repository.).
D:Inspect token scope, audit events, bot responsibilities and repository installation. This concerns a different DevOps situation: An automation bot uses a maintainer's all-repository personal access token to comment on pull requests. This case instead requires both a targeted investigation (Inspect organization membership, outside collaborator assignments and repository visibility.) and a controlled change (Invite an outside collaborator with restricted access to the reviewed repository.).
Question 575
After implementing the change, the team verifies: After migrating to YAML, a production release skips mandatory human approval that existed in a classic release stage. Which result would BEST demonstrate that the issue is corrected?
- A clean replacement hosted image reproduces the expected build.
- A representative flaky test appears as a reliability issue despite eventual job success.
- A rollback exercise retrieves its signed prior image while obsolete builds expire.
- An unapproved production run is blocked while an authorized approval completes.
Explanation
Correct Answer
D:An unapproved production run is blocked while an authorized approval completes. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Configure environment-level approvals and checks outside untrusted YAML modification paths. Migration must preserve policy-enforced approvals through supported protected resources.
Incorrect Answers
A:A clean replacement hosted image reproduces the expected build. This would address a different situation, such as: Builds fail after an Azure Pipelines hosted image update because a legacy runtime was implicitly available before. In the present case, the most directly relevant verification is: An unapproved production run is blocked while an authorized approval completes. The crucial distinction is: Migration must preserve policy-enforced approvals through supported protected resources.
B:A representative flaky test appears as a reliability issue despite eventual job success. This would address a different situation, such as: Pipeline duration grows because a flaky test is retried eight times but the dashboard still shows every build as green. In the present case, the most directly relevant verification is: An unapproved production run is blocked while an authorized approval completes. The crucial distinction is: Migration must preserve policy-enforced approvals through supported protected resources.
C:A rollback exercise retrieves its signed prior image while obsolete builds expire. 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 verification is: An unapproved production run is blocked while an authorized approval completes. The crucial distinction is: Migration must preserve policy-enforced approvals through supported protected resources.
Question 576
The DevOps team must resolve this situation: An audit team cannot associate production features with reviewed pull requests after squash merging because release metadata records only original feature SHAs. Which engineering action is MOST appropriate?
- Require reviewed back-merges or cherry-picks of hotfixes into active branches.
- Record the final mainline commit and linked PR/work item in deployment provenance.
- Use fork-and-pull-request contributions with least-privilege branch access.
- Require fresh passing checks after updates to the protected pull request.
Explanation
Correct Answer
B:Record the final mainline commit and linked PR/work item in deployment provenance. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: A squashed change can be traced from release to approved PR and tests. Traceability after squash merges needs durable pull request and resulting commit identifiers.
Incorrect Answers
A:Require reviewed back-merges or cherry-picks of hotfixes into active branches. This would address a different situation, such as: A critical production fix is committed to an old release branch and never reaches the mainline, so the bug returns next month. In the present case, the most directly relevant engineering action is: Record the final mainline commit and linked PR/work item in deployment provenance. The crucial distinction is: Traceability after squash merges needs durable pull request and resulting commit identifiers.
C:Use fork-and-pull-request contributions with least-privilege branch access. This would address a different situation, such as: External contributors can directly edit protected organization branches rather than submitting reviewed fork-based changes. In the present case, the most directly relevant engineering action is: Record the final mainline commit and linked PR/work item in deployment provenance. The crucial distinction is: Traceability after squash merges needs durable pull request and resulting commit identifiers.
D:Require fresh passing checks after updates to the protected pull request. This would address a different situation, such as: A pull request passes security tests, then receives new commits but can merge without rerunning required checks. In the present case, the most directly relevant engineering action is: Record the final mainline commit and linked PR/work item in deployment provenance. The crucial distinction is: Traceability after squash merges needs durable pull request and resulting commit identifiers.
Question 577
An Azure DevOps engineering team evaluates this condition: Two separate repositories copy and edit a common authentication library independently, producing inconsistent fixes. Which DevOps principle BEST explains the underlying weakness?
- Source control workflows must verify path case and platform consistency.
- Repository access should be limited to the minimum collaborator operations.
- Cross-repository reuse needs an explicit versioned dependency strategy.
- Repository strategies must monitor large-file storage limits and build consumption patterns.
Explanation
Correct Answer
C:Cross-repository reuse needs an explicit versioned dependency strategy. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Review code duplication, package provenance, semver constraints and release history. An appropriate controlled response is: Publish common code as a reviewed versioned package or managed shared component.
Incorrect Answers
A:Source control workflows must verify path case and platform consistency. 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 principle is: Cross-repository reuse needs an explicit versioned dependency strategy. The crucial distinction is: Cross-repository reuse needs an explicit versioned dependency strategy.
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: Cross-repository reuse needs an explicit versioned dependency strategy. The crucial distinction is: Cross-repository reuse needs an explicit versioned dependency strategy.
D:Repository strategies must monitor large-file storage limits and build consumption patterns. 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 principle is: Cross-repository reuse needs an explicit versioned dependency strategy. The crucial distinction is: Cross-repository reuse needs an explicit versioned dependency strategy.
Question 578
The DevOps team must resolve this situation: An approval gate makes a release appear to take two hours, but actual deployment work takes five minutes. Which engineering action is MOST appropriate?
- Configure environment-level approvals and checks outside untrusted YAML modification paths.
- Track flaky test metrics and assign root-cause fixes rather than unconditional retries.
- Report approval wait separately and optimize only the relevant bottleneck.
- Pin or explicitly install supported toolchains and test migrations before image retirement.
Explanation
Correct Answer
C:Report approval wait separately and optimize only the relevant bottleneck. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: A test report identifies approval latency independently of execution time. Duration analysis should distinguish human wait stages and task execution bottlenecks.
Incorrect Answers
A:Configure environment-level approvals and checks outside untrusted YAML modification paths. This would address a different situation, such as: After migrating to YAML, a production release skips mandatory human approval that existed in a classic release stage. In the present case, the most directly relevant engineering action is: Report approval wait separately and optimize only the relevant bottleneck. The crucial distinction is: Duration analysis should distinguish human wait stages and task execution bottlenecks.
B:Track flaky test metrics and assign root-cause fixes rather than unconditional retries. This would address a different situation, such as: Pipeline duration grows because a flaky test is retried eight times but the dashboard still shows every build as green. In the present case, the most directly relevant engineering action is: Report approval wait separately and optimize only the relevant bottleneck. The crucial distinction is: Duration analysis should distinguish human wait stages and task execution bottlenecks.
D:Pin or explicitly install supported toolchains and test migrations before image retirement. This would address a different situation, such as: Builds fail after an Azure Pipelines hosted image update because a legacy runtime was implicitly available before. In the present case, the most directly relevant engineering action is: Report approval wait separately and optimize only the relevant bottleneck. The crucial distinction is: Duration analysis should distinguish human wait stages and task execution bottlenecks.
Question 579
A Microsoft DevOps team is addressing: A developer accidentally commits a cloud token, but the repository has no automated alerting on leaked credentials. Which TWO complementary actions should be taken? Select TWO answers.
- Review SBOM, open-source license records, distribution type and exception approvals.
- Enable Dependabot alerts and governed security updates with CI checks.
- Inspect repository secret-scanning alerts, token audit logs and response workflow.
- Enable authorized secret scanning and push protection, then rotate exposed credentials.
- Review SAST, dependency, image and integration security test coverage.
Explanation
Correct Answers
C:Inspect repository secret-scanning alerts, token audit logs and response workflow. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Enable authorized secret scanning and push protection, then rotate exposed credentials. Together they address: Secret scanning should detect exposed credentials and trigger prompt containment.
D:Enable authorized secret scanning and push protection, then rotate exposed credentials. This supplies the controlled implementation needed for the scenario. Its complementary step is: Inspect repository secret-scanning alerts, token audit logs and response workflow. Together they address: Secret scanning should detect exposed credentials and trigger prompt containment.
Incorrect Answers
A:Review SBOM, open-source license records, distribution type and exception approvals. This concerns a different DevOps situation: A binary distribution uses open-source dependencies but its release process does not check license obligations. This case instead requires both a targeted investigation (Inspect repository secret-scanning alerts, token audit logs and response workflow.) and a controlled change (Enable authorized secret scanning and push protection, then rotate exposed credentials.).
B:Enable Dependabot alerts and governed security updates with CI checks. This concerns a different DevOps situation: A public repository uses a vulnerable transitive NPM package but Dependabot alerts are disabled. This case instead requires both a targeted investigation (Inspect repository secret-scanning alerts, token audit logs and response workflow.) and a controlled change (Enable authorized secret scanning and push protection, then rotate exposed credentials.).
E:Review SAST, dependency, image and integration security test coverage. This concerns a different DevOps situation: A project relies entirely on container image vulnerability scanning while application source contains an authorization flaw. This case instead requires both a targeted investigation (Inspect repository secret-scanning alerts, token audit logs and response workflow.) and a controlled change (Enable authorized secret scanning and push protection, then rotate exposed credentials.).
Question 580
Before changing the pipeline or service, engineers find: An App Service accesses Azure Storage using a connection string containing an account key in source control. Which evidence should the engineer inspect FIRST?
- Inspect App Service identity settings, storage RBAC and credential history.
- Inspect endpoint grant-to-all settings, environment checks and pipeline identities.
- Inspect token scope, audit events, bot responsibilities and repository installation.
- Inspect workflow permissions, fork contexts, third-party actions and write operations.
Explanation
Correct Answer
A:Inspect App Service identity settings, storage RBAC and credential history. This directly checks the uncertain behavior or control before changing production. Managed identity can replace application-stored credentials when the target service supports Azure RBAC. The resulting targeted action is: Enable system-assigned managed identity and grant narrow storage data-plane roles.
Incorrect Answers
B: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 App Service identity settings, storage RBAC and credential history. The crucial distinction is: Managed identity can replace application-stored credentials when the target service supports Azure RBAC.
C:Inspect token scope, audit events, bot responsibilities and repository installation. This would address a different situation, such as: An automation bot uses a maintainer's all-repository personal access token to comment on pull requests. In the present case, the most directly relevant evidence is: Inspect App Service identity settings, storage RBAC and credential history. The crucial distinction is: Managed identity can replace application-stored credentials when the target service supports Azure RBAC.
D:Inspect workflow permissions, fork contexts, third-party actions and write operations. This would address a different situation, such as: A GitHub Actions test workflow with untrusted input has contents:write even though it only runs tests. In the present case, the most directly relevant evidence is: Inspect App Service identity settings, storage RBAC and credential history. The crucial distinction is: Managed identity can replace application-stored credentials when the target service supports Azure RBAC.