A company is migrating an on-premises PostgreSQL database to Cloud SQL for PostgreSQL using Database Migration Service (DMS). They need to minimize downtime during the cutover. What should they do to achieve a zero-downtime cutover?
Trap 1: Set up VPC peering between on-premises and Cloud SQL, then use…
This is a manual approach that requires downtime; not zero-downtime.
Trap 2: Use Cloud SQL Auth Proxy to connect and manually copy data using a…
Manual copy requires significant downtime; not zero-downtime.
Trap 3: Create a one-time migration job and stop the source database during…
One-time migration requires a downtime window equal to the migration duration; not zero-downtime.
- A
Create a continuous migration job, let it replicate changes, then promote the Cloud SQL replica to primary.
Continuous migration with CDC allows near-zero downtime cutover by promoting the replica.
- B
Set up VPC peering between on-premises and Cloud SQL, then use pg_dump and pg_restore.
Why wrong: This is a manual approach that requires downtime; not zero-downtime.
- C
Use Cloud SQL Auth Proxy to connect and manually copy data using a script.
Why wrong: Manual copy requires significant downtime; not zero-downtime.
- D
Create a one-time migration job and stop the source database during the migration.
Why wrong: One-time migration requires a downtime window equal to the migration duration; not zero-downtime.