QuestionQ149

Integrating applications with Google Cloud services

You are responsible for developing a new ecommerce application running on Cloud Run. You need to connect the application to a Cloud SQL database in a separate project. That project uses an isolated network dedicated to multiple databases and has no public IP address. You need to connect the application to this database. What should you do?

  • A Create a Private Service Connect endpoint on your network. Create a Serverless VPC Access connector on your project. Use Cloud SQL Language Connectors to create an internal connection.
  • B Configure VPC Network Peering between both networks. In Cloud Run, create a Cloud SQL connection that uses the internal IP. Use Cloud SQL Language Connectors to interact with the database.
  • C Configure private services access on your project. In Cloud Run, create a Cloud SQL connection. Use Cloud SQL Language Connectors to interact with the database.
  • D Create a subnet on your VPC. Create a Serverless VPC Access connector on your project using the new subnet. In Cloud Run, create a Cloud SQL connection. Use Cloud SQL Language Connectors to interact with the database.
Explanation

Private Service Connect enables private Cloud SQL access from VPC networks in different projects. A Private Service Connect endpoint supplies an internal address in the consumer VPC, while a Serverless VPC Access connector routes Cloud Run traffic into that VPC. Cloud SQL Language Connectors support Private Service Connect connections but do not themselves create the network path. Connect to an instance using Private Service Connect

Learn more

Community Discussion

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