Databricks Data Engineer Professional exam dumps

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

Select 2

You are working with a large dataset of IoT sensor readings stored in a Delta table. The dataset is partitioned by a device_type column. The business requires you to archive older records for a specific device type and delete records for another device type. Which approach leverages the partitioning to efficiently meet these requirements?

  1. A

    Use the Delta table's VACUUM command to delete all records for a specific device_type.

  2. B

    Filter the Delta table by device_type and write the older records for archiving to cloud storage.

  3. C

    Delete records for the specific device_type using the DELETE command with a filter on the device_type column.

  4. D

    Repartition the Delta table dynamically before performing the archiving and deletion tasks.

  5. E

    Use the OPTIMIZE command on the Delta table to automatically remove records for the specific device_type.

Show answer and explanation

Correct answers: B, C

Explanation

Partitioning the Delta table by device_type allows efficient filtering and targeting of specific partitions for both archiving and deletion tasks. By filtering and writing records to an archive location, and using the DELETE command to remove data for a specific device_type, you can avoid scanning unrelated partitions and improve performance. The other options either misuse Delta commands or add unnecessary overhead.

  • A. Incorrect.

    The VACUUM command is used for cleaning up old files that are no longer referenced by the Delta transaction log. It does not delete active records or filter data based on conditions like device_type.

  • B. Correct.

    This is a correct approach. By filtering the Delta table based on the device_type column, you can identify older records for a specific device type and write them to an archive location. The partitioning by device_type improves efficiency by scanning only the relevant partitions.

  • C. Correct.

    This is a correct approach. Since the Delta table is partitioned by device_type, the DELETE command can efficiently target and remove records for the specific device_type without scanning unnecessary partitions.

  • D. Incorrect.

    Repartitioning the Delta table dynamically is unnecessary in this scenario, as the table is already partitioned by device_type. Repartitioning would add overhead without improving efficiency for this task.

  • E. Incorrect.

    The OPTIMIZE command is used to compact small files in Delta tables to improve query performance. It does not delete records or archive data for specific partitions.

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