Microsoft AZ-400 Practice Test 51
Question 500
After implementing the change, the team verifies: An archived security-sensitive repository remains writable by former project members and receives unreviewed commits. Which result would BEST demonstrate that the issue is corrected?
- A former contributor cannot push to the archived security repository.
- The target service builds correctly with only its required repository content.
- Both consumers can choose approved versions and receive a security fix predictably.
- The vendor can run authorized tests but cannot change protected repository settings.
Explanation
Correct Answer
A:A former contributor cannot push to the archived security repository. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Archive the repository or lock write access with audited exception handling. Repository lifecycle controls should remove stale rights and enforce appropriate archival state.
Incorrect Answers
B: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: A former contributor cannot push to the archived security repository. The crucial distinction is: Repository lifecycle controls should remove stale rights and enforce appropriate archival state.
C:Both consumers can choose approved versions and receive a security fix predictably. This would address a different situation, such as: Two separate repositories copy and edit a common authentication library independently, producing inconsistent fixes. In the present case, the most directly relevant verification is: A former contributor cannot push to the archived security repository. The crucial distinction is: Repository lifecycle controls should remove stale rights and enforce appropriate archival state.
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: A former contributor cannot push to the archived security repository. The crucial distinction is: Repository lifecycle controls should remove stale rights and enforce appropriate archival state.
Question 501
The DevOps team must resolve this situation: A package feed cannot install vetted public dependencies during a disconnected corporate build unless developers manually copy files. Which engineering action is MOST appropriate?
- Configure an approved upstream source and appropriate package permissions in Azure Artifacts.
- Publish versioned internal packages to Azure Artifacts and grant scoped pipeline feed access.
- Grant the consuming build service read access at the appropriate feed scope.
- Publish an appropriate major version with migration guidance and compatibility gates.
Explanation
Correct Answer
A:Configure an approved upstream source and appropriate package permissions in Azure Artifacts. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: A verified public package version resolves through the governed feed after initial caching. Upstream sources can cache approved public dependencies through controlled feeds.
Incorrect Answers
B:Publish versioned internal packages to Azure Artifacts and grant scoped pipeline feed access. This would address a different situation, such as: A.NET service pulls internal NuGet libraries from a developer laptop because no shared feed exists. In the present case, the most directly relevant engineering action is: Configure an approved upstream source and appropriate package permissions in Azure Artifacts. The crucial distinction is: Upstream sources can cache approved public dependencies through controlled feeds.
C:Grant the consuming build service read access at the appropriate feed scope. This would address a different situation, such as: A central deployment pipeline cannot restore a package from another Azure DevOps project although the feed works locally. In the present case, the most directly relevant engineering action is: Configure an approved upstream source and appropriate package permissions in Azure Artifacts. The crucial distinction is: Upstream sources can cache approved public dependencies through controlled feeds.
D:Publish an appropriate major version with migration guidance and compatibility gates. This would address a different situation, such as: An internal SDK removes a public method yet publishes the next build as a patch release, breaking consumers. In the present case, the most directly relevant engineering action is: Configure an approved upstream source and appropriate package permissions in Azure Artifacts. The crucial distinction is: Upstream sources can cache approved public dependencies through controlled feeds.
Question 502
A Microsoft DevOps team is addressing: A deployment downloads a private configuration file from a public blob URL before replacing placeholders. Which TWO complementary actions should be taken? Select TWO answers.
- Inspect blob access, SAS lifetime, logs and secret-bearing file handling.
- Review certificate exposure, pipeline YAML, secure-file permissions and task usage.
- Use an authorized Azure Key Vault-backed secret reference with protected variable handling.
- Use restricted secure file or private storage access with controlled cleanup.
- Inspect Key Vault certificate/secret objects, identity rights and App Service bindings.
Explanation
Correct Answers
A:Inspect blob access, SAS lifetime, logs and secret-bearing file handling. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Use restricted secure file or private storage access with controlled cleanup. Together they address: Sensitive deployment files should use authenticated encrypted storage and tightly scoped access.
D:Use restricted secure file or private storage access with controlled cleanup. This supplies the controlled implementation needed for the scenario. Its complementary step is: Inspect blob access, SAS lifetime, logs and secret-bearing file handling. Together they address: Sensitive deployment files should use authenticated encrypted storage and tightly scoped access.
Incorrect Answers
B:Review certificate exposure, pipeline YAML, secure-file permissions and task usage. This concerns a different DevOps situation: A mobile signing certificate is embedded as Base64 directly in a public pipeline YAML file. This case instead requires both a targeted investigation (Inspect blob access, SAS lifetime, logs and secret-bearing file handling.) and a controlled change (Use restricted secure file or private storage access with controlled cleanup.).
C:Use an authorized Azure Key Vault-backed secret reference with protected variable handling. This concerns a different DevOps situation: A pipeline prints a database password stored in a plain YAML variable during environment deployment. This case instead requires both a targeted investigation (Inspect blob access, SAS lifetime, logs and secret-bearing file handling.) and a controlled change (Use restricted secure file or private storage access with controlled cleanup.).
E:Inspect Key Vault certificate/secret objects, identity rights and App Service bindings. This concerns a different DevOps situation: An Azure service uses a TLS certificate uploaded to Key Vault, but the deployment copies only the public certificate without the private-key binding. This case instead requires both a targeted investigation (Inspect blob access, SAS lifetime, logs and secret-bearing file handling.) and a controlled change (Use restricted secure file or private storage access with controlled cleanup.).
Question 503
After implementing the change, the team verifies: A VM sends no logs to Log Analytics because its Azure Monitor Agent data collection rule targets another resource group. Which result would BEST demonstrate that the issue is corrected?
- A terminated pod's prior error and restart reason remain searchable.
- A generated test event is queryable with the correct source and timestamp.
- A simulated failed blob operation is visible despite unchanged storage capacity.
- An intentionally failed deployment reaches the active on-call team with run identity.
Explanation
Correct Answer
B:A generated test event is queryable with the correct source and timestamp. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Associate the approved data collection rule and validate required log flow to the workspace. Telemetry collection depends on correct agent, rule association and destination permissions.
Incorrect Answers
A:A terminated pod's prior error and restart reason remain searchable. 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 verification is: A generated test event is queryable with the correct source and timestamp. The crucial distinction is: Telemetry collection depends on correct agent, rule association and destination permissions.
C:A simulated failed blob operation is visible despite unchanged storage capacity. This would address a different situation, such as: Blob transaction failures increase, but dashboards track only storage account capacity in bytes. In the present case, the most directly relevant verification is: A generated test event is queryable with the correct source and timestamp. The crucial distinction is: Telemetry collection depends on correct agent, rule association and destination permissions.
D:An intentionally failed deployment reaches the active on-call team with run identity. This would address a different situation, such as: Production pipeline deployments fail overnight, but engineers notice only when checking the Azure DevOps portal the next morning. In the present case, the most directly relevant verification is: A generated test event is queryable with the correct source and timestamp. The crucial distinction is: Telemetry collection depends on correct agent, rule association and destination permissions.
Question 504
An Azure DevOps engineering team evaluates this condition: An AKS Helm upgrade fails after rendering a misconfigured resource, leaving pods partially updated. Which DevOps principle BEST explains the underlying weakness?
- Infrastructure deployment should preview and approve material changes before applying.
- Rolling replacement should account for connection draining and readiness transitions.
- Helm release operations need validated charts and controlled rollback behavior.
- Deployments should reference the exact verified image digest or protected immutable tag.
Explanation
Correct Answer
C:Helm release operations need validated charts and controlled rollback behavior. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Inspect Helm release history, rendered manifests, readiness probes and errors. An appropriate controlled response is: Use chart lint/templates, guarded upgrade behavior and supported rollback to a tested revision.
Incorrect Answers
A:Infrastructure deployment should preview and approve material changes before applying. This would address a different situation, such as: A Terraform pipeline applies a production plan without showing that a changed resource will be destroyed. In the present case, the most directly relevant principle is: Helm release operations need validated charts and controlled rollback behavior. The crucial distinction is: Helm release operations need validated charts and controlled rollback behavior.
B:Rolling replacement should account for connection draining and readiness transitions. 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 principle is: Helm release operations need validated charts and controlled rollback behavior. The crucial distinction is: Helm release operations need validated charts and controlled rollback behavior.
D:Deployments should reference the exact verified image digest or protected immutable tag. This would address a different situation, such as: A release manifest references an ACR latest tag that was replaced after QA approval. In the present case, the most directly relevant principle is: Helm release operations need validated charts and controlled rollback behavior. The crucial distinction is: Helm release operations need validated charts and controlled rollback behavior.
Question 505
After implementing the change, the team verifies: A company protects main but permits unrestricted direct commits to an unprotected release branch deployed to production. Which result would BEST demonstrate that the issue is corrected?
- A past supported version can be rebuilt and patched without mixing incompatible mainline changes.
- The new code merges and deploys disabled until the approved rollout cohort is enabled.
- A direct unauthorized push to the release branch is rejected.
- An added failing commit invalidates prior green status until retested.
Explanation
Correct Answer
C:A direct unauthorized push to the release branch is rejected. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Apply equivalent required reviews and test gates to all protected release branches. Every deployable branch needs controls proportionate to production impact.
Incorrect Answers
A:A past supported version can be rebuilt and patched without mixing incompatible mainline changes. This would address a different situation, such as: Old supported product versions receive urgent fixes but the team deletes prior release references after every mainline update. In the present case, the most directly relevant verification is: A direct unauthorized push to the release branch is rejected. The crucial distinction is: Every deployable branch needs controls proportionate to production impact.
B:The new code merges and deploys disabled until the approved rollout cohort is enabled. This would address a different situation, such as: A feature needs gradual rollout, but the team maintains a year-long divergent branch to hide unfinished functionality. In the present case, the most directly relevant verification is: A direct unauthorized push to the release branch is rejected. The crucial distinction is: Every deployable branch needs controls proportionate to production impact.
D:An added failing commit invalidates prior green status until retested. 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 verification is: A direct unauthorized push to the release branch is rejected. The crucial distinction is: Every deployable branch needs controls proportionate to production impact.
Question 506
An Azure DevOps engineering team evaluates this condition: Azure Boards reports near-zero cycle time because teams move stories to Active only when coding is almost finished. Which DevOps principle BEST explains the underlying weakness?
- DevOps metrics require precise event definitions and consistent populations.
- Delivery optimization needs separate measurements for queue, execution and waiting stages.
- Operational metrics must be interpreted by service context and business risk.
- Flow metrics depend on consistent state-transition definitions and truthful process data.
Explanation
Correct Answer
D:Flow metrics depend on consistent state-transition definitions and truthful process data. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Inspect workflow states, audit logs, start-of-work criteria and board queries. An appropriate controlled response is: Define and enforce meaningful Active and Done transitions in the team's process.
Incorrect Answers
A:DevOps metrics require precise event definitions and consistent populations. 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 principle is: Flow metrics depend on consistent state-transition definitions and truthful process data. The crucial distinction is: Flow metrics depend on consistent state-transition definitions and truthful process data.
B:Delivery optimization needs separate measurements for queue, execution and waiting stages. 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 principle is: Flow metrics depend on consistent state-transition definitions and truthful process data. The crucial distinction is: Flow metrics depend on consistent state-transition definitions and truthful process data.
C:Operational metrics must be interpreted by service context and business risk. 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 principle is: Flow metrics depend on consistent state-transition definitions and truthful process data. The crucial distinction is: Flow metrics depend on consistent state-transition definitions and truthful process data.
Question 507
A Microsoft DevOps team is addressing: A post-deployment verification job runs even when staging tests fail because its condition overrides the default dependency check. Which TWO complementary actions should be taken? Select TWO answers.
- Inspect endpoint authorization, service principal federation subject and Azure RBAC scope.
- Include explicit succeeded dependencies in the custom promotion condition.
- Use a deployment job bound to the protected environment and enforce resource checks.
- Review pipeline execution settings, resource locks and deployment timestamps.
- Review stage condition expressions, dependency status and test results.
Explanation
Correct Answers
B:Include explicit succeeded dependencies in the custom promotion condition. This supplies the controlled implementation needed for the scenario. Its complementary step is: Review stage condition expressions, dependency status and test results. Together they address: Custom YAML conditions must retain required success prerequisites.
E:Review stage condition expressions, dependency status and test results. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Include explicit succeeded dependencies in the custom promotion condition. Together they address: Custom YAML conditions must retain required success prerequisites.
Incorrect Answers
A:Inspect endpoint authorization, service principal federation subject and Azure RBAC scope. 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 (Review stage condition expressions, dependency status and test results.) and a controlled change (Include explicit succeeded dependencies in the custom promotion condition.).
C:Use a deployment job bound to the protected environment and enforce resource checks. This concerns a different DevOps situation: A YAML pipeline references a production environment but deploys through an unprotected job that never uses the environment resource. This case instead requires both a targeted investigation (Review stage condition expressions, dependency status and test results.) and a controlled change (Include explicit succeeded dependencies in the custom promotion condition.).
D:Review pipeline execution settings, resource locks and deployment timestamps. This concerns a different DevOps situation: Two production deployments target the same App Service slot simultaneously and the earlier one overwrites the newer release. This case instead requires both a targeted investigation (Review stage condition expressions, dependency status and test results.) and a controlled change (Include explicit succeeded dependencies in the custom promotion condition.).
Question 508
The DevOps team must resolve this situation: A developer accidentally removes an important local commit during an interactive rebase, but it is still reachable from Git reflog. Which engineering action is MOST appropriate?
- Normalize names and case-correct imports with cross-platform validation in PR checks.
- Configure supported sparse checkout or Scalar/partial clone for constrained workflows.
- Recover the intended commit using the recorded reflog SHA and a safe new branch.
- Revoke or rotate the credential, restrict exposure and perform controlled history remediation if necessary.
Explanation
Correct Answer
C:Recover the intended commit using the recorded reflog SHA and a safe new branch. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: The restored changes match the lost commit without overwriting colleagues' work. Git reflog can help recover recent local reference movements before garbage collection.
Incorrect Answers
A:Normalize names and case-correct imports with cross-platform validation in PR checks. 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 engineering action is: Recover the intended commit using the recorded reflog SHA and a safe new branch. The crucial distinction is: Git reflog can help recover recent local reference movements before garbage collection.
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: Recover the intended commit using the recorded reflog SHA and a safe new branch. The crucial distinction is: Git reflog can help recover recent local reference movements before garbage collection.
D:Revoke or rotate the credential, restrict exposure and perform controlled history remediation if necessary. 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 engineering action is: Recover the intended commit using the recorded reflog SHA and a safe new branch. The crucial distinction is: Git reflog can help recover recent local reference movements before garbage collection.
Question 509
The DevOps team must resolve this situation: A GitHub self-hosted runner accepts workflows from untrusted forks and shares its workspace with production credentials. Which engineering action is MOST appropriate?
- Configure approved GitHub connection permissions and required PR build validation.
- Restrict default GITHUB_TOKEN permissions and grant write scopes only to required jobs.
- Use a deployment job bound to the protected environment and enforce resource checks.
- Restrict runner access to trusted workflows and use ephemeral isolated runners for sensitive jobs.
Explanation
Correct Answer
D:Restrict runner access to trusted workflows and use ephemeral isolated runners for sensitive jobs. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: An untrusted fork cannot execute on the privileged production runner. Self-hosted runners require trust boundaries and workload-specific isolation.
Incorrect Answers
A:Configure approved GitHub connection permissions and required PR build validation. 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 engineering action is: Restrict runner access to trusted workflows and use ephemeral isolated runners for sensitive jobs. The crucial distinction is: Self-hosted runners require trust boundaries and workload-specific isolation.
B:Restrict default GITHUB_TOKEN permissions and grant write scopes only to required jobs. 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 engineering action is: Restrict runner access to trusted workflows and use ephemeral isolated runners for sensitive jobs. The crucial distinction is: Self-hosted runners require trust boundaries and workload-specific isolation.
C:Use a deployment job bound to the protected environment and enforce resource checks. This would address a different situation, such as: A YAML pipeline references a production environment but deploys through an unprotected job that never uses the environment resource. In the present case, the most directly relevant engineering action is: Restrict runner access to trusted workflows and use ephemeral isolated runners for sensitive jobs. The crucial distinction is: Self-hosted runners require trust boundaries and workload-specific isolation.
Question 510
An Azure DevOps engineering team evaluates this condition: A VM sends no logs to Log Analytics because its Azure Monitor Agent data collection rule targets another resource group. Which DevOps principle BEST explains the underlying weakness?
- Telemetry collection depends on correct agent, rule association and destination permissions.
- Network telemetry should complement application logs to locate connectivity failure.
- Operational monitoring must include service request errors, latency and availability, not just capacity.
- Container observability should preserve workload logs and restart context centrally.
Explanation
Correct Answer
A:Telemetry collection depends on correct agent, rule association and destination permissions. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Inspect VM agent health, DCR association, scope, endpoint and ingestion diagnostics. An appropriate controlled response is: Associate the approved data collection rule and validate required log flow to the workspace.
Incorrect Answers
B:Network telemetry should complement application logs to locate connectivity failure. 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 principle is: Telemetry collection depends on correct agent, rule association and destination permissions. The crucial distinction is: Telemetry collection depends on correct agent, rule association and destination permissions.
C:Operational monitoring must include service request errors, latency and availability, not just capacity. This would address a different situation, such as: Blob transaction failures increase, but dashboards track only storage account capacity in bytes. In the present case, the most directly relevant principle is: Telemetry collection depends on correct agent, rule association and destination permissions. The crucial distinction is: Telemetry collection depends on correct agent, rule association and destination permissions.
D:Container observability should preserve workload logs and restart context centrally. 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 principle is: Telemetry collection depends on correct agent, rule association and destination permissions. The crucial distinction is: Telemetry collection depends on correct agent, rule association and destination permissions.