Flashcardsfor IT Certifications

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.

Last updated: · Report an error on this page

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