Question 1
Which statement about the Delta transaction log checkpoint is correct?
- It is created only when VACUUM runs
- It stores a full copy of the table's data
- It is the streaming checkpoint used by Structured Streaming
- It summarizes table state so readers need not replay all JSON commits — Correct
Correct answer
It summarizes table state so readers need not replay all JSON commits
Explanation
Delta writes Parquet checkpoints periodically to speed up state reconstruction.
Question 2
Which statement about SQL stored procedures or SQL scripting on Databricks is correct?
- SQL scripting cannot run in jobs
- SQL scripting supports control flow such as loops and conditions in SQL — Correct
- SQL scripting replaces Unity Catalog permissions
- SQL scripting is only available in Python notebooks
Correct answer
SQL scripting supports control flow such as loops and conditions in SQL
Explanation
SQL scripting adds procedural constructs to Databricks SQL.
Question 3
A streaming aggregation counts events per device per 5-minute window. Late events up to 10 minutes must be included, and state must not grow without bound. Which code is correct?
- df.withWatermark('ingest_ts', '0 seconds').groupBy('device_id').count()
- df.groupBy('device_id').count()
- df.groupBy(window('event_ts', '5 minutes'), 'device_id').count().withWatermark('event_ts', '10 minutes')
- df.withWatermark('event_ts', '10 minutes').groupBy(window('event_ts', '5 minutes'), 'device_id').count() — Correct
Correct answer
df.withWatermark('event_ts', '10 minutes').groupBy(window('event_ts', '5 minutes'), 'device_id').count()
Explanation
The watermark must be defined on the event-time column before the aggregation to bound state and handle lateness.
Question 4
Which Python feature in declarative pipelines writes a one-time backfill into a streaming table alongside its ongoing streaming flow?
- An append flow with once=True — Correct
- A view with persist=True
- A second pipeline writing to the same table without coordination
- A materialized view with full refresh scheduled every minute
Correct answer
An append flow with once=True
Explanation
Once flows run a single time and can backfill historical data into a target.
Question 5
Two concurrent jobs run MERGE statements on the same Delta table, touching different date ranges. One fails with ConcurrentAppendException. Which change most directly reduces conflicts?
- Run VACUUM before each MERGE
- Increase spark.sql.shuffle.partitions
- Disable the Delta transaction log
- Add explicit date predicates to each MERGE condition — Correct
Correct answer
Add explicit date predicates to each MERGE condition
Explanation
Explicit predicates let Delta detect that operations touch disjoint data; row-level concurrency further reduces conflicts.
Question 6
Which statement about Lakeflow declarative pipelines in continuous mode versus triggered mode is correct?
- Triggered mode always has lower latency
- Both modes stop after each update
- Continuous runs constantly for low latency; triggered stops — Correct
- Continuous mode cannot process streaming tables
Correct answer
Continuous runs constantly for low latency; triggered stops
Explanation
Choose continuous for latency-sensitive workloads and triggered for cost-efficient periodic processing.
Question 7
A pipeline update fails with a schema change in the source. The table uses AUTO CDC. Which statement is correct?
- The pipeline converts the table to SCD Type 2 automatically
- Supported schema changes can propagate; incompatible ones may need a full refresh — Correct
- AUTO CDC never allows any schema change, so the table must be dropped
- Schema changes are ignored silently and new columns are never added
Correct answer
Supported schema changes can propagate; incompatible ones may need a full refresh
Explanation
Additive changes typically evolve; breaking changes may require reprocessing.
Question 8
Which statement about the trade-off between triggered and continuous pipelines is correct?
- Triggered is always lower latency
- Continuous lowers latency but costs more compute; triggered is cheaper for looser freshness — Correct
- There is no trade-off
- Continuous pipelines are cheaper because they process less data in each micro-batch and shut down when idle
Correct answer
Continuous lowers latency but costs more compute; triggered is cheaper for looser freshness
Explanation
Choose based on freshness requirements versus cost.
Question 9
Which statement about the Python API for Lakeflow declarative pipelines is correct?
- Python pipelines cannot read streaming sources
- Expectations are only available in SQL
- Decorated functions return DataFrames that define datasets — Correct
- Pipelines must call spark.write in each function
Correct answer
Decorated functions return DataFrames that define datasets
Explanation
Python pipelines define datasets with decorators and return DataFrames; the framework handles writing and orchestration.
Question 10
Which statement about row-level concurrency in Delta is correct?
- It disables optimistic concurrency control
- It allows two writers to update the same row with both changes kept
- It only applies to append-only tables
- It resolves conflicts at row level for concurrent writes — Correct
Correct answer
It resolves conflicts at row level for concurrent writes
Explanation
Row-level concurrency detects conflicts at the row level, so concurrent UPDATE, DELETE and MERGE on different rows can succeed.