Microsoft Fabric Data Engineer Associate DP-700 Practice Question

In a Fabric lakehouse you ingest daily transactions into a Delta table named transactions that contains columns SaleDate (timestamp), CategoryId (int), and Amount (decimal). You must create a batch notebook step that produces a DataFrame with one row per CategoryId per calendar month and a column TotalAmount for loading into a dimensional aggregate table. Which PySpark transformation achieves the requirement?

  • transactions.groupBy("CategoryId", "SaleDate").sum("Amount")

  • transactions.rollup("SaleDate", "CategoryId").agg(sum("Amount").alias("TotalAmount"))

  • transactions.withColumn("SaleMonth", month(col("SaleDate"))).groupBy("CategoryId", "SaleMonth").agg(sum("Amount").alias("TotalAmount"))

  • transactions.groupBy(window(col("SaleDate"), "1 day"), "CategoryId").agg(sum("Amount").alias("TotalAmount"))

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