A cloud engineer is creating a new Cloud SQL for MySQL instance. To ensure the database is accessible to internal workloads in the Virtual Private Cloud (VPC) while preventing all direct access from the public internet, which network configuration should be applied during deployment?
- Enable Private IP connectivity and associate the instance with the target VPC network.Answer
- BEnable Public IP access and add the CIDR range 0.0.0.0/0 to the authorized networks list.
- CDeploy the database on a Cloud Bigtable instance configured with public endpoints.
- DProvision the database using a Spot VM compute profile on a public subnet.
Answer
Enable Private IP connectivity and associate the instance with the target VPC network.
Enabling Private IP assigns a private IP address from the designated VPC network to the Cloud SQL instance, ensuring traffic remains private within Google Cloud without internet exposure.
Step-by-Step Solution
Key Concept
Configuring Private IP for Managed Database Instances