Microsoft AZ-400 Practice Test 64
Question 630
The DevOps team must resolve this situation: A deployment removes an application instance while it has open customer sessions, causing dropped purchases. Which engineering action is MOST appropriate?
- Set appropriate maxUnavailable/maxSurge and validate readiness during rollout.
- Implement staged deployment rings with explicit gates and pause criteria.
- Configure graceful shutdown and appropriate draining before removing active targets.
- Isolate the tested change and instrument comparable outcome metrics across randomized cohorts.
Explanation
Correct Answer
C:Configure graceful shutdown and appropriate draining before removing active targets. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: An in-flight checkout completes during a controlled target replacement. Rolling replacement should account for connection draining and readiness transitions.
Incorrect Answers
A:Set appropriate maxUnavailable/maxSurge and validate readiness during rollout. This would address a different situation, such as: An AKS update removes every API pod simultaneously because maxUnavailable equals the full replica count. In the present case, the most directly relevant engineering action is: Configure graceful shutdown and appropriate draining before removing active targets. The crucial distinction is: Rolling replacement should account for connection draining and readiness transitions.
B:Implement staged deployment rings with explicit gates and pause criteria. This would address a different situation, such as: A desktop client update is rolled out to every employee globally at the same moment, causing a widespread outage. In the present case, the most directly relevant engineering action is: Configure graceful shutdown and appropriate draining before removing active targets. The crucial distinction is: Rolling replacement should account for connection draining and readiness transitions.
D:Isolate the tested change and instrument comparable outcome metrics across randomized cohorts. This would address a different situation, such as: Two user interface variants are shown, but the team changes both pricing logic and checkout latency simultaneously and cannot attribute outcomes. In the present case, the most directly relevant engineering action is: Configure graceful shutdown and appropriate draining before removing active targets. The crucial distinction is: Rolling replacement should account for connection draining and readiness transitions.
Question 631
A Microsoft DevOps team is addressing: New engineers misread a multi-stage release dependency diagram because process documentation uses an obsolete screenshot. Which TWO complementary actions should be taken? Select TWO answers.
- Generate draft release notes from structured commits and require review of breaking changes.
- Keep technical runbooks alongside source changes with reviewed documentation checks.
- Maintain a reviewed Mermaid diagram generated or updated alongside pipeline changes.
- Inspect pipeline YAML dependencies, existing diagrams and documentation change records.
- Review OpenAPI specification, release artifact version and documentation publication stage.
Explanation
Correct Answers
C:Maintain a reviewed Mermaid diagram generated or updated alongside pipeline changes. This supplies the controlled implementation needed for the scenario. Its complementary step is: Inspect pipeline YAML dependencies, existing diagrams and documentation change records. Together they address: Diagrams should reflect executable workflow dependencies and be maintainable with source.
D:Inspect pipeline YAML dependencies, existing diagrams and documentation change records. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Maintain a reviewed Mermaid diagram generated or updated alongside pipeline changes. Together they address: Diagrams should reflect executable workflow dependencies and be maintainable with source.
Incorrect Answers
A:Generate draft release notes from structured commits and require review of breaking changes. This concerns a different DevOps situation: An internal library ships monthly but its changelog omits breaking changes unless one maintainer remembers to edit it. This case instead requires both a targeted investigation (Inspect pipeline YAML dependencies, existing diagrams and documentation change records.) and a controlled change (Maintain a reviewed Mermaid diagram generated or updated alongside pipeline changes.).
B:Keep technical runbooks alongside source changes with reviewed documentation checks. This concerns a different DevOps situation: A repository wiki describes a build script that was removed six months ago and breaks onboarding. This case instead requires both a targeted investigation (Inspect pipeline YAML dependencies, existing diagrams and documentation change records.) and a controlled change (Maintain a reviewed Mermaid diagram generated or updated alongside pipeline changes.).
E:Review OpenAPI specification, release artifact version and documentation publication stage. This concerns a different DevOps situation: A versioned REST API deploys successfully but its consumer documentation still lists removed fields. This case instead requires both a targeted investigation (Inspect pipeline YAML dependencies, existing diagrams and documentation change records.) and a controlled change (Maintain a reviewed Mermaid diagram generated or updated alongside pipeline changes.).
Question 632
Before changing the pipeline or service, engineers find: A team's claimed 90% code coverage includes only generated code and excludes its core authorization module. Which evidence should the engineer inspect FIRST?
- Inspect parallel execution order, shared fixtures, timing and test retry patterns.
- Inspect service connections, resource IDs, variables and test cleanup scripts.
- Review coverage collection filters, included assemblies and security-sensitive modules.
- Review security workflow triggers, branch protection, SARIF uploads and alert policy.
Explanation
Correct Answer
C:Review coverage collection filters, included assemblies and security-sensitive modules. This directly checks the uncertain behavior or control before changing production. Coverage gates must reflect relevant tested production code and disclose exclusions. The resulting targeted action is: Collect meaningful coverage with transparent exclusions and enforce reviewed thresholds.
Incorrect Answers
A:Inspect parallel execution order, shared fixtures, timing and test retry patterns. 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 evidence is: Review coverage collection filters, included assemblies and security-sensitive modules. The crucial distinction is: Coverage gates must reflect relevant tested production code and disclose exclusions.
B:Inspect service connections, resource IDs, variables and test cleanup scripts. 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 evidence is: Review coverage collection filters, included assemblies and security-sensitive modules. The crucial distinction is: Coverage gates must reflect relevant tested production code and disclose exclusions.
D:Review security workflow triggers, branch protection, SARIF uploads and alert policy. This would address a different situation, such as: A GitHub repository scans vulnerabilities once a month but merges vulnerable code daily. In the present case, the most directly relevant evidence is: Review coverage collection filters, included assemblies and security-sensitive modules. The crucial distinction is: Coverage gates must reflect relevant tested production code and disclose exclusions.
Question 633
After implementing the change, the team verifies: A team overwrites the same image tag in Azure Container Registry for every build and loses reproducible deployment history. Which result would BEST demonstrate that the issue is corrected?
- The production artifact SHA matches the artifact that completed staging verification.
- A historic production release resolves to its original image content.
- Production restores an approved stable version while prerelease candidates stay isolated.
- A fresh workflow installs the private package without a long-lived personal token.
Explanation
Correct Answer
B:A historic production release resolves to its original image content. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Promote and deploy verified image digests with approved version labels. Release images should be identified by immutable digests or protected version tags.
Incorrect Answers
A:The production artifact SHA matches the artifact that completed staging verification. This would address a different situation, such as: A release pipeline downloads the latest build artifact by name instead of the approved artifact from staging. In the present case, the most directly relevant verification is: A historic production release resolves to its original image content. The crucial distinction is: Release images should be identified by immutable digests or protected version tags.
C:Production restores an approved stable version while prerelease candidates stay isolated. This would address a different situation, such as: A library's prerelease build appears in the same feed view consumed by production services and breaks compatibility. In the present case, the most directly relevant verification is: A historic production release resolves to its original image content. The crucial distinction is: Release images should be identified by immutable digests or protected version tags.
D:A fresh workflow installs the private package without a long-lived personal token. 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 verification is: A historic production release resolves to its original image content. The crucial distinction is: Release images should be identified by immutable digests or protected version tags.
Question 634
Before changing the pipeline or service, engineers find: A nightly integration suite fails intermittently because test data is shared between parallel jobs. Which evidence should the engineer inspect FIRST?
- Inspect task arguments, secret masking, logs, scope and token issuance.
- Inspect issue severity, gate criteria, exception owners and evidence attachments.
- Inspect global.json, agent image capabilities, use-dotnet steps and restore failures.
- Inspect parallel execution order, shared fixtures, timing and test retry patterns.
Explanation
Correct Answer
D:Inspect parallel execution order, shared fixtures, timing and test retry patterns. This directly checks the uncertain behavior or control before changing production. Reliable tests need deterministic data isolation and controlled concurrency. The resulting targeted action is: Give parallel tests isolated data and synchronize genuine shared dependencies.
Incorrect Answers
A:Inspect task arguments, secret masking, logs, scope and token issuance. This would address a different situation, such as: A test task writes its service principal secret into verbose logs on every failing run. In the present case, the most directly relevant evidence is: Inspect parallel execution order, shared fixtures, timing and test retry patterns. The crucial distinction is: Reliable tests need deterministic data isolation and controlled concurrency.
B:Inspect issue severity, gate criteria, exception owners and evidence attachments. This would address a different situation, such as: A deployment receives approval even when a required penetration-test issue remains unresolved and unaccepted. In the present case, the most directly relevant evidence is: Inspect parallel execution order, shared fixtures, timing and test retry patterns. The crucial distinction is: Reliable tests need deterministic data isolation and controlled concurrency.
C:Inspect global.json, agent image capabilities, use-dotnet steps and restore failures. 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 evidence is: Inspect parallel execution order, shared fixtures, timing and test retry patterns. The crucial distinction is: Reliable tests need deterministic data isolation and controlled concurrency.
Question 635
An Azure DevOps engineering team evaluates this condition: A developer accidentally removes an important local commit during an interactive rebase, but it is still reachable from Git reflog. Which DevOps principle BEST explains the underlying weakness?
- Git reflog can help recover recent local reference movements before garbage collection.
- Removing a secret from the latest tree does not revoke credentials or erase history.
- Repository hygiene needs tracked-artifact policy and planned history repair when necessary.
- Submodules should resolve to reviewed immutable commits for reproducible builds.
Explanation
Correct Answer
A:Git reflog can help recover recent local reference movements before garbage collection. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Inspect reflog entries, commit IDs, branch history and garbage collection status. An appropriate controlled response is: Recover the intended commit using the recorded reflog SHA and a safe new branch.
Incorrect Answers
B:Removing a secret from the latest tree does not revoke credentials or erase history. 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 principle is: Git reflog can help recover recent local reference movements before garbage collection. The crucial distinction is: Git reflog can help recover recent local reference movements before garbage collection.
C: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: Git reflog can help recover recent local reference movements before garbage collection. The crucial distinction is: Git reflog can help recover recent local reference movements before garbage collection.
D:Submodules should resolve to reviewed immutable commits for reproducible builds. 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 principle is: Git reflog can help recover recent local reference movements before garbage collection. The crucial distinction is: Git reflog can help recover recent local reference movements before garbage collection.
Question 636
A Microsoft DevOps team is addressing: A retailer wants to expose a new checkout feature to 5% of customers but its current flag is on or off for everyone. Which TWO complementary actions should be taken? Select TWO answers.
- Inspect incident severity, release branch plan, mandatory checks and approver availability.
- Inspect slot settings, storage connection strings, function enablement and queue ownership.
- Configure a controlled percentage or targeting filter with versioned rollout criteria.
- Review artifact retention, release manifest, service health signals and restoration test.
- Review flag filter configuration, client context, expected cohorts and telemetry.
Explanation
Correct Answers
C:Configure a controlled percentage or targeting filter with versioned rollout criteria. This supplies the controlled implementation needed for the scenario. Its complementary step is: Review flag filter configuration, client context, expected cohorts and telemetry. Together they address: Targeting filters can control feature exposure by cohort or percentage.
E:Review flag filter configuration, client context, expected cohorts and telemetry. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Configure a controlled percentage or targeting filter with versioned rollout criteria. Together they address: Targeting filters can control feature exposure by cohort or percentage.
Incorrect Answers
A:Inspect incident severity, release branch plan, mandatory checks and approver availability. This concerns a different DevOps situation: A security vulnerability needs same-day correction but the organization’s normal three-week release train blocks all fixes. This case instead requires both a targeted investigation (Review flag filter configuration, client context, expected cohorts and telemetry.) and a controlled change (Configure a controlled percentage or targeting filter with versioned rollout criteria.).
B:Inspect slot settings, storage connection strings, function enablement and queue ownership. This concerns a different DevOps situation: An Azure Functions staging slot unexpectedly processes production queue messages before its swap because a trigger configuration was not isolated. This case instead requires both a targeted investigation (Review flag filter configuration, client context, expected cohorts and telemetry.) and a controlled change (Configure a controlled percentage or targeting filter with versioned rollout criteria.).
D:Review artifact retention, release manifest, service health signals and restoration test. This concerns a different DevOps situation: A release detects elevated errors but cannot roll back because the prior verified package was deleted. This case instead requires both a targeted investigation (Review flag filter configuration, client context, expected cohorts and telemetry.) and a controlled change (Configure a controlled percentage or targeting filter with versioned rollout criteria.).
Question 637
After implementing the change, the team verifies: An Azure Pipeline fails only on hosted agents because tests require an uninstalled legacy .NET SDK. Which result would BEST demonstrate that the issue is corrected?
- Repeated runs produce stable results without masking functional failures.
- A release is blocked when representative p95 latency exceeds its objective.
- A fresh clean agent runs the same test suite with a reproducible toolchain.
- An intentionally failed migration prevents downstream integration tests from running.
Explanation
Correct Answer
C:A fresh clean agent runs the same test suite with a reproducible toolchain. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Install or select the approved SDK version in the pipeline before test execution. Test environments must provision declared toolchains rather than depend on developer machines.
Incorrect Answers
A: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 fresh clean agent runs the same test suite with a reproducible toolchain. The crucial distinction is: Test environments must provision declared toolchains rather than depend on developer machines.
B:A release is blocked when representative p95 latency exceeds its objective. This would address a different situation, such as: An API passes functional tests for one user but violates latency objectives under 1,000 concurrent clients. In the present case, the most directly relevant verification is: A fresh clean agent runs the same test suite with a reproducible toolchain. The crucial distinction is: Test environments must provision declared toolchains rather than depend on developer machines.
D:An intentionally failed migration prevents downstream integration tests from running. This would address a different situation, such as: A pipeline starts integration tests before deploying the dependent database migration, causing intermittent failures. In the present case, the most directly relevant verification is: A fresh clean agent runs the same test suite with a reproducible toolchain. The crucial distinction is: Test environments must provision declared toolchains rather than depend on developer machines.
Question 638
An Azure DevOps engineering team evaluates this condition: A Bicep deployment creates an application before the required Key Vault access is effective, causing startup failures. Which DevOps principle BEST explains the underlying weakness?
- Self-service environment catalogs can standardize provisioning and lifecycle governance.
- Deployment mode and scope determine whether absent resources may be removed.
- IaC dependency design must express when required resources and authorization are ready.
- IaC state may contain sensitive values and requires protected remote storage and controlled locking.
Explanation
Correct Answer
C:IaC dependency design must express when required resources and authorization are ready. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Inspect resource references, role assignments, provisioning order and propagation behavior. An appropriate controlled response is: Add explicit dependency and readiness checks where Azure role propagation needs validation.
Incorrect Answers
A:Self-service environment catalogs can standardize provisioning and lifecycle governance. This would address a different situation, such as: Developers need consistent temporary test environments, but each manually provisions expensive subscriptions and forgets cleanup. In the present case, the most directly relevant principle is: IaC dependency design must express when required resources and authorization are ready. The crucial distinction is: IaC dependency design must express when required resources and authorization are ready.
B:Deployment mode and scope determine whether absent resources may be removed. This would address a different situation, such as: A deployment pipeline uses complete mode unintentionally and deletes resources omitted from an updated ARM template. In the present case, the most directly relevant principle is: IaC dependency design must express when required resources and authorization are ready. The crucial distinction is: IaC dependency design must express when required resources and authorization are ready.
D:IaC state may contain sensitive values and requires protected remote storage and controlled locking. This would address a different situation, such as: A Terraform workflow stores its state file in an unencrypted shared file share accessible to all developers. In the present case, the most directly relevant principle is: IaC dependency design must express when required resources and authorization are ready. The crucial distinction is: IaC dependency design must express when required resources and authorization are ready.
Question 639
After implementing the change, the team verifies: Old supported product versions receive urgent fixes but the team deletes prior release references after every mainline update. Which result would BEST demonstrate that the issue is corrected?
- A direct unauthorized push to the release branch is rejected.
- A change to the protected payment directory cannot merge without authorized approval.
- A self-approved risky test change is blocked while reviewed passing changes merge.
- A past supported version can be rebuilt and patched without mixing incompatible mainline changes.
Explanation
Correct Answer
D:A past supported version can be rebuilt and patched without mixing incompatible mainline changes. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Maintain controlled support branches with signed or protected release tags and planned retirement. Maintenance branching should match support windows and preserve immutable release history.
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: A past supported version can be rebuilt and patched without mixing incompatible mainline changes. The crucial distinction is: Maintenance branching should match support windows and preserve immutable release history.
B: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: A past supported version can be rebuilt and patched without mixing incompatible mainline changes. The crucial distinction is: Maintenance branching should match support windows and preserve immutable release history.
C:A self-approved risky test change is blocked while reviewed passing changes merge. This would address a different situation, such as: A repository's default branch allows authors to approve their own high-risk changes without independent review. In the present case, the most directly relevant verification is: A past supported version can be rebuilt and patched without mixing incompatible mainline changes. The crucial distinction is: Maintenance branching should match support windows and preserve immutable release history.
Question 640
The DevOps team must resolve this situation: A developer accidentally commits a cloud token, but the repository has no automated alerting on leaked credentials. Which engineering action is MOST appropriate?
- Configure approved CodeQL analysis and risk-based remediation gates.
- Enable authorized secret scanning and push protection, then rotate exposed credentials.
- Use risk-based triage with owners, remediation SLAs and documented waivers.
- Enable Dependabot alerts and governed security updates with CI checks.
Explanation
Correct Answer
B:Enable authorized secret scanning and push protection, then rotate exposed credentials. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: A harmless test token pattern triggers the expected prevention or review workflow. Secret scanning should detect exposed credentials and trigger prompt containment.
Incorrect Answers
A:Configure approved CodeQL analysis and risk-based remediation gates. 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 engineering action is: Enable authorized secret scanning and push protection, then rotate exposed credentials. The crucial distinction is: Secret scanning should detect exposed credentials and trigger prompt containment.
C:Use risk-based triage with owners, remediation SLAs and documented waivers. 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 engineering action is: Enable authorized secret scanning and push protection, then rotate exposed credentials. The crucial distinction is: Secret scanning should detect exposed credentials and trigger prompt containment.
D:Enable Dependabot alerts and governed security updates with CI checks. This would address a different situation, such as: A public repository uses a vulnerable transitive NPM package but Dependabot alerts are disabled. In the present case, the most directly relevant engineering action is: Enable authorized secret scanning and push protection, then rotate exposed credentials. The crucial distinction is: Secret scanning should detect exposed credentials and trigger prompt containment.