Exam Preparation Quiz

Question 4 of 75

Add New Data to Delta Table with Additional Columns

MDFT Academy has a Fabric tenant containing a lakehouse named Lakehousel. The lakehouse contains a Delta table named students with eight columns. You receive new data that contains the same eight columns plus two additional columns.

You create a Spark DataFrame and assign it to a variable named df. The DataFrame contains the new data. You need to add the new data to the Delta table while meeting these requirements:

You have the following Python code:

df.write.format("delta").mode("append").option( _____ ).saveAsTable("students")

How should you complete the code?

Choose the correct answer from the options below.

Explanations for each answer:

Learn more about schema evolution in Delta tables
Schema Evolution
Next Question