Question 610
During an operational security assessment at a public-sector technology agency, the team documents this issue: A post-deploy cleanup script deletes data twice when the stage is retried. The affected delivery process supports citizen applications and reusable infrastructure; accountability and service availability depend on controlled delivery. Select TWO: one corrective action and one test that confirms its effectiveness. (Select TWO.)
Explanation
Correct Answers
Correct corrective action. Make deployment scripts safe to retry with precondition checks, transaction boundaries and durable migration version tracking. The action targets the recorded failure (A post-deploy cleanup script deletes data twice when the stage is retried), and is intended to reduce the corresponding risk: A pipeline retry can double-apply data changes, create conflicting records or leave a half-upgraded system.
Correct verification. The same deployment task can be retried after a simulated interruption without duplicate schema or business effects. The measurement or controlled test provides evidence for the issue (A post-deploy cleanup script deletes data twice when the stage is retried) and complements the selected corrective action rather than simply repeating a recommendation.
Incorrect Answers
Use App Service deployment slots with slot-sticky settings, warm-up checks and swap validation for low-downtime releases. It is not the complementary risk control for idempotent deployment migration scripts.
Old and new application versions run against the expanded schema, then the contract step follows verified client retirement. This does not supply the required idempotent deployment migration scripts action-and-control pair.
Provide a narrow, reviewed hotfix path that validates the corrective change and promotes a traceable artifact while preserving production safeguards. The two-part idempotent deployment migration scripts control remains unsatisfied.