
Ultimate access to all questions.
Deep dive into the quiz with AI chat providers.
We prepare a focused prompt with your quiz and certificate details so each AI can offer a more tailored, in-depth explanation.
NO.29 You want to optimize your queries for cost and performance. How should you structure your data?
A
Partition table data by create_date, location_id and device_version
B
Partition table data by create_date cluster table data by location_id and device_version
C
Cluster table data by create_date, location_id and device_version
D
Cluster table data by create_date partition by locationed and device_version
Explanation:
Option B is correct because:
create_date: Date-based partitioning is ideal for time-series data as it allows BigQuery to scan only relevant partitions during querieslocation_id and device_version: Clustering organizes data within partitions, enabling efficient filtering and sortingWhy other options are incorrect:
locationed instead of location_id) and partitions by non-date columns which is less efficientThis combination of partitioning and clustering follows BigQuery best practices for optimizing both cost and performance.