Certified Data Engineer Professional Exam QuestionsBrowse all questions from this exam

Certified Data Engineer Professional 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?

Show Answer
Correct Answer: BD

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

2 comments
Sign in to comment
MDWPartnersOption: B
May 29, 2024

schema evolution is enabled, so B.

FreyrOption: B
Jun 1, 2024

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.