QuestionQ39

VerifiedDeploy scalable and highly available databases in Google Cloud

You are developing an application that will run on Cloud Run and needs a database hosted by the Cloud SQL managed service. You want to secure the instance so it accepts connections only from applications running within your Google Cloud VPC environment. What should you do?

Explanation

Cloud SQL private IP requires private services access for the selected VPC. Cloud Run can reach the private IP through a Serverless VPC Access connector in that VPC, without exposing a public database endpoint. For this private-IP route, Cloud Run connects directly to Cloud SQL; using a connection pool helps control the number of database connections created by scalable Cloud Run instances.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!