Flashcardsfor IT Certifications

D1: Connection (Session) Pooling

Google Cloud Professional Cloud Database Engineer exam practice questions · 10 flashcards

Question
What is connection pooling?
1 / 10

Tip: Space flips the card, ← / → navigate.

Last updated: · Report an error on this page

Show all 10 Connection (Session) Pooling practice questions and answers
  1. What is connection pooling?
    Reusing a pool of database connections instead of opening new ones per request.
  2. Why justify a pooler?
    Many short-lived connections exhaust max_connections and add latency.
  3. When is pooling essential?
    Serverless or highly scaled apps (Cloud Run, functions) creating many connections.
  4. Common PostgreSQL pooler?
    PgBouncer.
  5. Managed pooling on Google Cloud?
    Managed connection pooling in Cloud SQL (Enterprise Plus) and AlloyDB.
  6. Session vs transaction pooling?
    Session: client keeps a connection for its session. Transaction: connection returned after each transaction (higher reuse).
  7. Limitation of transaction pooling?
    Session-level features (prepared statements, temp tables) may break.
  8. App-side pooling?
    Pools in drivers/frameworks (e.g. HikariCP).
  9. Symptom of missing pooling?
    'Too many connections' errors and high memory use.
  10. Why limit Cloud Run max instances with DBs?
    Cap total connections to the database.