FEFreeExamDumps.in

Implementing Data Engineering Solutions Using Azure Databricks

Topic 1

Question 57

DP-750 voucher + Udemy course (lifetime access) = ₹3,500 for Indian ID card holders.

Details →

You must build a silver aggregate that answers: **"For fulfilled orders only, how many orders exist per order priority, sorted from most to fewest orders?"** The source is a DataFrame `df_order` with columns `o_orderkey`, `o_orderstatus`, and `o_orderpriority`. A fulfilled order has `o_orderstatus == "F"`. You want a single chained PySpark expression that filters to fulfilled orders, groups by priority, counts the orders, names the count column `n_orders`, and sorts descending by `n_orders`. ```python from pyspark.sql.functions import col, count df_chained = ( df_order # filter -> group -> aggregate -> sort ) ``` Which expression produces the required result?