Limited-Time Offer: Enjoy 50% Savings! - Ends In 0d 00h 00m 00s Coupon code: 50OFF
Welcome to QA4Exam

Free practice questions with explanations

Databricks Databricks-Certified-Professional-Data-Engineer Dumps 2026 with Free Practice Questions and Answers

17 original practice questions for the Databricks Certified Data Engineer Professional exam, each with an answer and explanation.

Exam topics: Data Processing, Data Modeling, Databricks Tooling, Monitoring And Logging and 2 more.

Formats: single answer, multiple answers, drag and drop, dropdown and order list. A new question is added every 15 days.

Databricks-Certified-Professional-Data-Engineer Practice Set Details

Exam Code
Databricks-Certified-Professional-Data-Engineer
Questions On This Page
17
Exam Topics Covered
6 of 6
Question Types
5
Newest Question
New Question
Every 15 days
Full Question Set
285
Certification
Data Engineer Professional
17 questions

Databricks Databricks-Certified-Professional-Data-Engineer Exam Questions and Answers by Topic

Databricks Tooling

20% of the exam

3 practice questions on this topicWhat this topic covers

Question 1

Added

Single Answer

Two independent jobs update different customer rows in a Delta table. Both read the same table version, then each writes changes to disjoint key ranges. The first job commits successfully; the second receives a concurrent transaction exception. The team cannot serialize the jobs because their schedules overlap, and they need to preserve Delta's transactional guarantees. What is the best response?

Correct answer: C

Delta uses optimistic concurrency control: a transaction reads a snapshot and validates conflicts at commit. A concurrent transaction failure should be handled by refreshing the snapshot and rerunning the transaction logic so its predicates and write set are checked against the new state. Disabling concurrency control is not the safe resolution. Parquet would remove Delta transaction guarantees rather than provide safe concurrent updates. Overwriting can erase the first job's committed changes.

Question 2

Added

Drag And Drop

An engineering team is preparing copies of Delta tables for development and recovery workflows. The copies must be selected according to whether they share source data files or create independent files, and whether a later source-table change should appear in the copy. Match each requirement to the appropriate clone behavior.

Drag each item onto its matching target. On a phone: tap an item, then tap a target.

Development copy that does not include future source changes
Independent copy of data files and metadata at clone time
Fast copy that shares source files and reflects source changes
Shallow clone
Deep clone
Correct answer:
  • Fast copy that shares source files and reflects source changes → Shallow clone
  • Independent copy of data files and metadata at clone time → Deep clone
  • Development copy that does not include future source changes → Deep clone

A shallow clone copies table metadata while referencing the source data files, making it fast and space-efficient but dependent on the source files remaining available. A deep clone copies data files as well as metadata, so it is independent and represents the source state at clone time. Future changes to the source are not automatically propagated to a deep clone. Treating a shallow clone as an independent copy would miss its dependence on the referenced files.

Question 3

Added

Single Answer

A Delta table receives frequent append writes and is queried by date range and a selective product category. The table is already partitioned by date, and the query team wants to improve skipping on product_category without introducing another high-cardinality partition level. They also need to keep a consistent, manageable file layout after each daily load. Which maintenance plan is best?

Correct answer: C

OPTIMIZE compacts small files, and ZORDER BY product_category colocates values to improve data skipping for selective category predicates while retaining the date partition scheme. Applying maintenance after the daily load avoids repeatedly rewriting files during individual appends, and a suitable target size supports manageable file layout. VACUUM removes old unreferenced files and does not compact current files; partitioning by category risks high cardinality. Z-ordering every append is costly. A date bloom filter does not address category filtering or file compaction.

Data Processing

30% of the exam

5 practice questions on this topicWhat this topic covers

Question 4

Added

Single Answer

A production pipeline consumes a Kafka topic and writes each micro-batch to a Delta table using Structured Streaming. During a routine cluster restart, the query resumes from its checkpoint, but the source can replay records and the sink must not contain duplicate effects. The pipeline uses foreachBatch to perform a MERGE keyed by event_id; incoming records can contain multiple updates for the same event_id within one batch. The team cannot change the upstream event format or introduce a separate deduplication service. What is the best next change to make the batch operation safe to retry?

Correct answer: A

Selecting one deterministic source row per event_id prevents a MERGE from attempting to update the same target row multiple times in one operation, and choosing the greatest source sequence preserves the newest change. Delta transaction identifiers can make supported writes idempotent, but they do not resolve duplicate source keys within a MERGE. Triggering once does not provide durable offset recovery, and removing the checkpoint can cause data loss or reprocessing. A watermark applies to event-time stateful operations; it does not deduplicate keys in a foreachBatch DataFrame.

Question 5

Added

Single Answer

A streaming job reads append-only JSON files from cloud storage and writes parsed records to a Delta table. A malformed record currently fails the whole micro-batch, but the source cannot be replayed indefinitely because files are removed after 14 days. The team must retain valid records, isolate malformed input for later repair, and avoid losing progress on a driver restart. Which approach best meets the requirements?

Correct answer: B

Auto Loader can track file discovery with a checkpoint, and rescued-data handling captures fields or records that cannot be parsed under the expected schema so they can be routed for repair. The checkpoint preserves stream progress across restarts, which matters because source files expire after 14 days. Permissive batch reads do not provide the required durable streaming progress, and deleting checkpoints invites reprocessing. failFast still stops on malformed input, while running without a checkpoint risks duplicate or lost progress.

Question 6

Added

Order List

A team is creating a Structured Streaming aggregation of events by account over a 30-minute event-time window. Events may arrive up to 10 minutes late, and results are written to a Delta sink using a checkpoint. They want bounded state while retaining all events within the lateness guarantee. Arrange the implementation steps in the order they must be performed.

Drag the steps into the correct order, or use the arrows.

  1. Aggregate the grouped events
  2. Write the aggregate stream to Delta with a stable checkpoint location
  3. Group the events by account and 30-minute event-time window
  4. Add a 10-minute event-time watermark to the event timestamp
Correct answer:
  1. Add a 10-minute event-time watermark to the event timestamp
  2. Group the events by account and 30-minute event-time window
  3. Aggregate the grouped events
  4. Write the aggregate stream to Delta with a stable checkpoint location

The watermark must be applied to the event-time column before the aggregation so Structured Streaming can use the lateness threshold to bound state and determine when window results can be finalized. The grouping defines account and window keys, the aggregation computes the result, and the sink then persists output with checkpointed progress. Writing before defining the stateful aggregation is not a valid construction order, and omitting the watermark leaves state unbounded for this late-arrival use case.

Question 7

Added

Multiple Answers

A Spark SQL job joins a large fact table to a small, frequently refreshed dimension. The dimension is 8 MB after filtering, the fact table is several terabytes, and the cluster has sufficient executor memory for the filtered dimension. Query plans show a sort-merge join and substantial shuffle. The team cannot change source table formats or add a cluster-wide setting. Which two changes are the best candidates to reduce join cost? (Choose two.)

Correct answer: B, E

Filtering the dimension before the join reduces the data eligible for broadcast, and a broadcast hint can direct Spark to distribute that small relation to executors instead of shuffling the large fact side. These choices address the observed sort-merge shuffle while respecting the memory constraint stated for the filtered dimension. Repartitioning both large inputs can add expensive shuffle work. Caching a terabyte-scale fact table on the driver is not viable. Shuffle partition count does not force a broadcast join.

Question 8

Added

Dropdown

A CDC pipeline applies source changes to a Delta target. Each source row contains an operation code and a monotonically increasing commit sequence, and the source can resend old changes. The target must ignore stale changes while applying deletes and updates. Complete the MERGE clause pattern with the correct condition and delete action.

Choose the correct value for each blank.

MERGE INTO target t USING source s ON t.id = s.id WHEN MATCHED AND s.commit_seq > t.commit_seq AND s.op = '' THEN WHEN MATCHED AND s.commit_seq > t.commit_seq THEN UPDATE SET *
Correct answer:

MERGE INTO target t USING source s ON t.id = s.id WHEN MATCHED AND s.commit_seq > t.commit_seq AND s.op = 'D' THEN DELETE WHEN MATCHED AND s.commit_seq > t.commit_seq THEN UPDATE SET *

The delete branch must match the source delete operation and use the Delta MERGE DELETE action, with the commit sequence guard ensuring older replays do not overwrite newer target state. An insert operation code would not identify deletes, and a generic update action would leave the row present rather than remove it. INSERT is not a valid action for a matched row in this branch. The later matched update handles non-delete changes that pass the same sequence comparison.

Data Modeling

20% of the exam

3 practice questions on this topicWhat this topic covers

Question 9

Added

Single Answer

A retailer stores 4 TB of transaction data in a Delta table, queried primarily by transaction date and occasionally by store_id. Daily ingestion adds a few million rows. The table is partitioned by transaction date, but each date partition contains thousands of small files because several upstream jobs write concurrently. Most queries filter on a date range and aggregate by store_id; the team wants to improve file pruning without creating a high-cardinality directory layout. Which action is the best next optimization?

Correct answer: B

Z-ordering by store_id colocates related values within data files, improving data skipping for store filters while preserving the existing date partitioning. OPTIMIZE also compacts small files. Partitioning by store_id risks excessive partition cardinality and does not address the query pattern as safely. VACUUM removes eligible old files rather than reorganizing current data. Change Data Feed supports consuming row changes, not optimizing interactive query layout.

Question 10

Added

Single Answer

A finance warehouse receives a corrected customer address periodically. It must retain the current address only, while preserving the customer's original customer_id and creation timestamp forever. Late arriving corrections must be applied without creating a second customer row, and analysts use Delta Lake SQL. Which implementation best satisfies these requirements?

Correct answer: B

A Type 1 update replaces the current address in place, while excluding customer_id and creation timestamp from the update preserves those immutable values. A Type 2 merge would retain historical address versions, contrary to the current-only requirement. Type 0 would reject the required corrections. Appending corrections creates multiple customer rows and pushes deduplication complexity to every consumer.

Question 11

Added

Multiple Answers

A subscription company needs a customer dimension that preserves every address and subscription-tier change for audit, while presenting one current row per customer to downstream reports. Source events can arrive late and may be replayed, and a customer may receive multiple changes on the same business date. The pipeline uses Delta Lake and has a stable source event sequence within each customer. Which two design choices meet the requirements? (Choose two.)

Correct answer: D, E

A Type 2 dimension records each change as a new effective-dated version and can identify the current row. Deduplicating by the stable event sequence makes replayed events idempotent and resolves multiple same-day changes deterministically before the merge. Partitioning by customer_id is a high-cardinality layout choice and does not itself provide history semantics. Daily overwrite discards prior versions. Type 1 replaces values and the proposed unversioned log does not provide the required dimension history.

Security and Governance

10% of the exam

2 practice questions on this topicWhat this topic covers

Question 12

Added

Single Answer

A company has adopted Unity Catalog for production data. Analysts in a finance group need to query curated tables but must not modify table data or create objects in the production schema. They should not receive broad access to the underlying cloud storage. The platform team wants access managed centrally through their group membership. Which grant strategy best meets the requirement?

Correct answer: B

Unity Catalog access requires the relevant parent usage privileges and object-level privileges. USE CATALOG and USE SCHEMA allow the group to resolve objects, while SELECT on the required tables provides read access without granting write or object-creation rights. ALL PRIVILEGES is broader than required and per-user revocations are harder to govern. Direct cloud storage credentials bypass the intended centralized table access model. SELECT on a catalog alone does not provide the necessary schema usage and table privileges.

Question 13

Added

Drag And Drop

A regulated analytics platform uses Unity Catalog. Different teams need only the privileges required to discover governed objects, create tables in an approved schema, and read a specific protected table. Match each access requirement to the Unity Catalog privilege that directly satisfies it.

Drag each item onto its matching target. On a phone: tap an item, then tap a target.

Resolve objects within a schema
Resolve objects within a catalog
Read rows from a table
Create tables in a schema
SELECT
CREATE TABLE
USE SCHEMA
USE CATALOG
Correct answer:
  • Resolve objects within a catalog → USE CATALOG
  • Resolve objects within a schema → USE SCHEMA
  • Read rows from a table → SELECT
  • Create tables in a schema → CREATE TABLE

Unity Catalog separates hierarchy usage from object actions. USE CATALOG and USE SCHEMA permit navigation and resolution at their respective levels but do not themselves grant table reads or creation. SELECT grants read access to the specified table, and CREATE TABLE permits table creation in the schema when the required usage privileges are also present. Granting SELECT for object discovery alone is insufficient, while CREATE TABLE does not grant read access to existing tables.

Monitoring and Logging

10% of the exam

2 practice questions on this topicWhat this topic covers

Question 14

Added

Single Answer

A scheduled Spark job has become slower over several weeks. The Spark UI shows that most stages finish quickly, but one stage has a long tail: a small number of tasks run much longer than the median, with similar input sizes but sharply higher shuffle read for those tasks. The job uses a hash aggregation after joining on customer_id. What should the engineer investigate first?

Correct answer: A

A few tasks with exceptional shuffle read and long runtimes are characteristic evidence of data skew, especially around a join or aggregation key. The engineer should inspect key-frequency distribution and the physical plan, then consider skew-aware processing or repartitioning strategies. Driver memory does not explain the task-level shuffle imbalance. Transaction-log history is not the likely cause of a single long-tail shuffle stage. Partitioning by an aggregation output column does not necessarily address skew in customer_id.

Question 15

Added

Multiple Answers

A Structured Streaming query that joins events to a static Delta reference table is falling behind. The cluster is stable, input rate has not increased, and the query has been running for months. The team needs evidence to distinguish slow processing from inadequate trigger capacity before changing the cluster. Which two Spark UI or streaming metrics should they compare over several batches? (Choose two.)

Correct answer: B, D

Comparing input and processed rows per second shows whether processing capacity is keeping pace with arrival rate. Comparing batch processing duration with the trigger interval reveals whether each batch consumes more time than the available trigger cadence, which contributes to backlog. A historical executor count alone does not characterize current batch throughput. Workspace catalog size is unrelated to stream progress. Partition count without query-progress evidence does not identify whether the stream is processing too slowly.

Testing and Deployment

10% of the exam

2 practice questions on this topicWhat this topic covers

Question 16

Added

Order List

A data engineering team deploys a Databricks bundle from source control to a production workspace. The bundle contains a job and notebook code, and production deployment must use a reviewed commit and avoid accidental changes to the developer workspace. Arrange the release steps in the correct order.

Drag the steps into the correct order, or use the arrows.

  1. Run the deployed job and verify its outcome
  2. Run unit and validation checks against the reviewed source revision
  3. Configure the bundle target for the production workspace
  4. Deploy the bundle to the production target
Correct answer:
  1. Run unit and validation checks against the reviewed source revision
  2. Configure the bundle target for the production workspace
  3. Deploy the bundle to the production target
  4. Run the deployed job and verify its outcome

The release should begin by validating the reviewed source revision so defective code or configuration is rejected before deployment. The production target then needs to be selected in the bundle configuration, after which the bundle can be deployed to that workspace. Running the deployed job and verifying its outcome confirms the production artifact works. Deploying before validation risks publishing unreviewed or invalid changes, and running verification before deployment would not test the production deployment.

Question 17

Added

Dropdown

A team uses Databricks Asset Bundles to deploy the same job definition to development and production. The production workspace must receive the bundle only when the production target is explicitly selected. Complete the CLI command and target configuration selection.

Choose the correct value for each blank.

Deploy the production bundle with `databricks bundle deploy -t `, where the target is declared under `targets: ` in the bundle configuration.
Correct answer:

Deploy the production bundle with `databricks bundle deploy -t prod`, where the target is declared under `targets: prod` in the bundle configuration.

The CLI target flag selects a named bundle target, and the configuration must declare that target under the top-level targets mapping. Using the same name, prod, in both places ensures the production workspace settings are selected. production, workspace, or default would be wrong unless a target with that exact name were declared and intended. resources, include, and artifacts are not the location where named deployment targets are defined.

More Databricks Practice Questions

Get the Full Databricks Databricks-Certified-Professional-Data-Engineer Dumps as PDF and Practice Test

17 questions are free on this page and the full set has 285. It comes as a PDF and an online practice test, with 90 days of free updates.