QuestionQ47

VerifiedSecuring communications and establishing boundary protection

Your organization is deploying a new Python application on Cloud Run. The application must connect to a MySQL database running on Cloud SQL in a separate project within your Google Cloud organization. You need to secure the connection between the application and the Cloud SQL instance while minimizing management overhead. What should you do?

Explanation

The Cloud SQL Python Connector uses IAM-based authorization and establishes an encrypted connection to Cloud SQL, avoiding the operational burden of managing SSL/TLS client certificates or authorized-network IP addresses. Cloud Run supports Cloud SQL connections over public IP using the Cloud SQL Auth Proxy or a Cloud SQL language connector. A private-IP-only Cloud SQL connection from Cloud Run also requires VPC egress configuration, such as Direct VPC egress or Serverless VPC Access.

Learn more

Community Discussion

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