Microsoft AZ-400 Practice Test 45
Question 440
An Azure DevOps engineering team evaluates this condition: A web application must deploy without interruption, but direct production updates restart every active instance. Which DevOps principle BEST explains the underlying weakness?
- Deployment slots support staged verification and controlled production swaps where supported.
- Blue-green rollout must preserve shared database compatibility during transition.
- Targeting filters can control feature exposure by cohort or percentage.
- Rolling update policies should preserve minimum ready capacity during replacement.
Explanation
Correct Answer
A:Deployment slots support staged verification and controlled production swaps where supported. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Inspect slot configuration, sticky settings, warmup endpoints and swap history. An appropriate controlled response is: Deploy the candidate to a staging slot, validate health, then perform a controlled swap.
Incorrect Answers
B:Blue-green rollout must preserve shared database compatibility during transition. This would address a different situation, such as: An App Service slot swap puts new code online while old instances still write to a shared Azure SQL schema. In the present case, the most directly relevant principle is: Deployment slots support staged verification and controlled production swaps where supported. The crucial distinction is: Deployment slots support staged verification and controlled production swaps where supported.
C:Targeting filters can control feature exposure by cohort or percentage. This would address a different situation, such as: A retailer wants to expose a new checkout feature to 5% of customers but its current flag is on or off for everyone. In the present case, the most directly relevant principle is: Deployment slots support staged verification and controlled production swaps where supported. The crucial distinction is: Deployment slots support staged verification and controlled production swaps where supported.
D:Rolling update policies should preserve minimum ready capacity during replacement. 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 principle is: Deployment slots support staged verification and controlled production swaps where supported. The crucial distinction is: Deployment slots support staged verification and controlled production swaps where supported.
Question 441
An Azure DevOps engineering team evaluates this condition: A feature needs gradual rollout, but the team maintains a year-long divergent branch to hide unfinished functionality. Which DevOps principle BEST explains the underlying weakness?
- Traceability after squash merges needs durable pull request and resulting commit identifiers.
- Every deployable branch needs controls proportionate to production impact.
- Feature toggles can separate deployment from activation while limiting branch divergence.
- Required checks must apply to the head commit actually being merged.
Explanation
Correct Answer
C:Feature toggles can separate deployment from activation while limiting branch divergence. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Inspect merge conflicts, feature activation requirements and current flag controls. An appropriate controlled response is: Integrate incomplete code safely behind governed feature flags and short-lived branches.
Incorrect Answers
A:Traceability after squash merges needs durable pull request and resulting commit identifiers. 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 principle is: Feature toggles can separate deployment from activation while limiting branch divergence. The crucial distinction is: Feature toggles can separate deployment from activation while limiting branch divergence.
B:Every deployable branch needs controls proportionate to production impact. 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 principle is: Feature toggles can separate deployment from activation while limiting branch divergence. The crucial distinction is: Feature toggles can separate deployment from activation while limiting branch divergence.
D:Required checks must apply to the head commit actually being merged. 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 principle is: Feature toggles can separate deployment from activation while limiting branch divergence. The crucial distinction is: Feature toggles can separate deployment from activation while limiting branch divergence.
Question 442
The DevOps team must resolve this situation: A web application must deploy without interruption, but direct production updates restart every active instance. Which engineering action is MOST appropriate?
- Publish a reviewed Terraform plan and apply the exact approved plan under controls.
- Use chart lint/templates, guarded upgrade behavior and supported rollback to a tested revision.
- Deploy the candidate to a staging slot, validate health, then perform a controlled swap.
- Isolate the tested change and instrument comparable outcome metrics across randomized cohorts.
Explanation
Correct Answer
C:Deploy the candidate to a staging slot, validate health, then perform a controlled swap. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: A simulated new release serves traffic without unplanned outage and rolls back safely. Deployment slots support staged verification and controlled production swaps where supported.
Incorrect Answers
A:Publish a reviewed Terraform plan and apply the exact approved plan under controls. 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 engineering action is: Deploy the candidate to a staging slot, validate health, then perform a controlled swap. The crucial distinction is: Deployment slots support staged verification and controlled production swaps where supported.
B:Use chart lint/templates, guarded upgrade behavior and supported rollback to a tested revision. This would address a different situation, such as: An AKS Helm upgrade fails after rendering a misconfigured resource, leaving pods partially updated. In the present case, the most directly relevant engineering action is: Deploy the candidate to a staging slot, validate health, then perform a controlled swap. The crucial distinction is: Deployment slots support staged verification and controlled production swaps where supported.
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: Deploy the candidate to a staging slot, validate health, then perform a controlled swap. The crucial distinction is: Deployment slots support staged verification and controlled production swaps where supported.
Question 443
Before changing the pipeline or service, engineers find: A project relies entirely on container image vulnerability scanning while application source contains an authorization flaw. Which evidence should the engineer inspect FIRST?
- Inspect lockfile changes, package registry source, published checksums and CI scan reports.
- Inspect alert severity, exploitability, exposure, service criticality and exceptions.
- Inspect image digests, scan results, base packages and policy thresholds.
- Review SAST, dependency, image and integration security test coverage.
Explanation
Correct Answer
D:Review SAST, dependency, image and integration security test coverage. This directly checks the uncertain behavior or control before changing production. Different scanning methods cover different classes of weakness and require complementary controls. The resulting targeted action is: Combine appropriate code, dependency, secret and container scanning with tested authorization scenarios.
Incorrect Answers
A:Inspect lockfile changes, package registry source, published checksums and CI scan reports. 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 evidence is: Review SAST, dependency, image and integration security test coverage. The crucial distinction is: Different scanning methods cover different classes of weakness and require complementary controls.
B:Inspect alert severity, exploitability, exposure, service criticality and exceptions. 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 evidence is: Review SAST, dependency, image and integration security test coverage. The crucial distinction is: Different scanning methods cover different classes of weakness and require complementary controls.
C:Inspect image digests, scan results, base packages and policy thresholds. This would address a different situation, such as: An ACR pipeline pushes vulnerable base images and deploys without considering scan results. In the present case, the most directly relevant evidence is: Review SAST, dependency, image and integration security test coverage. The crucial distinction is: Different scanning methods cover different classes of weakness and require complementary controls.
Question 444
Before changing the pipeline or service, engineers find: A GitHub repository scans vulnerabilities once a month but merges vulnerable code daily. Which evidence should the engineer inspect FIRST?
- Review prior performance runs, cost metrics, current profile and thresholds.
- Review security workflow triggers, branch protection, SARIF uploads and alert policy.
- Inspect service connections, resource IDs, variables and test cleanup scripts.
- Inspect connection policy, test-stage service connections, database logs and environment settings.
Explanation
Correct Answer
B:Review security workflow triggers, branch protection, SARIF uploads and alert policy. This directly checks the uncertain behavior or control before changing production. Code-scanning feedback should be available on proposed changes before merge. The resulting targeted action is: Run supported code scanning on pull requests with risk-appropriate merge gates.
Incorrect Answers
A:Review prior performance runs, cost metrics, current profile and thresholds. This would address a different situation, such as: An API's new release increases CPU costs by 60%, but the load test reports green because no baseline exists. In the present case, the most directly relevant evidence is: Review security workflow triggers, branch protection, SARIF uploads and alert policy. The crucial distinction is: Code-scanning feedback should be available on proposed changes before merge.
C: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 security workflow triggers, branch protection, SARIF uploads and alert policy. The crucial distinction is: Code-scanning feedback should be available on proposed changes before merge.
D:Inspect connection policy, test-stage service connections, database logs and environment settings. 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 evidence is: Review security workflow triggers, branch protection, SARIF uploads and alert policy. The crucial distinction is: Code-scanning feedback should be available on proposed changes before merge.
Question 445
After implementing the change, the team verifies: A payment workflow completes an HTTP health check but fails after users submit the checkout form. Which result would BEST demonstrate that the issue is corrected?
- A controlled failing test produces useful diagnostics without leaking the credential.
- A deliberately broken checkout fails the test pipeline before deployment.
- A destructive test cannot modify the protected production storage account.
- A policy-blocking insecure test change cannot merge before security review.
Explanation
Correct Answer
B:A deliberately broken checkout fails the test pipeline before deployment. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Add guarded end-to-end UI tests for checkout and payment confirmation. Release validation should test critical business journeys rather than only process liveness.
Incorrect Answers
A:A controlled failing test produces useful diagnostics without leaking the credential. 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 verification is: A deliberately broken checkout fails the test pipeline before deployment. The crucial distinction is: Release validation should test critical business journeys rather than only process liveness.
C: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: A deliberately broken checkout fails the test pipeline before deployment. The crucial distinction is: Release validation should test critical business journeys rather than only process liveness.
D:A policy-blocking insecure test change cannot merge before security review. 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 verification is: A deliberately broken checkout fails the test pipeline before deployment. The crucial distinction is: Release validation should test critical business journeys rather than only process liveness.
Question 446
The DevOps team must resolve this situation: An Azure Pipeline fails only on hosted agents because tests require an uninstalled legacy .NET SDK. Which engineering action is MOST appropriate?
- Add guarded end-to-end UI tests for checkout and payment confirmation.
- Give parallel tests isolated data and synchronize genuine shared dependencies.
- Correct failure handling and publish supported JUnit/TRX results with fail-on-test-failure behavior.
- Install or select the approved SDK version in the pipeline before test execution.
Explanation
Correct Answer
D:Install or select the approved SDK version in the pipeline before test execution. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: A fresh clean agent runs the same test suite with a reproducible toolchain. Test environments must provision declared toolchains rather than depend on developer machines.
Incorrect Answers
A:Add guarded end-to-end UI tests for checkout and payment confirmation. 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 engineering action is: Install or select the approved SDK version in the pipeline before test execution. The crucial distinction is: Test environments must provision declared toolchains rather than depend on developer machines.
B:Give parallel tests isolated data and synchronize genuine shared dependencies. 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 engineering action is: Install or select the approved SDK version in the pipeline before test execution. The crucial distinction is: Test environments must provision declared toolchains rather than depend on developer machines.
C:Correct failure handling and publish supported JUnit/TRX results with fail-on-test-failure behavior. This would address a different situation, such as: A pipeline script prints a test failure but exits with zero, leaving no test results visible in Azure Pipelines. In the present case, the most directly relevant engineering action is: Install or select the approved SDK version in the pipeline before test execution. The crucial distinction is: Test environments must provision declared toolchains rather than depend on developer machines.
Question 447
A Microsoft DevOps team is addressing: A GitHub Actions workflow receives 403 when installing a private package owned by another organization repository. Which TWO complementary actions should be taken? Select TWO answers.
- Inspect build timestamps, package versions, artifact digests and update metadata.
- Inspect package visibility, repository grant, GITHUB_TOKEN permissions and workflow context.
- Pin approved package ranges with lockfiles and deterministic restore settings.
- Authorize the consuming repository and assign minimum packages:read access.
- Inspect release history, retention settings, artifact references and support policy.
Explanation
Correct Answers
B:Inspect package visibility, repository grant, GITHUB_TOKEN permissions and workflow context. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Authorize the consuming repository and assign minimum packages:read access. Together they address: Private package access requires scoped workflow identity and authorized repository permissions.
D:Authorize the consuming repository and assign minimum packages:read access. This supplies the controlled implementation needed for the scenario. Its complementary step is: Inspect package visibility, repository grant, GITHUB_TOKEN permissions and workflow context. Together they address: Private package access requires scoped workflow identity and authorized repository permissions.
Incorrect Answers
A:Inspect build timestamps, package versions, artifact digests and update metadata. This concerns a different DevOps situation: An organization uses calendar-versioned nightly internal tools but deployments cannot distinguish two builds made on the same day. This case instead requires both a targeted investigation (Inspect package visibility, repository grant, GITHUB_TOKEN permissions and workflow context.) and a controlled change (Authorize the consuming repository and assign minimum packages:read access.).
C:Pin approved package ranges with lockfiles and deterministic restore settings. This concerns a different DevOps situation: The same Git commit restores different NuGet package versions one week apart and intermittently fails tests. This case instead requires both a targeted investigation (Inspect package visibility, repository grant, GITHUB_TOKEN permissions and workflow context.) and a controlled change (Authorize the consuming repository and assign minimum packages:read access.).
E:Inspect release history, retention settings, artifact references and support policy. This concerns a different DevOps situation: Release rollback fails because the pipeline cleaned the package version deployed last week. This case instead requires both a targeted investigation (Inspect package visibility, repository grant, GITHUB_TOKEN permissions and workflow context.) and a controlled change (Authorize the consuming repository and assign minimum packages:read access.).
Question 448
A Microsoft DevOps team is addressing: A legacy classic Azure Release pipeline hides deployment steps in the UI and new teams cannot peer-review changes. Which TWO complementary actions should be taken? Select TWO answers.
- Review queue latency, pool capacity, concurrent jobs and utilization.
- Migrate release steps to reviewed YAML with protected environment checks and verified parity.
- Inventory classic tasks, approvals, variables, environments and artifact inputs.
- Inspect free disk, workspace lifecycle, container images and failure records.
- Inspect stage timeline, dependsOn graph, runner slots and data dependencies.
Explanation
Correct Answers
B:Migrate release steps to reviewed YAML with protected environment checks and verified parity. This supplies the controlled implementation needed for the scenario. Its complementary step is: Inventory classic tasks, approvals, variables, environments and artifact inputs. Together they address: Moving deployment logic to versioned YAML can improve consistency and review.
C:Inventory classic tasks, approvals, variables, environments and artifact inputs. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Migrate release steps to reviewed YAML with protected environment checks and verified parity. Together they address: Moving deployment logic to versioned YAML can improve consistency and review.
Incorrect Answers
A:Review queue latency, pool capacity, concurrent jobs and utilization. This concerns a different DevOps situation: A pipeline runs quickly on an agent but waits 70 minutes in queue due to a limited self-hosted pool. This case instead requires both a targeted investigation (Inventory classic tasks, approvals, variables, environments and artifact inputs.) and a controlled change (Migrate release steps to reviewed YAML with protected environment checks and verified parity.).
D:Inspect free disk, workspace lifecycle, container images and failure records. This concerns a different DevOps situation: A self-hosted agent fails after months because workspace and Docker layer caches exhaust disk space. This case instead requires both a targeted investigation (Inventory classic tasks, approvals, variables, environments and artifact inputs.) and a controlled change (Migrate release steps to reviewed YAML with protected environment checks and verified parity.).
E:Inspect stage timeline, dependsOn graph, runner slots and data dependencies. This concerns a different DevOps situation: A large build spends most of its time serially running three independent test suites. This case instead requires both a targeted investigation (Inventory classic tasks, approvals, variables, environments and artifact inputs.) and a controlled change (Migrate release steps to reviewed YAML with protected environment checks and verified parity.).
Question 449
The DevOps team must resolve this situation: An organization distributes a proprietary CLI as email attachments so engineering teams run inconsistent versions. Which engineering action is MOST appropriate?
- Authorize the consuming repository and assign minimum packages:read access.
- Publish the CLI as a versioned Azure Artifacts Universal Package with controlled access.
- Update to an approved secure dependency version and rerun integration and compatibility checks.
- Publish an appropriate major version with migration guidance and compatibility gates.
Explanation
Correct Answer
B:Publish the CLI as a versioned Azure Artifacts Universal Package with controlled access. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: A client installs the documented release and verifies its content digest. Versioned universal packages provide reproducible distribution of nonlanguage build outputs.
Incorrect Answers
A: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: Publish the CLI as a versioned Azure Artifacts Universal Package with controlled access. The crucial distinction is: Versioned universal packages provide reproducible distribution of nonlanguage build outputs.
C:Update to an approved secure dependency version and rerun integration and compatibility checks. This would address a different situation, such as: A pipeline publishes Python wheels from a feed after an advisory identifies a vulnerable indirect dependency. In the present case, the most directly relevant engineering action is: Publish the CLI as a versioned Azure Artifacts Universal Package with controlled access. The crucial distinction is: Versioned universal packages provide reproducible distribution of nonlanguage build outputs.
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: Publish the CLI as a versioned Azure Artifacts Universal Package with controlled access. The crucial distinction is: Versioned universal packages provide reproducible distribution of nonlanguage build outputs.
Question 450
The DevOps team must resolve this situation: A YAML pipeline references a production environment but deploys through an unprotected job that never uses the environment resource. Which engineering action is MOST appropriate?
- Use a deployment job bound to the protected environment and enforce resource checks.
- Optimize test partitions and concurrency to fit approved parallel job capacity.
- Create a controlled matrix over required operating systems and runtime versions.
- Expand path filters to cover the service and relevant shared library changes.
Explanation
Correct Answer
A:Use a deployment job bound to the protected environment and enforce resource checks. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: An unauthorized run cannot access the production deployment until approval completes. Environment approvals apply only when pipelines use the protected deployment resource correctly.
Incorrect Answers
B:Optimize test partitions and concurrency to fit approved parallel job capacity. This would address a different situation, such as: A large repository launches 100 independent test jobs though the organization owns only 10 paid parallel agent slots. In the present case, the most directly relevant engineering action is: Use a deployment job bound to the protected environment and enforce resource checks. The crucial distinction is: Environment approvals apply only when pipelines use the protected deployment resource correctly.
C:Create a controlled matrix over required operating systems and runtime versions. This would address a different situation, such as: A cross-platform CLI is built only on Windows and fails later when customers run it on Linux. In the present case, the most directly relevant engineering action is: Use a deployment job bound to the protected environment and enforce resource checks. The crucial distinction is: Environment approvals apply only when pipelines use the protected deployment resource correctly.
D:Expand path filters to cover the service and relevant shared library changes. This would address a different situation, such as: A monorepo pipeline skips tests for a common authentication library because its paths filter only includes one service folder. In the present case, the most directly relevant engineering action is: Use a deployment job bound to the protected environment and enforce resource checks. The crucial distinction is: Environment approvals apply only when pipelines use the protected deployment resource correctly.