Exam DAA-C01 Topic 1 Question 123 Discussion
Actual exam question for Snowflake's DAA-C01 exam
Question #: 123
Topic #: 1
Question #: 123
Topic #: 1
A large fact table is partitioned by and clustered by 'customer _ id'. The table has the following columns: 'customer_id', and 'transaction_amount'. You need to optimize queries that frequently filter on a specific range of 'transaction_date' and then aggregate by 'customer _ id'. Given the existing partitioning and clustering, which of the following strategies will BEST improve query performance related to partition pruning and clustering?
Suggested Answer: B Vote an answer
Option B is the best strategy. Creating a materialized view that pre-aggregates the data by and 'transaction_date' addresses both aspects:Partition pruning is naturally leveraged because the materialized view will store aggregated data, allowing queries filtering on 'transaction_date' to use partition pruning during refresh and query. Clustering helps because the data within each partition (date) is clustered by 'customer_id' , making aggregations by customer efficient. Option A might not provide sufficient performance improvement if the aggregation by customer is still slow. Option C will improve query performance marginally but is not a good option with partition pruning, because the data is already partition on date. Option D reclustering too frequently can be costly and may not always result in significant performance gains. Option E can be a costly operation and also data migration may be hectic. Thus the best is to have materialized view.
by Nancy at Aug 21, 2025, 12:31 AM
0
0
0
10
Comments
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Report Comment
Commenting
You can sign-up / login (it's free).