PROFESSIONAL-CLOUD-DATABASE-ENGINEER · Question #105
You are developing a new application on a VM that is on your corporate network. The application will use Java Database Connectivity (JDBC) to connect to Cloud SQL for PostgreSQL. Your Cloud SQL…
The correct answer is C. Define a connection string using Cloud SQL Auth proxy configured with a service account to point. The Cloud SQL connectors are libraries that provide encryption and IAM-based authorization when connecting to a Cloud SQL instance. They can't provide a network path to a Cloud SQL instance if one is not already present. Other ways to connect to a Cloud SQL instance include…
Question
You are developing a new application on a VM that is on your corporate network. The application will use Java Database Connectivity (JDBC) to connect to Cloud SQL for PostgreSQL. Your Cloud SQL instance is configured with IP address 192.168.3.48, and SSL is disabled. You want to ensure that your application can access your database instance without requiring configuration changes to your database. What should you do?
Options
- ADefine a connection string using your Google username and password to point to the external
- BDefine a connection string using a database username and password to point to the internal
- CDefine a connection string using Cloud SQL Auth proxy configured with a service account to point
- DDefine a connection string using Cloud SQL Auth proxy configured with a service account to point
How the community answered
(27 responses)- A4% (1)
- B11% (3)
- C70% (19)
- D15% (4)
Explanation
The Cloud SQL connectors are libraries that provide encryption and IAM-based authorization when connecting to a Cloud SQL instance. They can't provide a network path to a Cloud SQL instance if one is not already present. Other ways to connect to a Cloud SQL instance include using a database client or the Cloud SQL https://cloud.google.com/sql/docs/postgres/connect-connectors
Topics
Community Discussion
No community discussion yet for this question.