CertLumen

Databricks Data Engineer Associate · Section 6 · 10% of the exam

Understand the features of Liquid Clustering and predictive optimization.

One of the objectives of the Databricks Certified Data Engineer Associate exam, in the section “Troubleshooting, Monitoring, and Optimization”. Here is what it covers, the points to remember and a question to try.

What it covers

How Delta Lake turns Parquet files into reliable tables: the transaction log and ACID, schema enforcement and evolution, time travel and RESTORE, UPDATE/DELETE/MERGE, OPTIMIZE, Z-ORDER vs liquid clustering, VACUUM, deletion vectors, Change Data Feed and clones.

Points to remember

  • Delta = Parquet data files + _delta_log (JSON commits + Parquet checkpoints); ACID via optimistic concurrency control.
  • Schema enforcement rejects mismatched writes; mergeSchema adds columns on append, overwriteSchema replaces the schema on overwrite.
  • Time travel: VERSION AS OF, TIMESTAMP AS OF, @v3; RESTORE TABLE ... TO VERSION AS OF n is itself a new commit.
  • DESCRIBE HISTORY = audit of operations; DESCRIBE DETAIL = location, file count, size, properties.
  • MERGE = upsert / SCD Type 1; duplicate source keys make it fail — deduplicate first.

Try a question

A liquid-clustered table receives a nightly MERGE of changed rows and continuous Structured Streaming appends during the day, with default settings. Query performance degrades steadily between maintenance runs. What is the best explanation?

  1. AMERGE statements silently drop the clustering keys from the table definition
  2. BLiquid clustering only reorganizes data files when VACUUM runs after the retention period ends
  3. CMERGE and default streaming writes don't cluster on write; new data waits for OPTIMIZE
  4. DStreaming writes to clustered tables are converted into partitioned writes
Show the answer

C. Only some operations cluster on write: INSERT INTO, CTAS/RTAS, COPY INTO from Parquet and DataFrame appends, above size thresholds. Streaming writes do not cluster by default, and MERGE is not in the cluster-on-write list, so recent data accumulates unclustered. Regular incremental OPTIMIZE, or predictive optimization on a managed table, keeps the layout healthy.

Written for practice in the style of the exam: never a question from the real exam.

In the course

2 lessons teach this objective: Delta Lake Fundamentals, Liquid Clustering & Predictive Optimization (about 95 minutes), and 18 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 29 objectives · Next objective →