
Answer-first summary for fast verification
Answer: df.write.mode("overwrite").format("delta").save("Tables/productline1")
To migrate the Research division data for Productline1 and meet the data preparation requirements, you need to save the data in a managed table format in Lakehouse explorer. The correct code to do this is `df.write.mode("overwrite").format("delta").save("Tables/productline1")`. This code uses the `save` method with the correct path to ensure the data is stored as a managed table in the delta format, satisfying the requirement for managed tables.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
In the context of migrating the Research division data for Productline1, ensure that the solution aligns with the data preparation requirements specified. Use the appropriate options to complete the code. Each correct selection is worth one point.
Contoso's data environment includes the following: • An Azure Data Lake Storage Gen2 storage account, named storage1, which holds the Research division data for Productline1 in delta format.
Data Preparation Requirements: • Retrieve the Research division data for Productline1 from Lakehouse1 using Fabric notebooks. • Present all Research division data in the lakehouses as managed tables within Lakehouse explorer.
How should you complete the code? Select the appropriate options in the answer area. Note: Each correct selection is worth one point.
A
df.write.mode("overwrite").format("delta").save("Tables/productline1")
B
df.write.mode("overwrite").format("delta").save("productline1")
C
df.write.mode("overwrite").format("delta").saveAsTable("Tables/productline1")
D
df.write.mode("overwrite").format("delta").saveAsTable("productline1")