Google Cloud Professional Cloud Developer — Question 341
You have a Cloud Run service that connects to a Cloud SQL Enterprise edition database instance using the default Cloud SQL connection. You need to enable more than 100 connections per Cloud Run instance. What should you do?
Answer options
- A. Increase the queries per minute quota limit of the Cloud SQL Admin API.
- B. Increase the max_connection flag in Cloud SQL for PostgresSQL.
- C. Upgrade to Cloud SQL Enterprise Plus edition.
- D. Use Cloud SQL Auth Proxy in a sidecar.
Correct answer: D
Explanation
Using the Cloud SQL Auth Proxy in a sidecar enables more than 100 connections by handling the connection limit effectively. The other options do not provide a feasible solution for increasing the connection limit for Cloud Run instances; simply raising quotas or flags does not address the inherent restrictions of the Cloud Run architecture.