Databricks Certified Data Engineer Professional — Question 22

An upstream system is emitting change data capture (CDC) logs that are being written to a cloud object storage directory. Each record in the log indicates the change type (insert, update, or delete) and the values for each field after the change. The source table has a primary key identified by the field pk_id.
For auditing purposes, the data governance team wishes to maintain a full record of all values that have ever been valid in the source system. For analytical purposes, only the most recent value for each record needs to be recorded. The Databricks job to ingest these records occurs once per hour, but each individual record may have changed multiple times over the course of an hour.
Which solution meets these requirements?

Answer options

Correct answer: E

Explanation

Option E is correct because it involves ingesting all log data into a bronze table and then using MERGE INTO to manage the most recent values in a silver table, which meets both the auditing and analytical needs. Options A, B, C, and D do not adequately address the requirement to maintain a full historical record or only the latest values efficiently in the context described.