Microsoft AZ-400 Practice Test 82
Question 810
The DevOps team must resolve this situation: Release rollback fails because the pipeline cleaned the package version deployed last week. Which engineering action is MOST appropriate?
- Configure an approved upstream source and appropriate package permissions in Azure Artifacts.
- Commit a reviewed lockfile and run reproducible installation with dependency scanning.
- Authorize the consuming repository and assign minimum packages:read access.
- Protect deployed and rollback-candidate artifacts with defined retention exceptions.
Explanation
Correct Answer
D:Protect deployed and rollback-candidate artifacts with defined retention exceptions. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: A rehearsal restores the prior release package without relying on an engineer cache. Retention must preserve artifacts and dependencies required for defined rollback windows.
Incorrect Answers
A:Configure an approved upstream source and appropriate package permissions in Azure Artifacts. This would address a different situation, such as: A package feed cannot install vetted public dependencies during a disconnected corporate build unless developers manually copy files. In the present case, the most directly relevant engineering action is: Protect deployed and rollback-candidate artifacts with defined retention exceptions. The crucial distinction is: Retention must preserve artifacts and dependencies required for defined rollback windows.
B:Commit a reviewed lockfile and run reproducible installation with dependency scanning. This would address a different situation, such as: A Node application pins a top-level package but a transitive dependency introduces an unreviewed major behavior change. In the present case, the most directly relevant engineering action is: Protect deployed and rollback-candidate artifacts with defined retention exceptions. The crucial distinction is: Retention must preserve artifacts and dependencies required for defined rollback windows.
C:Authorize the consuming repository and assign minimum packages:read access. This would address a different situation, such as: A GitHub Actions workflow receives 403 when installing a private package owned by another organization repository. In the present case, the most directly relevant engineering action is: Protect deployed and rollback-candidate artifacts with defined retention exceptions. The crucial distinction is: Retention must preserve artifacts and dependencies required for defined rollback windows.
Question 811
After implementing the change, the team verifies: A pull request passes security tests, then receives new commits but can merge without rerunning required checks. Which result would BEST demonstrate that the issue is corrected?
- A direct unauthorized push to the release branch is rejected.
- An added failing commit invalidates prior green status until retested.
- A squashed change can be traced from release to approved PR and tests.
- A change to the protected payment directory cannot merge without authorized approval.
Explanation
Correct Answer
B:An added failing commit invalidates prior green status until retested. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Require fresh passing checks after updates to the protected pull request. Required checks must apply to the head commit actually being merged.
Incorrect Answers
A:A direct unauthorized push to the release branch is rejected. This would address a different situation, such as: A company protects main but permits unrestricted direct commits to an unprotected release branch deployed to production. In the present case, the most directly relevant verification is: An added failing commit invalidates prior green status until retested. The crucial distinction is: Required checks must apply to the head commit actually being merged.
C:A squashed change can be traced from release to approved PR and tests. This would address a different situation, such as: An audit team cannot associate production features with reviewed pull requests after squash merging because release metadata records only original feature SHAs. In the present case, the most directly relevant verification is: An added failing commit invalidates prior green status until retested. The crucial distinction is: Required checks must apply to the head commit actually being merged.
D:A change to the protected payment directory cannot merge without authorized approval. This would address a different situation, such as: Payment processing files require security review, but code owner review is only advisory. In the present case, the most directly relevant verification is: An added failing commit invalidates prior green status until retested. The crucial distinction is: Required checks must apply to the head commit actually being merged.
Question 812
A Microsoft DevOps team is addressing: A production deployment depends on a time-limited Azure Policy exemption that was never documented or reviewed. Which TWO complementary actions should be taken? Select TWO answers.
- Publish approved Azure Deployment Environments definitions with scoped self-service and expiration.
- Review image digest provenance, deployment parameters and environment history.
- Require reviewed what-if output and controlled data-preserving migration before deployment.
- Inspect policy assignment, exemption resource metadata, business rationale and expiry.
- Create a governed scoped exemption with an owner and expiry or redesign for compliance.
Explanation
Correct Answers
D:Inspect policy assignment, exemption resource metadata, business rationale and expiry. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Create a governed scoped exemption with an owner and expiry or redesign for compliance. Together they address: Policy exemptions need justified owner approval, scope and expiration.
E:Create a governed scoped exemption with an owner and expiry or redesign for compliance. This supplies the controlled implementation needed for the scenario. Its complementary step is: Inspect policy assignment, exemption resource metadata, business rationale and expiry. Together they address: Policy exemptions need justified owner approval, scope and expiration.
Incorrect Answers
A:Publish approved Azure Deployment Environments definitions with scoped self-service and expiration. This concerns a different DevOps situation: Developers need consistent temporary test environments, but each manually provisions expensive subscriptions and forgets cleanup. This case instead requires both a targeted investigation (Inspect policy assignment, exemption resource metadata, business rationale and expiry.) and a controlled change (Create a governed scoped exemption with an owner and expiry or redesign for compliance.).
B:Review image digest provenance, deployment parameters and environment history. This concerns a different DevOps situation: Application images are deployed manually after infra provisioning and the deployed image tag is not recorded in Bicep or the release pipeline. This case instead requires both a targeted investigation (Inspect policy assignment, exemption resource metadata, business rationale and expiry.) and a controlled change (Create a governed scoped exemption with an owner and expiry or redesign for compliance.).
C:Require reviewed what-if output and controlled data-preserving migration before deployment. This concerns a different DevOps situation: A refactor changes a storage account name while the pipeline applies it directly to production. This case instead requires both a targeted investigation (Inspect policy assignment, exemption resource metadata, business rationale and expiry.) and a controlled change (Create a governed scoped exemption with an owner and expiry or redesign for compliance.).
Question 813
An Azure DevOps engineering team evaluates this condition: Developers can edit protected deployment environments and approve their own releases because one group owns all project settings. Which DevOps principle BEST explains the underlying weakness?
- External access should be scoped to the minimum repository and role.
- Azure DevOps access levels and security groups should reflect actual job duties.
- App-based automation can use narrow installation permissions and accountable identity.
- Administrative and approval authority should be segregated for sensitive deployments.
Explanation
Correct Answer
D:Administrative and approval authority should be segregated for sensitive deployments. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Inspect security groups, environment approvers, service connection owners and bypass rights. An appropriate controlled response is: Separate pipeline authors from release-approval administrators and audit exceptions.
Incorrect Answers
A:External access should be scoped to the minimum repository and role. 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 principle is: Administrative and approval authority should be segregated for sensitive deployments. The crucial distinction is: Administrative and approval authority should be segregated for sensitive deployments.
B:Azure DevOps access levels and security groups should reflect actual job duties. This would address a different situation, such as: A product manager needs to view Azure Boards and submit work items but is given full build administration permissions. In the present case, the most directly relevant principle is: Administrative and approval authority should be segregated for sensitive deployments. The crucial distinction is: Administrative and approval authority should be segregated for sensitive deployments.
C:App-based automation can use narrow installation permissions and accountable identity. 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 principle is: Administrative and approval authority should be segregated for sensitive deployments. The crucial distinction is: Administrative and approval authority should be segregated for sensitive deployments.
Question 814
The DevOps team must resolve this situation: Azure resource logs show unusual production service principal sign-ins, but a dashboard aggregates all identities together. Which engineering action is MOST appropriate?
- Add release annotations and traceable version properties to Application Insights.
- Use a Kusto summarize query grouped by deployment version and appropriate time bins.
- Remediate the verified disk bottleneck and validate end-to-end service performance.
- Build KQL queries with identity dimensions and appropriate anomaly thresholds.
Explanation
Correct Answer
D:Build KQL queries with identity dimensions and appropriate anomaly thresholds. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: A controlled unexpected identity event is distinguishable from authorized automation. Security observability requires principal-specific queries and context.
Incorrect Answers
A:Add release annotations and traceable version properties to Application Insights. 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 engineering action is: Build KQL queries with identity dimensions and appropriate anomaly thresholds. The crucial distinction is: Security observability requires principal-specific queries and context.
B:Use a Kusto summarize query grouped by deployment version and appropriate time bins. This would address a different situation, such as: A Log Analytics workspace stores application exceptions, but engineers cannot identify which deployment revision triggered a spike. In the present case, the most directly relevant engineering action is: Build KQL queries with identity dimensions and appropriate anomaly thresholds. The crucial distinction is: Security observability requires principal-specific queries and context.
C:Remediate the verified disk bottleneck and validate end-to-end service performance. This would address a different situation, such as: An application slows while CPU is low but disk I/O is saturated; operators conclude more vCPUs are needed. In the present case, the most directly relevant engineering action is: Build KQL queries with identity dimensions and appropriate anomaly thresholds. The crucial distinction is: Security observability requires principal-specific queries and context.
Question 815
After implementing the change, the team verifies: Two separate repositories copy and edit a common authentication library independently, producing inconsistent fixes. Which result would BEST demonstrate that the issue is corrected?
- A former contributor cannot push to the archived security repository.
- Two builds of the same main commit use the exact approved submodule revision.
- New commits exclude build outputs and repository history action is communicated safely.
- Both consumers can choose approved versions and receive a security fix predictably.
Explanation
Correct Answer
D:Both consumers can choose approved versions and receive a security fix predictably. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Publish common code as a reviewed versioned package or managed shared component. Cross-repository reuse needs an explicit versioned dependency strategy.
Incorrect Answers
A:A former contributor cannot push to the archived security repository. 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 verification is: Both consumers can choose approved versions and receive a security fix predictably. The crucial distinction is: Cross-repository reuse needs an explicit versioned dependency strategy.
B:Two builds of the same main commit use the exact approved submodule revision. This would address a different situation, such as: A build references a Git submodule by moving branch and occasionally acquires incompatible dependency changes. In the present case, the most directly relevant verification is: Both consumers can choose approved versions and receive a security fix predictably. The crucial distinction is: Cross-repository reuse needs an explicit versioned dependency strategy.
C:New commits exclude build outputs and repository history action is communicated safely. 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 verification is: Both consumers can choose approved versions and receive a security fix predictably. The crucial distinction is: Cross-repository reuse needs an explicit versioned dependency strategy.
Question 816
A Microsoft DevOps team is addressing: A nightly integration suite fails intermittently because test data is shared between parallel jobs. Which TWO complementary actions should be taken? Select TWO answers.
- Use a dedicated test subscription or resource group with restricted identity permissions.
- Inspect connection policy, test-stage service connections, database logs and environment settings.
- Inspect parallel execution order, shared fixtures, timing and test retry patterns.
- Give parallel tests isolated data and synchronize genuine shared dependencies.
- Review coverage collection filters, included assemblies and security-sensitive modules.
Explanation
Correct Answers
C:Inspect parallel execution order, shared fixtures, timing and test retry patterns. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Give parallel tests isolated data and synchronize genuine shared dependencies. Together they address: Reliable tests need deterministic data isolation and controlled concurrency.
D:Give parallel tests isolated data and synchronize genuine shared dependencies. This supplies the controlled implementation needed for the scenario. Its complementary step is: Inspect parallel execution order, shared fixtures, timing and test retry patterns. Together they address: Reliable tests need deterministic data isolation and controlled concurrency.
Incorrect Answers
A:Use a dedicated test subscription or resource group with restricted identity permissions. This concerns a different DevOps situation: A test pipeline reuses a production storage account and occasionally deletes customer fixtures. This case instead requires both a targeted investigation (Inspect parallel execution order, shared fixtures, timing and test retry patterns.) and a controlled change (Give parallel tests isolated data and synchronize genuine shared dependencies.).
B:Inspect connection policy, test-stage service connections, database logs and environment settings. This concerns a different DevOps situation: Service unit tests pass but integration fails because Azure SQL connectivity differs between staging and production. This case instead requires both a targeted investigation (Inspect parallel execution order, shared fixtures, timing and test retry patterns.) and a controlled change (Give parallel tests isolated data and synchronize genuine shared dependencies.).
E:Review coverage collection filters, included assemblies and security-sensitive modules. This concerns a different DevOps situation: A team's claimed 90% code coverage includes only generated code and excludes its core authorization module. This case instead requires both a targeted investigation (Inspect parallel execution order, shared fixtures, timing and test retry patterns.) and a controlled change (Give parallel tests isolated data and synchronize genuine shared dependencies.).
Question 817
After implementing the change, the team verifies: An audit team cannot associate production features with reviewed pull requests after squash merging because release metadata records only original feature SHAs. Which result would BEST demonstrate that the issue is corrected?
- A squashed change can be traced from release to approved PR and tests.
- A release process selects the exact approved commit instead of a similarly named branch.
- The new code merges and deploys disabled until the approved rollout cohort is enabled.
- A past supported version can be rebuilt and patched without mixing incompatible mainline changes.
Explanation
Correct Answer
A:A squashed change can be traced from release to approved PR and tests. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Record the final mainline commit and linked PR/work item in deployment provenance. Traceability after squash merges needs durable pull request and resulting commit identifiers.
Incorrect Answers
B:A release process selects the exact approved commit instead of a similarly named branch. This would address a different situation, such as: Teams use dozens of release branches with ambiguous names, and automation often deploys the wrong branch. In the present case, the most directly relevant verification is: A squashed change can be traced from release to approved PR and tests. The crucial distinction is: Traceability after squash merges needs durable pull request and resulting commit identifiers.
C: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 squashed change can be traced from release to approved PR and tests. The crucial distinction is: Traceability after squash merges needs durable pull request and resulting commit identifiers.
D: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 squashed change can be traced from release to approved PR and tests. The crucial distinction is: Traceability after squash merges needs durable pull request and resulting commit identifiers.
Question 818
An Azure DevOps engineering team evaluates this condition: A binary distribution uses open-source dependencies but its release process does not check license obligations. Which DevOps principle BEST explains the underlying weakness?
- Code scanning should detect relevant source vulnerabilities before release.
- Security scanning should prioritize relevant risk and accountable remediation.
- Compliance scanning should identify licensing constraints before external software distribution.
- Automated security/compliance scanning should retain dependency provenance and approved package sources.
Explanation
Correct Answer
C:Compliance scanning should identify licensing constraints before external software distribution. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Review SBOM, open-source license records, distribution type and exception approvals. An appropriate controlled response is: Add software composition/license policy checks and reviewed exceptions to CI.
Incorrect Answers
A:Code scanning should detect relevant source vulnerabilities before release. This would address a different situation, such as: A C# API has risky SQL construction patterns, but pipeline checks only verify compilation. In the present case, the most directly relevant principle is: Compliance scanning should identify licensing constraints before external software distribution. The crucial distinction is: Compliance scanning should identify licensing constraints before external software distribution.
B:Security scanning should prioritize relevant risk and accountable remediation. This would address a different situation, such as: Hundreds of low-severity dependency alerts crowd out a critical exploitable issue in production. In the present case, the most directly relevant principle is: Compliance scanning should identify licensing constraints before external software distribution. The crucial distinction is: Compliance scanning should identify licensing constraints before external software distribution.
D:Automated security/compliance scanning should retain dependency provenance and approved package sources. This would address a different situation, such as: A dependency update workflow proposes a new package version but its artifact origin is not recorded, weakening supply-chain review. In the present case, the most directly relevant principle is: Compliance scanning should identify licensing constraints before external software distribution. The crucial distinction is: Compliance scanning should identify licensing constraints before external software distribution.
Question 819
After implementing the change, the team verifies: A team's claimed 90% code coverage includes only generated code and excludes its core authorization module. Which result would BEST demonstrate that the issue is corrected?
- The authorization module appears in coverage results and reduced testing is detected.
- A bad connectivity rule fails before release while approved paths succeed.
- A deliberately failing unit test prevents the pull request from merging.
- A fresh clean agent runs the same test suite with a reproducible toolchain.
Explanation
Correct Answer
A:The authorization module appears in coverage results and reduced testing is detected. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Collect meaningful coverage with transparent exclusions and enforce reviewed thresholds. Coverage gates must reflect relevant tested production code and disclose exclusions.
Incorrect Answers
B:A bad connectivity rule fails before release while approved paths succeed. This would address a different situation, such as: Service unit tests pass but integration fails because Azure SQL connectivity differs between staging and production. In the present case, the most directly relevant verification is: The authorization module appears in coverage results and reduced testing is detected. The crucial distinction is: Coverage gates must reflect relevant tested production code and disclose exclusions.
C:A deliberately failing unit test prevents the pull request from merging. This would address a different situation, such as: A protected mainline accepts pull requests before a required unit test suite finishes, causing broken packages. In the present case, the most directly relevant verification is: The authorization module appears in coverage results and reduced testing is detected. The crucial distinction is: Coverage gates must reflect relevant tested production code and disclose exclusions.
D:A fresh clean agent runs the same test suite with a reproducible toolchain. This would address a different situation, such as: An Azure Pipeline fails only on hosted agents because tests require an uninstalled legacy.NET SDK. In the present case, the most directly relevant verification is: The authorization module appears in coverage results and reduced testing is detected. The crucial distinction is: Coverage gates must reflect relevant tested production code and disclose exclusions.
Question 820
After implementing the change, the team verifies: A release adds a non-null column while old and new application versions temporarily operate together. Which result would BEST demonstrate that the issue is corrected?
- A fresh clean agent runs the same test suite with a reproducible toolchain.
- A destructive test cannot modify the protected production storage account.
- Both app versions write correctly during transition and a rollback stays feasible.
- The authorization module appears in coverage results and reduced testing is detected.
Explanation
Correct Answer
C:Both app versions write correctly during transition and a rollback stays feasible. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Test expand-and-contract schema changes against concurrent old and new application instances. Database deployment tests should validate backward compatibility throughout rollout.
Incorrect Answers
A:A fresh clean agent runs the same test suite with a reproducible toolchain. This would address a different situation, such as: An Azure Pipeline fails only on hosted agents because tests require an uninstalled legacy.NET SDK. In the present case, the most directly relevant verification is: Both app versions write correctly during transition and a rollback stays feasible. The crucial distinction is: Database deployment tests should validate backward compatibility throughout rollout.
B:A destructive test cannot modify the protected production storage account. This would address a different situation, such as: A test pipeline reuses a production storage account and occasionally deletes customer fixtures. In the present case, the most directly relevant verification is: Both app versions write correctly during transition and a rollback stays feasible. The crucial distinction is: Database deployment tests should validate backward compatibility throughout rollout.
D:The authorization module appears in coverage results and reduced testing is detected. This would address a different situation, such as: A team's claimed 90% code coverage includes only generated code and excludes its core authorization module. In the present case, the most directly relevant verification is: Both app versions write correctly during transition and a rollback stays feasible. The crucial distinction is: Database deployment tests should validate backward compatibility throughout rollout.