Databricks Data Engineer Professional · 13% practice allocation

Databricks Data Engineer Professional: Cost and Performance Optimization Practice Questions

5 free sample questions from the Cost and Performance Optimization domain, with answers and explanations. The full Data Engineer Professional bank has 311 questions across 10 domains. Questions are scenario-based and written from the official Databricks exam guide.

1.

Which Databricks feature accelerates query execution using a vectorized, native engine to reduce cost per query?

  • A. dbutils.widgets
  • B. Delta Sharing
  • C. VACUUM
  • D. Photon✓ Correct
Explanation

Photon is Databricks' vectorized native execution engine that speeds up SQL/DataFrame workloads, improving price/performance. VACUUM (C) is file cleanup, Delta Sharing (B) shares data, and widgets (A) parameterize notebooks.

2.

A frequently queried Delta table is partitioned by a very high-cardinality column, producing millions of tiny partitions and slow queries. What is the BEST remediation?

  • A. Add even more partition columns
  • B. Repartition on a lower-cardinality column (or use liquid clustering) to avoid excessive small partitions✓ Correct
  • C. Store the table as JSON
  • D. Partition by a unique ID per row
Explanation

Over-partitioning on high-cardinality columns creates many tiny files/partitions; repartitioning on a lower-cardinality key (or using liquid clustering) fixes this. Adding more partitions (A) or partitioning by a unique ID (D) worsens it, and JSON (C) abandons Delta's optimizations.

3.

What does data skipping in Delta rely on to avoid reading irrelevant files during a filtered query?

  • A. Per-file column statistics (min/max) stored in the transaction log, used to skip files that can't match the predicate✓ Correct
  • B. Reading every file's contents to check
  • C. The file names being alphabetical
  • D. A broadcast variable
Explanation

Delta stores per-file min/max statistics in the transaction log, so the engine can skip files whose ranges can't satisfy the filter — enhanced by ZORDER/clustering. Reading every file (B) defeats skipping, file naming (C) isn't used, and broadcast variables (D) are a join mechanism.

4.

When joining a very large fact table with a small dimension table, which technique avoids a costly shuffle of the large table?

  • A. A broadcast join (broadcasting the small table to all executors)✓ Correct
  • B. Shuffling both tables fully
  • C. Collecting both tables to the driver
  • D. Disabling the optimizer
Explanation

Broadcasting the small dimension table to all executors lets each join locally without shuffling the large fact table — much cheaper. A full shuffle of both (B) is expensive, collecting to the driver (C) doesn't scale, and disabling the optimizer (D) removes helpful automation.

5.

A pipeline over-provisions a large all-purpose cluster running 24/7 even though it only runs jobs a few hours a day. Which change reduces cost?

  • A. Use job clusters (that spin up per run and terminate after) and/or autoscaling, right-sized to the workload✓ Correct
  • B. Increase the cluster to the largest size permanently
  • C. Run everything on the driver
  • D. Disable autoscaling and pin maximum nodes
Explanation

Job clusters that start per run and terminate afterward (plus autoscaling and right-sizing) avoid paying for idle time. A permanently larger cluster (B), driver-only execution (C), and pinning max nodes (D) all increase cost or reduce scalability.

Test yourself across every Data Engineer Professional domain

The free Data Engineer Professional practice test mixes about 20 questions weighted like the exam. The full 311-question bank adds instant grading, flashcards and a timed mock exam.

Study this domain

Cost and Performance Optimization study guide (Data Engineer Professional) →

Other Data Engineer Professional domains

← All Databricks Data Engineer Professional study resources