databricks Data Engineer Professional · Practice questions

Section 9: Data Modeling 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

An SCD Type 2 target should create a new version only when address or segment changes, not when last_login changes. Which clause supports this?

  1. SEQUENCE BY last_login
  2. IGNORE NULL UPDATES
  3. COLUMNS * EXCEPT (last_login), which removes the column from the target
  4. TRACK HISTORY ON (address, segment) — Correct

Correct answer

TRACK HISTORY ON (address, segment)

Explanation

TRACK HISTORY controls which column changes generate new history rows; other columns are updated in place.

Question 2

A team must design a medallion architecture for a regulated domain. Which practice is appropriate for bronze?

  1. Apply business aggregations in bronze
  2. Delete bronze after silver is built
  3. Store only aggregated KPIs
  4. Raw data as received, append-only, with metadata — Correct

Correct answer

Raw data as received, append-only, with metadata

Explanation

Bronze preserves source fidelity for replay and audits.

Question 3

Which pattern serves precomputed gold features to an application needing millisecond lookups?

  1. Sync the gold table to Lakebase or an online store — Correct
  2. Export the gold table to CSV every second
  3. Read the gold table with a notebook on each request
  4. Query the gold Delta table from a SQL warehouse for each request

Correct answer

Sync the gold table to Lakebase or an online store

Explanation

Low-latency serving uses OLTP stores synced from Delta.

Question 4

Which approach generates surrogate keys in Delta tables?

  1. monotonically_increasing_id() as a guaranteed consecutive key
  2. The file name
  3. An identity column (GENERATED ALWAYS AS IDENTITY) — Correct
  4. row_number() without ordering

Correct answer

An identity column (GENERATED ALWAYS AS IDENTITY)

Explanation

Identity columns generate unique values; monotonically_increasing_id is unique but not consecutive and not stable across runs.

Question 5

Which column type is typically used as the join key between facts and SCD Type 2 dimensions?

  1. The natural business key only
  2. A surrogate key per version — Correct
  3. The row's file path
  4. The ingestion timestamp

Correct answer

A surrogate key per version

Explanation

Surrogate keys point to the correct historical version.

Question 6

A gold model for BI needs a fact table of orders and dimensions for customer and product. Analysts filter by customer region and product category. Which design is most appropriate?

  1. A data vault exposed directly to BI users
  2. A normalized third normal form model with 15 joins per query
  3. One wide table with every attribute repeated per order and no keys
  4. A star schema with denormalized dimensions and surrogate keys — Correct

Correct answer

A star schema with denormalized dimensions and surrogate keys

Explanation

Star schemas simplify and speed BI queries.

Question 7

A dimension must keep full history of customer address changes, with start and end markers for each version. Which AUTO CDC option produces this?

  1. APPLY AS TRUNCATE WHEN
  2. STORED AS SCD TYPE 2 — Correct
  3. STORED AS SCD TYPE 1
  4. TRACK HISTORY OFF

Correct answer

STORED AS SCD TYPE 2

Explanation

SCD Type 2 keeps historical versions with __START_AT and __END_AT columns; Type 1 overwrites in place.

Question 8

Which statement about generated columns is correct?

  1. They are derived from other columns on write — Correct
  2. They cannot be used for partitioning
  3. They are computed at query time only
  4. They can be written with arbitrary values

Correct answer

They are derived from other columns on write

Explanation

Generated columns store derived values and are validated on write.

Question 9

A semi-structured payload column changes shape often. Which type minimizes schema maintenance while keeping query performance good?

  1. MAP<STRING,STRING>
  2. STRING with JSON
  3. VARIANT — Correct
  4. BINARY

Correct answer

VARIANT

Explanation

VARIANT stores semi-structured data efficiently with fast path extraction.

Question 10

Which statement about the silver layer is correct?

  1. Cleaned, deduplicated and conformed data — Correct
  2. It contains raw files
  3. It is only for dashboards
  4. It must be in CSV

Correct answer

Cleaned, deduplicated and conformed data

Explanation

Silver provides validated, integrated data for downstream use.

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