More Info:

Ensure that SQL Instances have a reasonable number of backups retained in order to recover from failures.

Risk Level

Medium

Address

Reliability, Security

Compliance Standards

GDPR

Triage and Remediation

Remediation

The “Minimum Number of SQL Backups To Be Retained” misconfiguration means that the minimum number of backups required for a Cloud SQL instance is not set. This can lead to data loss in case of unexpected failures or errors. To remediate this issue in GCP using GCP console, please follow the steps below:

  1. Open the GCP console and navigate to the Cloud SQL instances page.

  2. Select the instance for which you want to configure the backup retention policy.

  3. Click on the “Edit” button at the top of the page.

  4. In the “Backup” section, scroll down to the “Retention” field.

  5. Set the “Minimum number of backups to be retained” to the desired value. It is recommended to retain at least 7 backups.

  6. Click on the “Save” button to apply the changes.

  7. Verify that the backup retention policy has been updated by checking the “Backups” tab for the instance.

By following these steps, you can remediate the “Minimum Number of SQL Backups To Be Retained” misconfiguration for a Cloud SQL instance in GCP using GCP console.