You are running a transactional application on Cloud SQL for PostgreSQL in Google Cloud. The database is running in a high availability configuration within one region. You have encountered issues with data and want to restore to the last known pristine version of the database. What should you do?
- ACreate a clone database from a read replica database, and restore the clone in the same region.
- BCreate a clone database from a read replica database, and restore the clone into a different zone.
- CUse the Cloud SQL point-in-time recovery (PITR) feature. Restore the copy from two hours ago to a new database instance. (correct answer)
- DUse the Cloud SQL database import feature. Import last week's dump file from Cloud Storage.
Reveal answer & explanationHide answer
The correct answer is C. Option C: Use the Cloud SQL point-in-time recovery (PITR) feature. Restore the copy from two hours ago to a new database instance.
Explanation
Cloud SQL is a managed relational database (MySQL/PostgreSQL/SQL Server) that handles patching, backups, and failover.