professional-cloud-data-engineer
Prepare and test your skills
Prepare and test your skills
Worked example. The correct answer is already marked and every option is explained below, so there is nothing to select here. To answer questions yourself, start the free trial.
Keep the momentum going with these hand-picked practice scenarios
Want more questions like this?
Get a free certification question every week.
Last updated
An analytics team at an enterprise company runs complex multi-stage aggregation queries on BigQuery during peak business hours. Recently, several critical ad-hoc and dashboard queries have started failing with the following error:
Resources exceeded: Your project or organization exceeded the maximum disk and memory limit available for shuffle operations.
You need to diagnose and resolve these query execution failures while maintaining performance and optimizing compute capacity.
Which approach should you implement to resolve the shuffle limit error?
Materialize intermediate transformation results using materialized views or temporary tables, optimize query logic to filter earlier, and reduce query concurrency or increase capacity reservation slots
Migrate the target tables to Cloud Storage and query them using federated queries with default on-demand billing
Switch all failed interactive queries to run in dry run mode and preview table data prior to query execution
Configure Cloud Run functions to automatically retry the failed interactive queries immediately using standard exponential backoff without modifying query structure
Materialize intermediate transformation results using materialized views or temporary tables, optimize query logic to filter earlier, and reduce query concurrency or increase capacity reservation slots
In BigQuery, the shuffle tier provides the in-memory and disk-backed infrastructure required to redistribute, sort, and group data between execution stages during complex operations such as JOIN, GROUP BY, and DISTINCT. When query operations generate intermediate datasets that exceed the allocated disk and memory capacity for shuffle operations within a reservation or project, BigQuery terminates the query and returns a shuffle quota exceeded / resources exceeded error.
INFORMATION_SCHEMA.JOBS_TIMELINE.This approach directly addresses the architectural root cause of shuffle exhaustion by both reducing intermediate data volume through SQL optimization/materialization and expanding or load-balancing the compute capacity handling the shuffle tier.
Migrate the target tables to Cloud Storage and query them using federated queries with default on-demand billing
Switch all failed interactive queries to run in dry run mode and preview table data prior to query execution
Configure Cloud Run functions to automatically retry the failed interactive queries immediately using standard exponential backoff without modifying query structure