- A
Remove clustering on sensor_id as it may cause overhead.
Why wrong: Clustering is beneficial for queries filtering on that column.
- B
Add a WHERE clause to filter by partition date even if the query already filters by a date range.
Why wrong: Partition pruning is automatic based on date range.
- C
Increase the number of BigQuery slots assigned to the project.
Why wrong: More slots increase throughput but don't fix inefficient scans.
- D
Recluster the table to ensure data is sorted by sensor_id within each partition.
Clustering improves filter performance by reducing scanned data.
Quick Answer
The answer is to recluster the table to ensure data is sorted by sensor_id within each partition. This is correct because BigQuery’s clustering metadata tracks the min and max values of the clustering column within each block; when queries filter by a date range and a single sensor_id, reclustering physically sorts the rows so that blocks containing that sensor_id are tightly grouped, allowing BigQuery to prune irrelevant blocks and drastically reduce the amount of data scanned. On the Google Professional Data Engineer exam, this scenario tests your understanding that partitioning alone isn’t enough when data grows—clustering must be actively maintained, as automatic reclustering can lag behind heavy ingestion. A common trap is to assume that simply adding a partition or cluster is permanent, but the exam expects you to know that reclustering is an ongoing optimization for query performance. Memory tip: think of it as “re-shelving books by author after they’ve been tossed back in randomly”—reclustering restores the sorted order that pruning relies on.
PDE Designing data processing systems Practice Question
This PDE practice question tests your understanding of designing data processing systems. Read the scenario carefully and evaluate each option against the stated constraints before committing to an answer. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.
A company stores IoT sensor readings in BigQuery. The table is partitioned by day and clustered by sensor_id. Query performance has degraded as data grows; many queries filter by a date range and a single sensor_id. Which optimization should be applied first?
Clue words in this question
Noticing these words before you look at the options changes how you read each choice.
Clue:
"first"Why it matters: Order matters here. You are being tested on which action comes before the others — not which action is generally useful.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
Recluster the table to ensure data is sorted by sensor_id within each partition.
Option D is correct because reclustering the table ensures that within each daily partition, the data is physically sorted by sensor_id. This optimizes the performance of queries that filter by a date range and a single sensor_id, as BigQuery can use the clustering metadata to prune blocks and read only the relevant data, reducing the amount of data scanned and improving query speed.
Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Remove clustering on sensor_id as it may cause overhead.
Why it's wrong here
Clustering is beneficial for queries filtering on that column.
- ✗
Add a WHERE clause to filter by partition date even if the query already filters by a date range.
Why it's wrong here
Partition pruning is automatic based on date range.
- ✗
Increase the number of BigQuery slots assigned to the project.
Why it's wrong here
More slots increase throughput but don't fix inefficient scans.
- ✓
Recluster the table to ensure data is sorted by sensor_id within each partition.
Why this is correct
Clustering improves filter performance by reducing scanned data.
Clue confirmation
The clue word "first" in the question point toward this answer.
Related concept
Read the scenario before looking for a memorised answer.
Common exam traps
Common exam trap: answer the scenario, not the keyword
Google Cloud often tests the misconception that adding more compute resources (slots) or redundant WHERE clauses will fix performance issues caused by poor data layout, when the correct first step is to optimize data organization through clustering and partitioning.
Detailed technical explanation
How to think about this question
BigQuery clustering sorts data within each partition based on the specified columns, and the metadata (e.g., min/max values per block) allows the query engine to skip entire blocks that do not match the filter. Over time, as new data is appended, the clustering can degrade, so manual reclustering (via a DDL statement like ALTER TABLE ... CLUSTER BY or a SELECT * overwrite) restores the sort order. In practice, this is critical for tables with high-cardinality clustering keys like sensor_id, where stale clustering can cause significant performance degradation even with proper partitioning.
KKey Concepts to Remember
- Read the scenario before looking for a memorised answer.
- Find the constraint that changes the correct option.
- Eliminate answers that are true in general but not in this case.
TExam Day Tips
- Watch for words such as best, first, most likely and least administrative effort.
- Review why wrong options are wrong, not only why the correct option is correct.
Key takeaway
Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
Real-world example
How this comes up in practice
A cloud solutions architect for a retail company is evaluating services for a new workload. The correct answer here reflects best practice for the specific scenario described — not a general cloud recommendation. Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option. Cloud exam questions reward reading the constraint carefully: the same technology can be right or wrong depending on the use case.
What to study next
Got this wrong? Here's your next step.
Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.
- →
Designing data processing systems — study guide chapter
Learn the concepts, then practise the questions
- →
Designing data processing systems practice questions
Targeted practice on this topic area only
- →
All PDE questions
499 questions across all exam domains
- →
Google Professional Data Engineer study guide
Full concept coverage aligned to exam objectives
- →
PDE practice test guide
How to use practice tests most effectively before exam day
Related practice questions
Related PDE practice-question pages
Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.
Designing data processing systems practice questions
Practise PDE questions linked to Designing data processing systems.
Building and operationalizing data processing systems practice questions
Practise PDE questions linked to Building and operationalizing data processing systems.
Operationalizing machine learning models practice questions
Practise PDE questions linked to Operationalizing machine learning models.
Ensuring solution quality practice questions
Practise PDE questions linked to Ensuring solution quality.
PDE fundamentals practice questions
Practise PDE questions linked to PDE fundamentals.
PDE scenario practice questions
Practise PDE questions linked to PDE scenario.
PDE troubleshooting practice questions
Practise PDE questions linked to PDE troubleshooting.
Practice this exam
Start a free PDE practice session
Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.
FAQ
Questions learners often ask
What does this PDE question test?
Designing data processing systems — This question tests Designing data processing systems — Read the scenario before looking for a memorised answer..
What is the correct answer to this question?
The correct answer is: Recluster the table to ensure data is sorted by sensor_id within each partition. — Option D is correct because reclustering the table ensures that within each daily partition, the data is physically sorted by sensor_id. This optimizes the performance of queries that filter by a date range and a single sensor_id, as BigQuery can use the clustering metadata to prune blocks and read only the relevant data, reducing the amount of data scanned and improving query speed.
What should I do if I get this PDE question wrong?
Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.
Are there clue words in this question I should notice?
Yes — watch for: "first". Order matters here. You are being tested on which action comes before the others — not which action is generally useful.
What is the key concept behind this question?
Read the scenario before looking for a memorised answer.
About these practice questions
Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →
Same concept, more angles
2 more ways this is tested on PDE
These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.
Variation 1. A company stores IoT sensor data in BigQuery. Queries that filter on a timestamp column and a device_id column are slow even though the table is partitioned by day. What should the data engineer do to improve query performance?
medium- A.Increase the partition size to monthly
- B.Switch to ingestion-time partitioning instead of column-based
- C.Enable automatic query rewriting with BI Engine
- ✓ D.Cluster the table on device_id
Why D: Clustering on device_id organizes the data within each day partition by device_id, allowing BigQuery to prune blocks during queries that filter on that column. This reduces the amount of data scanned and improves query performance without changing the partitioning scheme. Partitioning alone only limits scans by time range; clustering adds intra-partition sorting for non-time-based filters.
Variation 2. A company uses BigQuery to run reporting queries on a table that is partitioned by date and clustered by customer_id. Queries filtering by customer_id and a date range are performing poorly. What is the most likely cause?
medium- A.The project lacks sufficient BigQuery slot capacity
- B.The table is too large for BigQuery
- C.Clustering column order should be date first, then customer_id
- ✓ D.The date range filter is too wide, causing scans of many partitions
Why D: Option D is correct because when a table is partitioned by date and clustered by customer_id, queries that filter on both columns can still perform poorly if the date range filter is too wide, causing BigQuery to scan many partitions. Even with clustering, scanning a large number of partitions negates the benefit of clustering, as clustering only reduces the data scanned within each partition. The query optimizer must read all partitions that fall within the date range, and if that range is broad, the scan overhead dominates.
Last reviewed: Jun 30, 2026
This PDE practice question is part of Courseiva's free Google Cloud certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the PDE exam.
Question Discussion
Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.
Sign in to join the discussion.