
Answer-first summary for fast verification
Answer: Configure your Cloud Run service to use a Serverless VPC Access connector.
To ensure connectivity between a Cloud Run service and a Cloud SQL instance using the internal IP address, the Google-recommended best practice is to configure the Cloud Run service to use a Serverless VPC Access connector. This setup allows the Cloud Run service to communicate with the Cloud SQL instance over the internal network, meeting regulatory requirements for internal IP usage. While configuring the Cloud Run service with a Cloud SQL connection (A) is part of the process, the critical step for internal IP connectivity is the Serverless VPC Access connector (B). Options C and D involve using the Cloud SQL Java connector or the Cloud SQL Auth proxy, which are not the recommended approaches for internal IP connectivity in this scenario.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
How do you configure connectivity for a Java application deployed on Cloud Run that requires access to a Cloud SQL database using its internal IP address, while adhering to Google's recommended best practices for compliance with regulatory requirements?
A
Configure your Cloud Run service with a Cloud SQL connection.
B
Configure your Cloud Run service to use a Serverless VPC Access connector.
C
Configure your application to use the Cloud SQL Java connector.
D
Configure your application to connect to an instance of the Cloud SQL Auth proxy.
No comments yet.