Microsoft Fabric Data Engineer Associate DP-700 Practice Question

While working in a Microsoft Fabric lakehouse you have a PySpark DataFrame named df that contains new and changed customer rows. You must upsert the data into the existing Delta table customers so that matching rows are updated and non-matching rows are inserted atomically. Which PySpark statement should you use?

  • spark.sql("INSERT OVERWRITE TABLE customers SELECT * FROM df")

  • DeltaTable.forName(spark, "customers") .alias("t") .merge(df.alias("s"), "t.id = s.id") .whenMatchedUpdateAll() .whenNotMatchedInsertAll() .execute()

  • df.write.mode("overwrite").saveAsTable("customers")

  • df.write.format("delta").option("mergeSchema", "true").mode("append").save("/Tables/customers")

Microsoft Fabric Data Engineer Associate DP-700
Ingest and transform data
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot