A data engineer is designing a Unity Catalog Delta table that will be used to answer ad hoc queries filtering on any combination of region, product_category, and event_date. The table will grow to approximately 2 TB and will receive daily batch appends. Query patterns are unpredictable and often combine two or three of these columns in WHERE clauses. Which physical optimization strategy is MOST appropriate?
- A. Partition the table on
regionandproduct_categoryas composite partition keys. - B. Partition the table on
event_dateand apply Z-order onregionandproduct_category. - C. Apply Z-order on all three columns without any partitioning.
- D. Apply liquid clustering on
region,product_category, andevent_date.✓ Correct
Explanation
Liquid clustering is the recommended modern approach for multi-dimensional query patterns on large Delta tables in Unity Catalog. It incrementally reorganizes data as new records arrive, avoids over-partitioning pitfalls, and efficiently co-locates data for any combination of the specified clustering columns. Partitioning on event_date plus Z-order is a valid older pattern but requires manual OPTIMIZE runs and Z-order does not colocate data as effectively for highly varied multi-column queries. Composite partitioning on region and product_category would create a very large number of small partitions and does not help with date-based filters. Z-order alone without partitioning on a 2 TB table would make every query scan the entire table before benefiting from data skipping.