CertLumen

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, never ZORDER), VACUUM and ANALYZE, only when beneficial.
  • It runs on serverless jobs compute, billed as PREDICTIVE_OPTIMIZATION; observe it in system.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?

  1. ASchedule VACUUM finance.core.ledger RETAIN 720 HOURS daily, so that predictive optimization skips its own VACUUM
  2. BSet only delta.logRetentionDuration to '30 days', because time travel depends on the transaction log
  3. CSet delta.deletedFileRetentionDuration to '30 days' before enabling predictive optimization
  4. 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

← Previous objective · All 45 objectives · Next objective →