QuestionQ183

Integrating applications with Google Cloud services

Your team is building a new application with a PostgreSQL database and Cloud Run. You are responsible for ensuring that all traffic remains private on Google Cloud. You want to use managed services and follow Google-recommended best practices. What should you do?

  • A
    1. Enable Cloud SQL and Cloud Run in the same project. 2. Configure a private IP address for Cloud SQL. Enable private services access. 3. Create a Serverless VPC Access connector. 4. Configure Cloud Run to use the connector to connect to Cloud SQL.
  • B
    1. Install PostgreSQL on a Compute Engine virtual machine (VM), and enable Cloud Run in the same project. 2. Configure a private IP address for the VM. Enable private services access. 3. Create a Serverless VPC Access connector. 4. Configure Cloud Run to use the connector to connect to the VM hosting PostgreSQL.
  • C
    1. Use Cloud SQL and Cloud Run in different projects. 2. Configure a private IP address for Cloud SQL. Enable private services access. 3. Create a Serverless VPC Access connector. 4. Set up a VPN connection between the two projects. Configure Cloud Run to use the connector to connect to Cloud SQL.
  • D
    1. Install PostgreSQL on a Compute Engine VM, and enable Cloud Run in different projects. 2. Configure a private IP address for the VM. Enable private services access. 3. Create a Serverless VPC Access connector. 4. Set up a VPN connection between the two projects. Configure Cloud Run to use the connector to access the VM hosting PostgreSQL
Explanation

Cloud SQL is Google Cloud’s managed PostgreSQL offering. Configuring its private IP requires private services access, which provides private connectivity between the VPC network and the Cloud SQL service-producer network. A Serverless VPC Access connector lets Cloud Run send traffic to private VPC addresses, including the Cloud SQL private IP, without using the public internet.

Learn more

Community Discussion

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