Flashcardsfor IT Certifications

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.

Last updated: · Report an error on this page

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