Topic 1 Question 241
You have deployed a Java application to Cloud Run. Your application requires access to a database hosted on Cloud SQL. Due to regulatory requirements, your connection to the Cloud SQL instance must use its internal IP address. How should you configure the connectivity while following Google-recommended best practices?
Configure your Cloud Run service with a Cloud SQL connection.
Configure your Cloud Run service to use a Serverless VPC Access connector.
Configure your application to use the Cloud SQL Java connector.
Configure your application to connect to an instance of the Cloud SQL Auth proxy.
ユーザの投票
コメント(3)
- 正解だと思う選択肢: B
It should be B, EI faced this exact challenge in one of my projects
👍 2Maddyricky2023/02/05 - 正解だと思う選択肢: C
https://cloud.google.com/sql/docs/mysql/connect-connectors#setup-and-usage If your application is written in Java you can skip this step, since you do this in the Java Cloud SQL Connector
👍 1TNT872023/01/31 - 正解だと思う選択肢: B
Option B, using a Serverless VPC Access connector, is the recommended best practice for accessing a Cloud SQL instance from Cloud Run because it provides a secure and scalable way to connect to your internal resources.
With this option, you can connect your Cloud Run service to your internal VPC network, allowing it to access resources such as Cloud SQL instances that have internal IP addresses. This eliminates the need for a public IP address or a public network connection to your database, which can increase security and regulatory compliance.
👍 1mrvergara2023/02/04
シャッフルモード