Databricks Data Engineer Professional exam dumps

Databricks Data Engineer Professional practice question 29 of 313

Databricks Certified Data Engineer Professional. Professional level, Databricks. Free question with the correct answer and a full explanation.

Databricks Data Engineer Professional Question 29

Select 4

A data engineering team is working on optimizing a Delta Lake table that stores large-scale e-commerce transaction data. The table is queried frequently by the customer_id and purchase_date columns for performance-critical dashboards. Currently, the table's performance is suboptimal due to large file sizes and inefficient query execution. Which of the following actions should the team take to improve performance?

  1. A

    Partition the Delta Lake table by the purchase_date column.

  2. B

    Apply Z-Order clustering on the customer_id column.

  3. C

    Enable Bloom filters on the customer_id column.

  4. D

    Reduce the file sizes by compacting small files through Delta Lake's OPTIMIZE command.

  5. E

    Partition the table by both customer_id and purchase_date columns.

Show answer and explanation

Correct answers: A, B, C, D

Explanation

To optimize a Delta Lake table for frequent queries on customer_id and purchase_date, the team should use a combination of partitioning, Z-Ordering, Bloom filters, and file compaction. Partitioning by purchase_date ensures efficient pruning for date-based queries. Z-Ordering improves data clustering for efficient data skipping on customer_id. Bloom filters further enhance performance for equality queries on customer_id. Finally, compacting small files reduces overhead and improves query execution. Partitioning by both customer_id and purchase_date is avoided due to the risk of creating too many small files.

  • A. Correct.

    Partitioning by purchase_date improves performance for queries filtering by this column, as it reduces the amount of data scanned during query execution.

  • B. Correct.

    Z-Ordering the table by customer_id optimizes data skipping for queries filtering on customer_id, further improving query performance.

  • C. Correct.

    Bloom filters are effective for improving the performance of point queries and equality checks, particularly on high-cardinality columns like customer_id.

  • D. Correct.

    Compacting small files with Delta Lake's OPTIMIZE command reduces overhead for file management and improves query performance, especially in scenarios with many small files from frequent writes.

  • E. Incorrect.

    Partitioning by both customer_id and purchase_date is not recommended because it may lead to an excessive number of small files due to high cardinality in customer_id, which can negatively impact performance.

Timed practice exam

Take a Databricks Data Engineer Professional practice test under exam conditions

60 questions in 120 minutes, drawn from this bank, with a score report and a per-question review when you finish.

Start timed exam