Planning Cutover and Rollback
This lesson explains how to keep cutover downtime within a window and how to return to the old environment if the new one fails, since the risk of a migration is concentrated in the cutover.
Learning outcomes
After completing this lesson, you will be able to:
- Describe the steps of a cutover.
- Describe rollback options for each component.
- Explain how blue/green deployments and replication reduce downtime.
Anatomy of a cutover
A migration cutover follows a defined sequence of steps. The sequence is as follows.
-
Replicate
Replicate continuously ahead of time: Application Migration Service for servers, DMS full load plus change data capture for databases, DataSync for files.
-
Test
Launch test instances from the replicated data without disturbing replication, and run acceptance tests.
-
Lower DNS TTLs
Lower them days before, so the switch propagates quickly.
-
Freeze
Freeze writes on the source, let replication catch up, and verify data (row counts, DMS validation, DataSync verification).
-
Switch
Launch cutover instances, update DNS or load balancer targets, and smoke-test.
-
Hypercare
Watch closely for days, keeping the source intact for rollback.
Rollback options
A cutover plan needs a defined rollback trigger and a path back.
Each component needs its own way back. Servers at the source are shut down but kept intact until the rollback window closes, so they can be restarted. Databases are the hardest part, because the new database receives writes after cutover. A reverse DMS replication task, from the new database to the old one, keeps the old one current, so rolling back loses no data. DNS records with short TTLs, or weighted records, allow traffic to be switched back quickly. For disaster recovery after the migration, Elastic Disaster Recovery supports failback, whereas Application Migration Service is designed for a one-way move. The following table summarises the approaches.
| Component | Rollback approach |
|---|---|
| Servers | Keep source servers shut down but intact until the rollback window closes |
| Databases | Run a reverse DMS replication task from the new database to the old one, so changes made after cutover are not lost |
| DNS | Short TTLs, or weighted records, allow quick reversal |
| Disaster recovery afterwards | Elastic Disaster Recovery supports failback; Application Migration Service is for one-way migration |
Reducing downtime further
Several techniques shorten the cutover window further. For databases, Aurora and RDS Blue/Green Deployments, or a target kept current by DMS, allow a switchover in about a minute. For traffic, weighted DNS records, or an Application Load Balancer with on-premises IP addresses as targets, move users gradually rather than all at once, which also limits the impact of a problem.
For files, repeated incremental DataSync runs make the final synchronisation small. Above all, the cutover is rehearsed with the same runbook and timings before the real event, which turns estimates into measured durations and exposes missing steps while there is still time to fix them.
A company is migrating an Oracle-backed ordering system to Amazon RDS for Oracle. Downtime must be under 30 minutes, and if serious problems are found within 48 hours of cutover, the company must be able to return to the on-premises database without losing orders placed on AWS.
DMS full load plus CDC keeps RDS in sync until a brief freeze, meeting the 30-minute window. For rollback without data loss, start a reverse DMS task from RDS to the on-premises database at cutover, keeping it current for the 48-hour window. Restoring from a pre-cutover backup would lose new orders.
What keeps a rollback possible after cutover?
Show answer
Keeping the source intact and, where possible, replicating changes back to it, with a defined trigger and decision point for rolling back.
Exam Tips
Remember for the exam
- Replicate continuously, test with test instances, then cut over in a short freeze.
- Lower DNS TTLs well before cutover.
- Reverse DMS replication keeps the old database current for rollback.
- Keep source servers intact until the rollback window closes.
- Rehearse the cutover before the real event.