Databricks · DE-PRO

databricks DE-PRO Practice Questions

Practice for the Data Engineer Professional Databricks certification exam. Review available chapters with published question counts.

200 questions across 9 chapters with published questions.

Start free practice

Exam chapters

Practice questions

Sample questions with answers and explanations

Question 1

Which statement about the Delta transaction log checkpoint is correct?

  1. It is created only when VACUUM runs
  2. It stores a full copy of the table's data
  3. It is the streaming checkpoint used by Structured Streaming
  4. 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?

  1. SQL scripting cannot run in jobs
  2. SQL scripting supports control flow such as loops and conditions in SQL — Correct
  3. SQL scripting replaces Unity Catalog permissions
  4. 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?

  1. df.withWatermark('ingest_ts', '0 seconds').groupBy('device_id').count()
  2. df.groupBy('device_id').count()
  3. df.groupBy(window('event_ts', '5 minutes'), 'device_id').count().withWatermark('event_ts', '10 minutes')
  4. 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?

  1. An append flow with once=True — Correct
  2. A view with persist=True
  3. A second pipeline writing to the same table without coordination
  4. 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?

  1. Run VACUUM before each MERGE
  2. Increase spark.sql.shuffle.partitions
  3. Disable the Delta transaction log
  4. 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.

Other Databricks exams