Databricks Data Engineer Professional · Section 5 · 15% of the exam
Explain how Unity Catalog managed tables, Predictive Optimization, and Liquid Clustering reduce operational and maintenance overhead for a given workload.
One of the objectives of the Databricks Certified Data Engineer Professional exam, in the section “Cost & Performance Optimization”. Here is what it covers, the points to remember and a question to try.
What it covers
See which maintenance work Unity Catalog managed tables, predictive optimization and liquid clustering take off your hands, how predictive optimization is enabled, billed and observed, and the traps around external tables, ZORDER and VACUUM retention.
Points to remember
- Unity Catalog managed tables are the default: Unity Catalog manages storage, layout and maintenance; external tables leave files and maintenance to you.
- Managed-only benefits: predictive optimization,
CLUSTER BY AUTO, automatic file sizing and statistics, metadata caching, and file purge after the UNDROP recovery period (7 days by default). - Predictive optimization runs
OPTIMIZE(compaction and incremental clustering, neverZORDER),VACUUMandANALYZE, only when beneficial. - It runs on serverless jobs compute, billed as
PREDICTIVE_OPTIMIZATION; observe it insystem.storage.predictive_optimization_operations_history(ESTIMATED_DBU). - On by default for accounts created on or after November 11, 2024; requires Premium or above, a supported region, and DBR 12.2 LTS+ or SQL warehouses.
Try a question
Auditors require 30 days of time travel on finance.core.ledger, a Unity Catalog managed table. Shortly after predictive optimization was enabled, a VERSION AS OF query for a 12-day-old version failed because data files were missing. What should have been done?
- ASchedule
VACUUM finance.core.ledger RETAIN 720 HOURSdaily, so that predictive optimization skips its own VACUUM - BSet only
delta.logRetentionDurationto'30 days', because time travel depends on the transaction log - CSet
delta.deletedFileRetentionDurationto'30 days'before enabling predictive optimization - DExclude the table from predictive
ANALYZE, which removes old file versions
Show the answer
C. Predictive optimization's VACUUM honors delta.deletedFileRetentionDuration (default 7 days) and deletes unreferenced files older than that, which breaks time travel to older versions. The docs warn to raise the retention before enabling predictive optimization when longer time travel is needed. Log retention matters too (30 days by default), but without the data files old versions cannot be read.
Written for practice in the style of the exam: never a question from the real exam.
In the course
The lesson Managed Tables and Predictive Optimization teaches this objective (about 45 minutes), and 13 practice questions test it. The course has lessons, exam-style questions, timed practice exams and an AI tutor for every objective, and a pass prediction that tells you when you're ready to book.
More in this section
- Choose the appropriate Delta optimization technique (deletion vectors, Liquid Clustering, CLUSTER BY AUTO) for a given table access pattern.
- Understand how caching (Delta cache) improves query performance for repeated reads of the same data.
- Apply Change Data Feed (CDF) to expose row-level changes (updates/deletes) for efficient incremental downstream processing.
- Use the query profile to identify performance bottlenecks, such as data-skipping inefficiencies, join strategies, and shuffle operations.
- Compare Liquid Clustering vs partitioning/ZORDER for a given table size and query pattern.