Databricks Data Analyst Associate · Section 8 · 5% of the exam
Apply industry-standard data modeling techniques, such as star, snowflake, and data vault schemas, to analytical workloads.
One of the objectives of the Databricks Certified Data Analyst Associate exam, in the section “Data Modeling with Databricks SQL”. Here is what it covers, the points to remember and a question to try.
What it covers
Recognize facts, dimensions and grain; compare star and snowflake schemas; learn the data vault's hubs, links and satellites; and place each model in the bronze, silver and gold layers of the medallion architecture, using Databricks features such as informational keys, RELY and SCD Type 2.
Points to remember
- Fact table = events or measures at a declared grain (mostly keys and numbers); dimension = descriptive context, one row per entity.
- Star schema: a fact joined to denormalized dimensions, one join per dimension, the simplest model for BI.
- Snowflake schema: normalized dimensions (hierarchies in sub-tables), less redundancy, more joins.
- Data vault: hubs (business keys), links (relationships), satellites (attributes and their history); insert-only, auditable, agile for new sources; hash keys, load timestamp, record source.
- Raw vault = source data without business rules; business vault = rules applied; PIT and bridge tables pre-join the vault for consumers.
Try a question
A gold fact_order_lines table has one row per order line. A designer copied the order-level shipping_cost onto every line, so an order with four lines repeats its shipping cost four times. Dashboards that sum shipping_cost by month now overstate it. What is the best modeling fix?
- AUse
SUM(DISTINCT shipping_cost)in every dashboard query - BMove
shipping_costinto the customer dimension table - CSnowflake the fact table into line and product sub-tables
- DStore shipping cost at order grain in its own fact table
Show the answer
D. Every fact table needs one declared grain. Shipping cost is measured once per order, so storing it on order-line rows mixes two grains and double counts whenever lines are summed. Keep it in an order-level fact table (or allocate it across lines so the parts add up). SUM(DISTINCT ...) is a fragile patch: two orders with the same shipping cost collapse into one value.
Written for practice in the style of the exam: never a question from the real exam.
In the course
The lesson Star, snowflake and data vault models in the medallion lakehouse teaches this objective (about 40 minutes), and 12 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.