Databricks Data Engineer Professional exam dumps

Databricks Data Engineer Professional practice question 60 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 60

Single answer

You are working on a Delta Lake table containing a large volume of e-commerce transaction data. Each record includes columns such as transaction_id, customer_id, transaction_date, product_category, and region. The table is queried most often to generate daily sales reports for each region and product category. Which columns would be the most appropriate to use for partitioning the table to optimize query performance?

  1. A

    transaction_date and region

  2. B

    customer_id and transaction_id

  3. C

    product_category and transaction_id

  4. D

    region and product_category

Show answer and explanation

Correct answer: A

Explanation

Partitioning a table by the appropriate columns is critical for optimizing query performance. Since the table is queried most often for daily sales reports by region and product category, partitioning by transaction_date and region minimizes the amount of data scanned during these queries. Choosing high-cardinality columns like transaction_id or irrelevant columns for the primary query patterns would lead to poor performance and inefficiencies.

  • A. Correct.

    transaction_date and region are the correct partitioning columns because the queries primarily filter on these columns to generate daily sales reports for each region. Partitioning on these columns will reduce the amount of data scanned during queries.

  • B. Incorrect.

    customer_id and transaction_id are not suitable because these columns are highly cardinal. Partitioning on high-cardinality columns can lead to too many small files, which negatively impacts query performance.

  • C. Incorrect.

    product_category and transaction_id are not appropriate because transaction_id is unique for each record, leading to an excessive number of partitions. This would result in inefficient storage and query execution.

  • D. Incorrect.

    region and product_category are partially relevant but insufficient. While they are useful for certain queries, daily sales reports need filtering by transaction_date. Omitting it from the partitioning strategy would prevent optimization for the primary use case.

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