Google Cloud Professional Cloud Database Engineer — Question 124

You are managing a Cloud SQL for PostgreSQL instance in Google Cloud. You have a primary instance in region 1 and a read replica in region 2. After a failure of region 1, you need to make the Cloud SQL instance available again. You want to minimize data loss and follow Google-recommended practices. What should you do?

Answer options

Correct answer: C

Explanation

The correct answer is C because it involves checking the replication lag and promoting the read replica, which minimizes data loss. Options A and B involve restoring backups, which could lead to greater data loss if the primary instance was more recent. Option D may not be effective if the failover was unsuccessful, as it does not ensure the availability of the instance immediately.