D4: Managing Connections to Datastores
Google Cloud Professional Cloud Developer exam practice questions · 10 flashcards
Question
How do apps connect to Cloud SQL securely?
1 / 10
Tip: Space flips the card, ← / → navigate.
Show all 10 Managing Connections to Datastores practice questions and answers
- How do apps connect to Cloud SQL securely?Cloud SQL Language Connectors or Auth Proxy, ideally over private IP.
- Why use connection pooling?Reuse connections to avoid exhausting database limits and reduce latency.
- Where to create database clients in serverless code?Globally (outside the request handler) for reuse across requests.
- Cloud Run built-in Cloud SQL connection?--add-cloudsql-instances provides a Unix socket via the Auth Proxy.
- How to connect to Firestore?Firestore client library using ADC.
- How to connect to Cloud Storage?Cloud Storage client library using ADC.
- How to limit total DB connections from Cloud Run?Pool size × max instances must stay below DB limits.
- How to handle connection failures?Retries with backoff and reconnect logic.
- Why use IAM database authentication?Avoid static passwords.
- Where to store DB passwords if needed?Secret Manager.