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?
- SEQUENCE BY last_login
- IGNORE NULL UPDATES
- COLUMNS * EXCEPT (last_login), which removes the column from the target
- 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?
- Apply business aggregations in bronze
- Delete bronze after silver is built
- Store only aggregated KPIs
- 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?
- Sync the gold table to Lakebase or an online store — Correct
- Export the gold table to CSV every second
- Read the gold table with a notebook on each request
- 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?
- monotonically_increasing_id() as a guaranteed consecutive key
- The file name
- An identity column (GENERATED ALWAYS AS IDENTITY) — Correct
- 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?
- The natural business key only
- A surrogate key per version — Correct
- The row's file path
- 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?
- A data vault exposed directly to BI users
- A normalized third normal form model with 15 joins per query
- One wide table with every attribute repeated per order and no keys
- 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?
- APPLY AS TRUNCATE WHEN
- STORED AS SCD TYPE 2 — Correct
- STORED AS SCD TYPE 1
- 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?
- They are derived from other columns on write — Correct
- They cannot be used for partitioning
- They are computed at query time only
- 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?
- MAP<STRING,STRING>
- STRING with JSON
- VARIANT — Correct
- 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?
- Cleaned, deduplicated and conformed data — Correct
- It contains raw files
- It is only for dashboards
- It must be in CSV
Correct answer
Cleaned, deduplicated and conformed data
Explanation
Silver provides validated, integrated data for downstream use.