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