Databricks Data Engineer Professional · Section 9 · 5% of the exam
Design dimensional models for analytical workloads, leveraging Materialized Views for pre-computed aggregation and Unity Catalog Metric Views for governed, reusable metric definitions, to ensure efficient querying and aggregation.
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 FULLreclusters,CLUSTER BY AUTOneeds 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
dim_customer defines customer_sk BIGINT GENERATED ALWAYS AS IDENTITY. Two jobs load new customers into it at the same time, and one regularly fails with a concurrent write conflict. Analysts also report gaps in the customer_sk values. Which statement is correct?
- AIdentity columns disable concurrent transactions and don't promise contiguous values; serialize the loads
- BThe gaps mean that rows were lost; enable row tracking so that identity values are assigned without gaps
- CConcurrent loads work once the table is partitioned by
customer_sk, with one partition range per job - DGenerate the key with
monotonically_increasing_id()in a CTAS instead, which supports concurrent writers
Show the answer
A. Declaring an identity column on a Delta table disables concurrent transactions, so use it only where writes to the table don't need to run in parallel. Identity values are unique but not guaranteed to be contiguous, so gaps are expected. You also can't partition by an identity column or define one in a CTAS.
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.