A company is designing a disaster recovery plan for a Cloud SQL for PostgreSQL instance. They want to failover to a different region with minimal data loss and recovery time under 10 minutes. The database is 500 GB and experiences 2,000 write transactions per second. Which solution should they use?
Trap 1: Export the database daily using gsutil and import in the other…
Daily export and import is a batch restore, so recovery point and time depend on the last dump; 500 GB cannot restore within ten minutes. It suits periodic backup copies, not sub-ten-minute regional failover. Cloud SQL cross-region replicas provide continuous replication instead.
Trap 2: Automated backups with point-in-time recovery to a new instance in…
Automated backups with point-in-time recovery require restoring a backup to a new instance, which can take longer than 10 minutes for a 500 GB database, and RPO depends on backup frequency, typically 1-7 days, so it does not meet the requirements.
- A
Export the database daily using gsutil and import in the other region using pg_restore.
Why it fails: Daily export and import is a batch restore, so recovery point and time depend on the last dump; 500 GB cannot restore within ten minutes. It suits periodic backup copies, not sub-ten-minute regional failover. Cloud SQL cross-region replicas provide continuous replication instead.
- B
Create a cross-region read replica and promote it to primary during failover.
A cross-region read replica streams WAL records asynchronously, so promotion typically loses only seconds of transactions, satisfying the minimal data loss requirement. Promotion completes in minutes, meeting the 10-minute recovery objective, and the replica continuously serves reads, avoiding the restore-from-backup delay that would exceed the target.
- C
Configure a cross-region replica instance using Cloud SQL's cross-region replication feature.
This is correct because it refers to the same cross-region replication feature, which meets the disaster recovery requirements.
- D
Automated backups with point-in-time recovery to a new instance in the other region.
Why it fails: Automated backups with point-in-time recovery require restoring a backup to a new instance, which can take longer than 10 minutes for a 500 GB database, and RPO depends on backup frequency, typically 1-7 days, so it does not meet the requirements.