Exam Certified Data Engineer Professional All QuestionsBrowse all questions from this exam
Question 127

The following table consists of items found in user carts within an e-commerce website.

The following MERGE statement is used to update this table using an updates view, with schema evolution enabled on this table.

How would the following update be handled?

    Correct Answer: D

    The new nested field 'coupon' is added to the target schema as schema evolution is enabled. Therefore, the underlying files for existing records would be updated to include NULL values for the new field 'coupon' where it is not present. This matches the described behavior of schema evolution, where the schema adapts to include new fields and updates records accordingly.

Discussion
MDWPartnersOption: B

schema evolution is enabled, so B.

FreyrOption: B

Correct Answer: B. In the question it is mentioned that the schema evolution is enabled. This option states that the new nested field is added to the target schema, and existing records not matching the new schema format are populated with NULL for the newly added columns. This behavior aligns with how schema evolution functions in Delta Lake, dynamically adapting the schema to include new fields.