Professional Cloud Database Engineer free question 4 / 10 · Domain 2: Manage a solution that can span multiple database technologies
You restore a Cloud SQL for PostgreSQL backup over an existing instance that is different from the instance the backup was taken from. Both the source and the destination have read replicas. What must you prepare on the destination?
- Delete the read replicas of the destination, then recreate the ones you need after the restore completes
- Delete the read replicas of the source, and leave the replicas of the destination in place
- Disable the database users on the destination, and stop application connections to the replicas
- Pause replication on the destination, and resume replica catch-up after the restore
Show the answer and explanation
Answer: A
Why this is correct
A note in the steps on the restore from a backup page says that before you restore, you must delete the replicas of the destination instance. What must be deleted is the replicas of the destination, not those of the source, and pausing replication or stopping connections is not enough. Replicas are recreated after the restore finishes, so include the time to rebuild them in the recovery plan.
Why the other options are wrong
"Delete the read replicas of the source, and leave the replicas of the destination in place" … The official deletion requirement applies to the replicas of the restore destination, not the backup source. Changing the source does not meet the premise for a destination that has replicas.
"Pause replication on the destination, and resume replica catch-up after the restore" … Pausing replication cannot stand in for deletion. The official prerequisite is that the replicas of the destination are deleted beforehand.
"Disable the database users on the destination, and stop application connections to the replicas" … Disabling database users or stopping application connections only stops access. The read replica resources and relationships remain, so the requirement to delete before the restore is not met.
Key point
Include rebuilding the replicas after the restore in the recovery plan, not just the restore operation itself. Confirm that you are not overwriting the wrong instance.