Databricks Data Engineer Professional exam dumps

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

Single answer

You are working with a large Delta table in Databricks that stores logs from IoT devices. The table is partitioned by a device_type column and a log_date column (in the format yyyy-MM-dd). The business has requested a monthly archival of logs older than one year and the ability to delete logs for specific device types upon request. Which of the following partitioning practices would best support efficient archiving and deletion of data?

  1. A

    Partition by both device_type and log_date to enable efficient filtering and deletion based on these columns.

  2. B

    Partition by only the log_date column to simplify the partition structure and improve query performance.

  3. C

    Partition by a hash of the device_type column to evenly distribute data across partitions.

  4. D

    Do not use partitioning and rely solely on file pruning for data deletion and archival.

Show answer and explanation

Correct answer: A

Explanation

Partitioning by both device_type and log_date aligns with the business requirements for efficient data archival and deletion. This approach allows the system to prune partitions based on the specified log_date and device_type, reducing the amount of data scanned. The other options either do not address both requirements or result in reduced efficiency.

  • A. Correct.

    Partitioning by both device_type and log_date allows for targeted filtering, deletion, and archival of data based on these specific columns, which aligns with the requirements in the scenario.

  • B. Incorrect.

    Partitioning by only log_date would make it difficult to efficiently delete data for specific device_type values, as all device types would be grouped together within the same date partitions.

  • C. Incorrect.

    Partitioning by a hash of the device_type column does not directly aid in the archival or deletion of data based on log_date or specific device_type values, making it an unsuitable choice for this scenario.

  • D. Incorrect.

    Not using partitioning would result in poor performance for archival or deletion operations, as the entire dataset would need to be scanned to locate the relevant data.

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