
Explanation:

Step 1 - Read the Parquet file into a DataFrame
df = spark.read.parquet("abfss://
[email protected]/files/sales.parquet") This correctly loads the Parquet data into Spark.
Step 2 - Write into the Lakehouse as a managed table
If we want the result to be registered as a Lakehouse table and automatically appear in Lakehouse Explorer, we must:
Write the data in delta format (because Fabric Lakehouse tables are Delta tables).
Save the table under the tables folder, not files.
So the correct code is:
df.write.mode("overwrite").format("delta").saveAsTable("tables/sales")
Final Answer:
Format: delta
SaveAsTable Path: tables/sales
References:
Lakehouse tables in Microsoft Fabric
Save DataFrame as Delta Table in Spark
# Answer Selection:
First dropdown # delta
Second dropdown # tables/sales