More Info:

Ensure that SQL Instances have Query Insights enabled.

Risk Level

Low

Address

Operational Maturity

Compliance Standards

CBP

Triage and Remediation

Remediation

To remediate the misconfiguration “SQL Query Insights should be Enabled” for GCP using the GCP Console, follow the below steps:

  1. Open the GCP Console and go to the Cloud SQL Instances page.
  2. Select the instance for which you want to enable SQL Query Insights.
  3. Click on the “Edit” button at the top of the page.
  4. Scroll down to the “Flags” section and click on the “Add item” button.
  5. In the “Name” field, enter “query-insights-enabled”.
  6. In the “Value” field, enter “on”.
  7. Click on the “Save” button at the bottom of the page to save the changes.

After following the above steps, SQL Query Insights will be enabled for the selected Cloud SQL instance in GCP.