Databricks Data Engineer Professional exam dumps

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

Single answer

You are tasked with implementing a customer dimension table in Delta Lake to support historical and current customer data. The table must retain the full history of changes to certain attributes (e.g., address) while overwriting other attributes (e.g., email) with the latest value. Which implementation approach should you use?

  1. A

    Implement an SCD Type 0 table, ensuring no updates occur to any attributes.

  2. B

    Implement an SCD Type 1 table, updating all attributes with the latest values.

  3. C

    Implement an SCD Type 2 table, tracking historical changes for certain attributes while overwriting others.

  4. D

    Implement a hybrid table with both SCD Type 1 and Type 2 behavior, manually managing attribute-specific logic.

Show answer and explanation

Correct answer: C

Explanation

SCD Type 2 is the best approach for this scenario, as it allows historical tracking of some attributes (e.g., address) while overwriting others (e.g., email). This aligns with the requirement to retain history for specific attributes while keeping others up to date.

  • A. Incorrect.

    An SCD Type 0 table does not allow updates, which fails to meet the requirement of overwriting some attributes and tracking history for others.

  • B. Incorrect.

    An SCD Type 1 table updates all attributes with the latest values, but it does not retain historical data, which is required for some attributes in this scenario.

  • C. Correct.

    An SCD Type 2 table allows you to track historical changes for certain attributes while overwriting others, meeting the requirements of the scenario.

  • D. Incorrect.

    A hybrid table with manual management could theoretically work, but it is not a standard implementation approach for this type of use case and may introduce unnecessary complexity.

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