Release gates, rollback and recovery drills
Treat release readiness as evidence, not optimism
Define a release record with accountable owner, exact artifact digest, change scope, approval, validation results, security findings, budget, recovery evidence and rollback criteria. A local policy requires all mandatory gates to pass. Optional approved exceptions must be scoped, dated and reviewed separately; they cannot waive an explicit mandatory gate in this model. If the planned spend is 12000 cents and the approved cap is 10000 cents, the gate blocks the rollout. These are fictional amounts, not AWS prices. Budget alerts may lag and do not enforce a hard spending ceiling. Estimate test resources and teardown, including restored volumes and log retention.
Verify recovery with a bounded drill
RPO is the tolerated data-loss interval; RTO is the target time to restore service. In a synthetic outage at minute 100, a restored recovery point at minute 96 gives four minutes of data age; usable service at minute 124 gives 24 minutes of recovery. These satisfy targets of five and thirty minutes only if data integrity and application behavior also pass. AWS Backup restore testing can schedule supported restores and collect validation results; a successful restore job is not enough to prove the application is usable. Check authorization, consistency, dependencies and cleanup in an approved isolated environment. The local exercise uses an original SQLite database and a temporary backup, not AWS Backup.
Rehearse rollback and post-release validation
Write a runbook with triggers, decision owner, monitoring and verification: stop further promotion; confirm the previous artifact and schema compatibility; choose a controlled rollback or recovery path; validate authentication, order creation, duplicate handling, backlog and alarms; compare the agreed observation window against baseline; communicate and record residual risks. A rollback of infrastructure or application code is not an undo of all database writes, external messages or migrations. If the old version cannot read new data, an approved forward fix or recovery plan may be safer. Avoid live fault injection without a separate approved scope, bounded blast radius and stop conditions.
Prepare the capstone handoff
Run python test_release.py in lab-fixtures/release-review. Inspect the static template, artifact identity, canary observations, recovery timestamps and release flags. Predict outcomes for a missing policy setting, changed artifact, insufficient samples, excess errors, invalid recovery evidence and an over-budget release. The local backup test creates a database, backs it up and restores it in a temporary directory, then checks row content and integrity. Preserve the test output and record what remains untested. The next capstone will reuse the test matrix for two architecture alternatives. No AWS credentials, hosted infrastructure, deployment, actual traffic shift or spending is required.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Release gates, rollback and recovery drills — knowledge check
Reason about test evidence, safe promotion and recovery.
What is the modeled recovery time at minutes 100 and 124?
Which evidence is needed besides restore-job completion?
What should an unknown mandatory gate do?
What is required before code rollback after incompatible writes?
What does the local lab verify?