Databricks Data Engineer Professional exam dumps

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

Select 3

You are managing a Delta Lake table in Databricks that tracks customer orders. The table is configured with Change Data Feed (CDF) enabled. Your team is building a downstream application that requires both new and updated records while also ensuring that deleted records are processed and removed correctly from the downstream system. Which of the following steps should you take to propagate the deletes to the downstream system using CDF?

  1. A

    Query the Change Data Feed using the readChangeFeed API and filter for rows where the _change_type column is 'delete'.

  2. B

    Update the downstream target system by removing rows matching the primary key of records with _change_type as 'delete'.

  3. C

    Query the Delta table directly using the read API and filter for rows where the _change_type column is 'delete'.

  4. D

    Ensure that the downstream system supports processing of delete operations based on primary keys.

  5. E

    Write the delete records back to the Delta Lake table to mark them as processed.

Show answer and explanation

Correct answers: A, B, D

Explanation

To propagate deletes using Delta Lake's Change Data Feed (CDF), you should query the table using the readChangeFeed API to filter rows where _change_type is 'delete'. These rows should then be processed by removing them from the downstream system based on their primary keys. Additionally, the downstream system must support handling deletes to ensure proper propagation.

  • A. Correct.

    Correct. The readChangeFeed API is the correct method to query the Change Data Feed and filter for deletes using the _change_type column.

  • B. Correct.

    Correct. To propagate deletes, the downstream system needs to remove records matching the primary key of deleted rows.

  • C. Incorrect.

    Incorrect. The read API does not provide access to change data feed-specific metadata like _change_type. This makes it unsuitable for identifying deletes.

  • D. Correct.

    Correct. The downstream system must handle deletions properly by processing the primary keys of deleted records.

  • E. Incorrect.

    Incorrect. Writing delete records back to the Delta Lake table is unnecessary and does not propagate deletes to downstream systems.

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