nerdexam
Google

PROFESSIONAL-CLOUD-DEVELOPER · Question #383

You are developing an application that needs to connect to a Cloud SQL for PostgreSQL database by using the Cloud SQL Auth Proxy. The Cloud SQL Auth Proxy is hosted in a different Google Cloud VPC net

Sign in or unlock PROFESSIONAL-CLOUD-DEVELOPER to reveal the answer and full explanation for question #383. The question stem and answer options stay visible for context.

Integrating Google Cloud Services

Question

You are developing an application that needs to connect to a Cloud SQL for PostgreSQL database by using the Cloud SQL Auth Proxy. The Cloud SQL Auth Proxy is hosted in a different Google Cloud VPC network. The Cloud SQL for PostgreSQL instance has public and private IP addresses. You are required to use the private IP for security reasons. When testing the connection to the Cloud SQL instance, you can connect by using the public IP address, but you are unable to connect by using the private IP address. How should you fix this issue?

Options

  • ARun the Cloud SQL Auth Proxy as a background service.
  • BAdd the --private-ip option when starting the Cloud SQL Auth Proxy.
  • CSet up VPC Network Peering between your VPC and the VPC where the Cloud SQL instance is
  • DGrant yourself the IAM role that provides access to the Cloud SQL instance.

Unlock PROFESSIONAL-CLOUD-DEVELOPER to see the answer

You've previewed enough free PROFESSIONAL-CLOUD-DEVELOPER questions. Unlock PROFESSIONAL-CLOUD-DEVELOPER for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Topics

#Cloud SQL Auth Proxy#VPC Network Peering#Private IP Connectivity#Database Networking
Full PROFESSIONAL-CLOUD-DEVELOPER Practice