databricks Data Analyst Associate · Practice questions

Section 8: Data Modeling with Databricks SQL Practice Questions

Review 10 sample questions with their correct answers and explanations. Sign up free to continue with the full topic quiz.

Sign up free for the full quiz

Question 1

In a data vault model, which component stores descriptive attributes and their history over time?

  1. Satellite — Correct
  2. Bridge
  3. Hub
  4. Link

Correct answer

Satellite

Explanation

Hubs store business keys, links store relationships between hubs, and satellites store descriptive attributes with load timestamps to track history.

Question 2

In a snowflake schema, the product dimension is split into product, sub_category and category tables. What is the main tradeoff compared with a star schema?

  1. Less redundancy in dimensions, but more joins at query time — Correct
  2. Fewer joins at query time, but more redundant dimension data
  3. No change in joins, but the fact table must be duplicated
  4. Faster queries in every case, because tables are smaller

Correct answer

Less redundancy in dimensions, but more joins at query time

Explanation

Snowflaking normalizes dimensions, reducing redundancy, but queries need more joins. Star schemas are usually preferred for BI performance and simplicity.

Question 3

A business user asks for a single definition of 'net revenue' that every dashboard and Genie space uses consistently, with the formula maintained in one place in Unity Catalog. Which object best meets this need?

  1. A temporary view created at the start of each dashboard dataset
  2. A saved query in each user's workspace folder with the formula
  3. A metric view that defines the net revenue measure and its dimensions — Correct
  4. A shallow clone of the revenue table for each consuming team

Correct answer

A metric view that defines the net revenue measure and its dimensions

Explanation

Metric views define governed measures and dimensions once in Unity Catalog. Dashboards, Genie spaces and SQL queries reference the measure (with the MEASURE() function), so the logic stays consistent.

Question 4

An analyst designs a gold layer for reporting. A fact table holds order lines and joins directly to denormalized dimension tables for date, product and customer. Which model is this?

  1. Snowflake schema
  2. Star schema — Correct
  3. Data vault
  4. Third normal form

Correct answer

Star schema

Explanation

A star schema has a central fact table joined to denormalized dimension tables. A snowflake schema normalizes dimensions into multiple related tables.

Question 5

Which statement about primary and foreign key constraints on Unity Catalog tables is correct?

  1. They are informational and not enforced — Correct
  2. They automatically create indexes
  3. They are enforced and reject duplicate keys
  4. They are only allowed on external tables

Correct answer

They are informational and not enforced

Explanation

Primary and foreign key constraints in Unity Catalog are informational and not enforced, but they help BI tools, Genie and the optimizer understand relationships.

Question 6

Why might a data team keep a snowflake schema in silver but expose star schemas in gold?

  1. Gold tables cannot have foreign keys
  2. Snowflake schemas are required for Delta Lake
  3. Star schemas cannot be created in silver
  4. Normalized silver eases integration; star schemas in gold speed BI — Correct

Correct answer

Normalized silver eases integration; star schemas in gold speed BI

Explanation

A common pattern is to integrate in more normalized forms and present denormalized, consumption-friendly models in gold.

Question 7

A star schema gold model has a fact table fact_sales and dimension dim_date. Which query style is typical for BI?

  1. Store all attributes in the fact table and avoid joins
  2. Query only the dimension tables
  3. Join dimensions to each other without the fact table
  4. Join the fact to dim_date, filter on date attributes, aggregate — Correct

Correct answer

Join the fact to dim_date, filter on date attributes, aggregate

Explanation

BI queries typically join the fact table to dimensions, filter on dimension attributes and aggregate fact measures.

Question 8

A gold-layer table joins orders with customers and computes revenue by segment. Customer segments are updated occasionally, and these changes must be reflected in the result. Which object is the better fit?

  1. A temporary view, because it persists across sessions for all users
  2. An external table, because it can be refreshed incrementally from any source
  3. A materialized view, which keeps the whole result correct as sources change — Correct
  4. A streaming table, because it processes each source row exactly once

Correct answer

A materialized view, which keeps the whole result correct as sources change

Explanation

Materialized views keep the result of the defining query correct as sources change, including updates to dimension data. Streaming tables process each new input row once and do not reprocess older results when a joined table changes.

Question 9

Which statement best describes how the medallion architecture relates to dimensional modeling?

  1. Bronze holds star schemas, silver holds raw files, and gold holds data vault hubs and links
  2. Bronze is raw, silver is cleaned and conformed, gold holds business models such as star schemas — Correct
  3. Dimensional models replace the medallion layers, so only one layer is used
  4. Each layer must use a different storage format: CSV for bronze, Parquet for silver and Delta for gold

Correct answer

Bronze is raw, silver is cleaned and conformed, gold holds business models such as star schemas

Explanation

The medallion architecture progressively refines data. Gold is typically where consumption-ready models such as star schemas and aggregates live; all layers are usually Delta tables.

Question 10

An analyst wants AI/BI dashboards to use consistent definitions of 'active customer' across many dashboards. Which approach is best?

  1. Use a different SQL warehouse per dashboard
  2. Ask each dashboard owner to define the logic in a text widget
  3. Define it once as a metric view or gold table — Correct
  4. Copy the SQL into each dashboard dataset

Correct answer

Define it once as a metric view or gold table

Explanation

Centralizing business logic in Unity Catalog objects such as metric views ensures consistency and easier maintenance.

Ready for the full quiz?

Create a free QuizAnalyst account to practice the complete question set and save your progress.

Sign up free for the full quiz