Ensure Data Durability and Availability

Implementing Cloud SQL Features for Business-Critical Data

Question

You are implementing a single Cloud SQL MySQL second-generation database that contains business-critical transaction data.

You want to ensure that the minimum amount of data is lost in case of catastrophic failure.

Which two features should you implement? (Choose two.)

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D. E.

CD.

Backups help you restore lost data to your Cloud SQL instance.

Additionally, if an instance is having a problem, you can restore it to a previous state by using the backup to overwrite it.

Enable automated backups for any instance that contains necessary data.

Backups protect your data from loss or damage.

Enabling automated backups, along with binary logging, is also required for some operations, such as clone and replica creation.

https://cloud.google.com/sql/docs/mysql/backup-recovery/backups

To ensure the minimum amount of data loss in case of a catastrophic failure in a single Cloud SQL MySQL second-generation database, you should implement binary logging and automated backups.

Binary logging is a MySQL feature that records all changes to the database in a log file. This log file can be used for point-in-time recovery, which allows you to restore the database to a specific point in time before the failure occurred. By implementing binary logging, you can ensure that you can recover your database to the most recent point in time possible.

Automated backups are another important feature to implement. Cloud SQL MySQL second-generation databases support automatic backups, which take regular snapshots of your database and store them in a separate location. This ensures that you can recover your database to a recent state in case of a failure.

While sharding, read replicas, and semisynchronous replication are all useful features, they are not directly related to minimizing data loss in case of a catastrophic failure. Sharding is a technique for splitting large databases into smaller, more manageable pieces, but it does not provide any additional backup or recovery features. Read replicas and semisynchronous replication improve database performance and availability but do not provide additional backup or recovery capabilities.

Therefore, the correct answers to this question are C. Binary logging and D. Automated backups.