Skip to main content
InterviewHubPRO
Section Overview
Q43

Question 43 of 50

Part 3: Enterprise FinOps, Disaster Recovery & Scale (25 - 35)

86%
Google BigQuery (50 Qs)•Part 3: Enterprise FinOps, Disaster Recovery & Scale (25 - 35)

Query Plan Execution and Optimization: Diagnosing "Resources exceeded during query execution".

senior LevelPerformance

In Simple Words: When a query fails with Resources exceeded:

  • Root Cause: The query exceeded the memory allocated to worker slots during an in-memory hash shuffle or sort.
  • Troubleshooting Steps:
    1. Inspect Query Plan Execution Details in BigQuery console.
    2. Look for stages with high Wait Time (indicates slot starvation) vs high Compute Time.
    3. Data Skew: If one slot took 10 minutes while all others took 2 seconds, check for skewed join keys (e.g. ON a.user_id = b.user_id where user_id is frequently NULL).
    4. Avoid ORDER BY on un-aggregated tables without a LIMIT clause.