Google Cloud Professional Data Engineer — Question 119

You have historical data covering the last three years in BigQuery and a data pipeline that delivers new data to BigQuery daily. You have noticed that when the
Data Science team runs a query filtered on a date column and limited to 30`"90 days of data, the query scans the entire table. You also noticed that your bill is increasing more quickly than you expected. You want to resolve the issue as cost-effectively as possible while maintaining the ability to conduct SQL queries.
What should you do?

Answer options

Correct answer: A

Explanation

The correct answer is A because partitioning tables by a TIMESTAMP or DATE Type allows BigQuery to only scan the relevant partitions for queries, significantly reducing costs. Options B and D do not address the underlying issue of inefficient data scanning, while option C complicates data management and does not leverage BigQuery's built-in capabilities for optimizing query performance.