CertLumen

Databricks Data Engineer Professional · Section 9 · 5% of the exam

Design scalable Delta/Iceberg table layouts for large data assets by mapping partitioning to data grain, aligning clustering to relationship access patterns, and maintaining balanced file sizes through compaction.

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

What it covers

Design large Delta and Iceberg tables that stay fast: decide on partitioning from table size and data grain, choose clustering keys from filter and join patterns, keep file sizes balanced with compaction, and model analytics as star schemas served by materialized views and governed Unity Catalog metric views.

Points to remember

  • Under 1 TB: don't partition. 1 to 100 TB: liquid clustering. 100 TB and up: partitioning might help, but test liquid clustering first. Each partition at least 1 GB.
  • Partition by the coarse grain data arrives in (a date), never a timestamp or ID; a generated column derives it and enables automatic partition filters.
  • Liquid clustering: up to 4 keys from filter and join columns, keys changeable anytime, OPTIMIZE FULL reclusters, CLUSTER BY AUTO needs predictive optimization.
  • Dynamic file pruning plus clustering the fact table on the join key skips fact files in star-schema joins.
  • A table can't be both partitioned and liquid-clustered; no Z-order on partition columns.

Try a question

A 300 TB device-telemetry table is appended daily, and almost every query filters a range of days; some also filter on device_id, which has millions of values. After benchmarking liquid clustering, the team has decided to keep partitioning. Which design follows Databricks guidance?

  1. APARTITIONED BY (event_ts), so that every distinct event timestamp maps to its own directory
  2. BPARTITIONED BY (event_date, device_id), so that both filters prune whole directories
  3. CA generated event_date partition column, plus OPTIMIZE ... ZORDER BY (device_id)
  4. DPARTITIONED BY (event_date) CLUSTER BY (device_id), so that device filters can also skip files
Show the answer

C. Partitioning works only for low or known cardinality fields such as dates, and each partition should hold at least 1 GB; a daily partition of a 300 TB table easily does. A generated event_date column lets Delta add partition filters automatically when queries filter on event_ts, and Z-order on device_id, a non-partition column, co-locates device rows within each day.

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

In the course

The lesson Scalable Table Layouts and Dimensional Models teaches this objective (about 55 minutes), and 17 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 →