Microsoft AZ-400 Practice Test 78
Question 770
The DevOps team must resolve this situation: Two separate repositories copy and edit a common authentication library independently, producing inconsistent fixes. Which engineering action is MOST appropriate?
- Publish common code as a reviewed versioned package or managed shared component.
- Revoke or rotate the credential, restrict exposure and perform controlled history remediation if necessary.
- Recover the intended commit using the recorded reflog SHA and a safe new branch.
- Pin the submodule to an approved commit and update it through reviewed changes.
Explanation
Correct Answer
A:Publish common code as a reviewed versioned package or managed shared component. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: Both consumers can choose approved versions and receive a security fix predictably. Cross-repository reuse needs an explicit versioned dependency strategy.
Incorrect Answers
B: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: Publish common code as a reviewed versioned package or managed shared component. The crucial distinction is: Cross-repository reuse needs an explicit versioned dependency strategy.
C:Recover the intended commit using the recorded reflog SHA and a safe new branch. This would address a different situation, such as: A developer accidentally removes an important local commit during an interactive rebase, but it is still reachable from Git reflog. In the present case, the most directly relevant engineering action is: Publish common code as a reviewed versioned package or managed shared component. The crucial distinction is: Cross-repository reuse needs an explicit versioned dependency strategy.
D:Pin the submodule to an approved commit and update it through reviewed changes. 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 engineering action is: Publish common code as a reviewed versioned package or managed shared component. The crucial distinction is: Cross-repository reuse needs an explicit versioned dependency strategy.
Question 771
After implementing the change, the team verifies: An API's new release increases CPU costs by 60%, but the load test reports green because no baseline exists. Which result would BEST demonstrate that the issue is corrected?
- The authorization module appears in coverage results and reduced testing is detected.
- Repeated runs produce stable results without masking functional failures.
- A fresh clean agent runs the same test suite with a reproducible toolchain.
- A test release exceeding the approved regression allowance fails the gate.
Explanation
Correct Answer
D:A test release exceeding the approved regression allowance fails the gate. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Implement repeatable baseline comparison gates for resource consumption and latency. Performance testing should compare measured changes against approved regression budgets.
Incorrect Answers
A: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: A test release exceeding the approved regression allowance fails the gate. The crucial distinction is: Performance testing should compare measured changes against approved regression budgets.
B:Repeated runs produce stable results without masking functional failures. This would address a different situation, such as: A nightly integration suite fails intermittently because test data is shared between parallel jobs. In the present case, the most directly relevant verification is: A test release exceeding the approved regression allowance fails the gate. The crucial distinction is: Performance testing should compare measured changes against approved regression budgets.
C: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: A test release exceeding the approved regression allowance fails the gate. The crucial distinction is: Performance testing should compare measured changes against approved regression budgets.
Question 772
An Azure DevOps engineering team evaluates this condition: A test task writes its service principal secret into verbose logs on every failing run. Which DevOps principle BEST explains the underlying weakness?
- Testing pipelines must avoid exposing credentials while preserving useful diagnostics.
- Database deployment tests should validate backward compatibility throughout rollout.
- Release validation should test critical business journeys rather than only process liveness.
- Coverage alone does not establish assertion quality or defect-detection strength.
Explanation
Correct Answer
A:Testing pipelines must avoid exposing credentials while preserving useful diagnostics. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Inspect task arguments, secret masking, logs, scope and token issuance. An appropriate controlled response is: Move test credentials into a protected secret store and suppress token output.
Incorrect Answers
B:Database deployment tests should validate backward compatibility throughout rollout. This would address a different situation, such as: A release adds a non-null column while old and new application versions temporarily operate together. In the present case, the most directly relevant principle is: Testing pipelines must avoid exposing credentials while preserving useful diagnostics. The crucial distinction is: Testing pipelines must avoid exposing credentials while preserving useful diagnostics.
C:Release validation should test critical business journeys rather than only process liveness. This would address a different situation, such as: A payment workflow completes an HTTP health check but fails after users submit the checkout form. In the present case, the most directly relevant principle is: Testing pipelines must avoid exposing credentials while preserving useful diagnostics. The crucial distinction is: Testing pipelines must avoid exposing credentials while preserving useful diagnostics.
D:Coverage alone does not establish assertion quality or defect-detection strength. This would address a different situation, such as: A business rule has 100% line coverage, but tests still pass when its comparison operator is reversed. In the present case, the most directly relevant principle is: Testing pipelines must avoid exposing credentials while preserving useful diagnostics. The crucial distinction is: Testing pipelines must avoid exposing credentials while preserving useful diagnostics.
Question 773
The DevOps team must resolve this situation: Two production deployments target the same App Service slot simultaneously and the earlier one overwrites the newer release. Which engineering action is MOST appropriate?
- Define explicit stage dependencies and artifact handoffs in the YAML pipeline.
- Configure appropriate exclusive locks or deployment concurrency controls per environment.
- Use a deployment job bound to the protected environment and enforce resource checks.
- Migrate the service connection to supported workload identity federation with scoped access.
Explanation
Correct Answer
B:Configure appropriate exclusive locks or deployment concurrency controls per environment. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: A simulated pair of releases leaves the later approved version running. Concurrent deployments require serialization or controlled exclusive access to shared environments.
Incorrect Answers
A:Define explicit stage dependencies and artifact handoffs in the YAML pipeline. This would address a different situation, such as: A deployment stage starts before the packaging stage publishes an artifact because stages are configured independently. In the present case, the most directly relevant engineering action is: Configure appropriate exclusive locks or deployment concurrency controls per environment. The crucial distinction is: Concurrent deployments require serialization or controlled exclusive access to shared environments.
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: Configure appropriate exclusive locks or deployment concurrency controls per environment. The crucial distinction is: Concurrent deployments require serialization or controlled exclusive access to shared environments.
D:Migrate the service connection to supported workload identity federation with scoped access. This would address a different situation, such as: An Azure DevOps pipeline's Azure Resource Manager service connection fails each quarter when its client secret expires. In the present case, the most directly relevant engineering action is: Configure appropriate exclusive locks or deployment concurrency controls per environment. The crucial distinction is: Concurrent deployments require serialization or controlled exclusive access to shared environments.
Question 774
Before changing the pipeline or service, engineers find: An autoscaled deployment needs consistent identity across short-lived Azure compute instances that are replaced frequently. Which evidence should the engineer inspect FIRST?
- Inspect project memberships, access level, team role and pipeline permissions.
- Inspect token scope, audit events, bot responsibilities and repository installation.
- Inspect organization membership, outside collaborator assignments and repository visibility.
- Inspect existing identity attachments, role assignments and resource replacement behavior.
Explanation
Correct Answer
D:Inspect existing identity attachments, role assignments and resource replacement behavior. This directly checks the uncertain behavior or control before changing production. A user-assigned managed identity can preserve identity lifecycle independently of individual resources. The resulting targeted action is: Attach an approved user-assigned managed identity to the participating compute resources.
Incorrect Answers
A:Inspect project memberships, access level, team role and pipeline permissions. 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 evidence is: Inspect existing identity attachments, role assignments and resource replacement behavior. The crucial distinction is: A user-assigned managed identity can preserve identity lifecycle independently of individual resources.
B: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 existing identity attachments, role assignments and resource replacement behavior. The crucial distinction is: A user-assigned managed identity can preserve identity lifecycle independently of individual resources.
C:Inspect organization membership, outside collaborator assignments and repository visibility. 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 evidence is: Inspect existing identity attachments, role assignments and resource replacement behavior. The crucial distinction is: A user-assigned managed identity can preserve identity lifecycle independently of individual resources.
Question 775
A Microsoft DevOps team is addressing: An Azure Repos project has GitHub Advanced Security licensed but required code and secret scanning were never enabled for key repos. Which TWO complementary actions should be taken? Select TWO answers.
- Inspect Azure DevOps Advanced Security settings, repository enablement and security alerts.
- Inspect workflow PR permissions, required checks and protected branch policy.
- Enable supported secret, dependency and code scanning for target Azure Repos repositories.
- Configure approved CodeQL analysis and risk-based remediation gates.
- Enable authorized secret scanning and push protection, then rotate exposed credentials.
Explanation
Correct Answers
A:Inspect Azure DevOps Advanced Security settings, repository enablement and security alerts. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Enable supported secret, dependency and code scanning for target Azure Repos repositories. Together they address: Security capability licensing does not prove scans run or findings are reviewed.
C:Enable supported secret, dependency and code scanning for target Azure Repos repositories. This supplies the controlled implementation needed for the scenario. Its complementary step is: Inspect Azure DevOps Advanced Security settings, repository enablement and security alerts. Together they address: Security capability licensing does not prove scans run or findings are reviewed.
Incorrect Answers
B:Inspect workflow PR permissions, required checks and protected branch policy. This concerns a different DevOps situation: An untrusted pull request can modify the secret-scanning workflow and disable scanning in its own run. This case instead requires both a targeted investigation (Inspect Azure DevOps Advanced Security settings, repository enablement and security alerts.) and a controlled change (Enable supported secret, dependency and code scanning for target Azure Repos repositories.).
D:Configure approved CodeQL analysis and risk-based remediation gates. This concerns a different DevOps situation: A C# API has risky SQL construction patterns, but pipeline checks only verify compilation. This case instead requires both a targeted investigation (Inspect Azure DevOps Advanced Security settings, repository enablement and security alerts.) and a controlled change (Enable supported secret, dependency and code scanning for target Azure Repos repositories.).
E:Enable authorized secret scanning and push protection, then rotate exposed credentials. This concerns a different DevOps situation: A developer accidentally commits a cloud token, but the repository has no automated alerting on leaked credentials. This case instead requires both a targeted investigation (Inspect Azure DevOps Advanced Security settings, repository enablement and security alerts.) and a controlled change (Enable supported secret, dependency and code scanning for target Azure Repos repositories.).
Question 776
Before changing the pipeline or service, engineers find: A QA vendor needs read-only test access but has been granted repository administration rights. Which evidence should the engineer inspect FIRST?
- Inspect project access groups, repository ACLs, token grants and vendor responsibilities.
- Inspect LFS usage, pointer resolution, CI checkout settings and quota alerts.
- Review code duplication, package provenance, semver constraints and release history.
- Inspect superproject gitlinks, submodule branch settings and build input records.
Explanation
Correct Answer
A:Inspect project access groups, repository ACLs, token grants and vendor responsibilities. This directly checks the uncertain behavior or control before changing production. Repository access should be limited to the minimum collaborator operations. The resulting targeted action is: Assign a read-only or suitably scoped collaborator role and remove administrative privileges.
Incorrect Answers
B:Inspect LFS usage, pointer resolution, CI checkout settings and quota alerts. 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 evidence is: Inspect project access groups, repository ACLs, token grants and vendor responsibilities. The crucial distinction is: Repository access should be limited to the minimum collaborator operations.
C:Review code duplication, package provenance, semver constraints and release history. 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 evidence is: Inspect project access groups, repository ACLs, token grants and vendor responsibilities. The crucial distinction is: Repository access should be limited to the minimum collaborator operations.
D:Inspect superproject gitlinks, submodule branch settings and build input records. 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 evidence is: Inspect project access groups, repository ACLs, token grants and vendor responsibilities. The crucial distinction is: Repository access should be limited to the minimum collaborator operations.
Question 777
An Azure DevOps engineering team evaluates this condition: A service builds on a Windows workstation but fails on Linux CI because a source import differs only in filename case. Which DevOps principle BEST explains the underlying weakness?
- Source control workflows must verify path case and platform consistency.
- Repository hygiene needs tracked-artifact policy and planned history repair when necessary.
- Repository lifecycle controls should remove stale rights and enforce appropriate archival state.
- Release references must be protected or cryptographically verified to preserve provenance.
Explanation
Correct Answer
A:Source control workflows must verify path case and platform consistency. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Review tracked paths, Git case settings, import statements and CI filesystem behavior. An appropriate controlled response is: Normalize names and case-correct imports with cross-platform validation in PR checks.
Incorrect Answers
B:Repository hygiene needs tracked-artifact policy and planned history repair when necessary. This would address a different situation, such as: A project accidentally committed generated build outputs and its repository history grew by several gigabytes. In the present case, the most directly relevant principle is: Source control workflows must verify path case and platform consistency. The crucial distinction is: Source control workflows must verify path case and platform consistency.
C:Repository lifecycle controls should remove stale rights and enforce appropriate archival state. 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 principle is: Source control workflows must verify path case and platform consistency. The crucial distinction is: Source control workflows must verify path case and platform consistency.
D:Release references must be protected or cryptographically verified to preserve provenance. This would address a different situation, such as: A release build uses a mutable tag name that engineers can retarget to a different unreviewed commit. In the present case, the most directly relevant principle is: Source control workflows must verify path case and platform consistency. The crucial distinction is: Source control workflows must verify path case and platform consistency.
Question 778
An Azure DevOps engineering team evaluates this condition: A downstream stage cannot determine the storage endpoint created by an infrastructure provisioning stage. 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.
- Azure Pipelines GitHub integration requires scoped access and appropriate PR triggers.
- Self-hosted runners require trust boundaries and workload-specific isolation.
Explanation
Correct Answer
A:Cross-stage values must be explicitly published and referenced through supported output syntax. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Inspect task output names, stage dependencies and variable references. An appropriate controlled response is: Emit a named output variable and consume it through the appropriate dependency expression.
Incorrect Answers
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: Cross-stage values must be explicitly published and referenced through supported output syntax. The crucial distinction is: Cross-stage values must be explicitly published and referenced through supported output syntax.
C:Azure Pipelines GitHub integration requires scoped access and appropriate PR triggers. This would address a different situation, such as: An Azure DevOps pipeline uses a GitHub repository but cannot run pull-request validation because its repository connection is misconfigured. In the present case, the most directly relevant principle is: Cross-stage values must be explicitly published and referenced through supported output syntax. The crucial distinction is: Cross-stage values must be explicitly published and referenced through supported output syntax.
D:Self-hosted runners require trust boundaries and workload-specific isolation. This would address a different situation, such as: A GitHub self-hosted runner accepts workflows from untrusted forks and shares its workspace with production credentials. In the present case, the most directly relevant principle is: Cross-stage values must be explicitly published and referenced through supported output syntax. The crucial distinction is: Cross-stage values must be explicitly published and referenced through supported output syntax.
Question 779
After implementing the change, the team verifies: A versioned REST API deploys successfully but its consumer documentation still lists removed fields. Which result would BEST demonstrate that the issue is corrected?
- An intentionally failed test deployment alerts the responsible team with release identity.
- Repeated delivery of the same event results in one linked change ticket.
- A pipeline stage change triggers corresponding diagram review and accurate dependency display.
- A sample published API description matches the deployed response schema.
Explanation
Correct Answer
D:A sample published API description matches the deployed response schema. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Generate and publish versioned API documentation as a release-gated artifact. API documentation must be published from the approved version and checked for compatibility.
Incorrect Answers
A:An intentionally failed test deployment alerts the responsible team with release identity. This would address a different situation, such as: Critical production deployment failures send only email to an unattended shared mailbox. In the present case, the most directly relevant verification is: A sample published API description matches the deployed response schema. The crucial distinction is: API documentation must be published from the approved version and checked for compatibility.
B:Repeated delivery of the same event results in one linked change ticket. This would address a different situation, such as: An Azure DevOps webhook creates duplicate change tickets whenever the receiving service retries a timeout. In the present case, the most directly relevant verification is: A sample published API description matches the deployed response schema. The crucial distinction is: API documentation must be published from the approved version and checked for compatibility.
C:A pipeline stage change triggers corresponding diagram review and accurate dependency display. This would address a different situation, such as: New engineers misread a multi-stage release dependency diagram because process documentation uses an obsolete screenshot. In the present case, the most directly relevant verification is: A sample published API description matches the deployed response schema. The crucial distinction is: API documentation must be published from the approved version and checked for compatibility.
Question 780
The DevOps team must resolve this situation: A release pipeline downloads the latest build artifact by name instead of the approved artifact from staging. Which engineering action is MOST appropriate?
- Pin the release to the verified pipeline run and immutable artifact identifier.
- Add a consistent unique build identifier to the approved CalVer scheme.
- Pin approved package ranges with lockfiles and deterministic restore settings.
- Commit a reviewed lockfile and run reproducible installation with dependency scanning.
Explanation
Correct Answer
A:Pin the release to the verified pipeline run and immutable artifact identifier. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: The production artifact SHA matches the artifact that completed staging verification. Artifact promotion must bind deployment to the exact tested build.
Incorrect Answers
B:Add a consistent unique build identifier to the approved CalVer scheme. This would address a different situation, such as: An organization uses calendar-versioned nightly internal tools but deployments cannot distinguish two builds made on the same day. In the present case, the most directly relevant engineering action is: Pin the release to the verified pipeline run and immutable artifact identifier. The crucial distinction is: Artifact promotion must bind deployment to the exact tested build.
C:Pin approved package ranges with lockfiles and deterministic restore settings. This would address a different situation, such as: The same Git commit restores different NuGet package versions one week apart and intermittently fails tests. In the present case, the most directly relevant engineering action is: Pin the release to the verified pipeline run and immutable artifact identifier. The crucial distinction is: Artifact promotion must bind deployment to the exact tested build.
D: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: Pin the release to the verified pipeline run and immutable artifact identifier. The crucial distinction is: Artifact promotion must bind deployment to the exact tested build.