D2: Query Optimization for Cost & Performance
Google Cloud Professional Cloud Database Engineer exam practice questions · 10 flashcards
Question
Top query optimization techniques?
1 / 10
Tip: Space flips the card, ← / → navigate.
Show all 10 Query Optimization for Cost & Performance practice questions and answers
- Top query optimization techniques?Proper indexes, selective queries, avoid SELECT *, limit result sets and analyze plans.
- Why update statistics?The optimizer needs accurate stats for good plans (ANALYZE).
- What is a covering index?Index containing all queried columns, avoiding table lookups.
- Downside of too many indexes?Slower writes and more storage.
- Spanner query optimization?Secondary indexes, interleaving and avoiding full scans; use query plans.
- BigQuery cost optimization?Partitioning, clustering and selecting only needed columns.
- Why use parameterized queries?Plan reuse and SQL injection protection.
- What is N+1 query problem?Many small queries instead of one set-based query.
- When use a cache?Repeated reads of rarely changing data.
- How does AlloyDB columnar engine help?Accelerates analytical queries on operational data.