Google Cloud Professional Cloud Database Engineer — Question 13
Your organization deployed a new version of a critical application that uses Cloud SQL for MySQL with high availability (HA) and binary logging enabled to store transactional information. The latest release of the application had an error that caused massive data corruption in your Cloud SQL for MySQL database. You need to minimize data loss. What should you do?
Answer options
- A. Open the Google Cloud Console, navigate to SQL > Backups, and select the last version of the automated backup before the corruption.
- B. Reload the Cloud SQL for MySQL database using the LOAD DATA command to load data from CSV files that were used to initialize the instance.
- C. Perform a point-in-time recovery of your Cloud SQL for MySQL database, selecting a date and time before the data was corrupted.
- D. Fail over to the Cloud SQL for MySQL HA instance. Use that instance to recover the transactions that occurred before the corruption.
Correct answer: C
Explanation
The correct answer is C, as performing a point-in-time recovery allows you to restore the database to a specific moment before the data corruption happened, minimizing data loss effectively. Option A would revert to an earlier backup but may not capture all transactions leading up to the corruption. Option B involves loading data from CSV files, which may not contain the most recent transactions. Option D, while useful for failover, does not specifically address the point-in-time recovery needed to minimize data loss effectively.