A data engineer runs a groupBy aggregation on a massive user-activity log, grouping by user_id. A small number of users have millions of records, resulting in task skew and long execution times.
Which technique will resolve the skew in this aggregation?
A junior data engineer must build a streaming data pipeline using DataFrame df that performs a grouped aggregation. The pipeline must calculate average humidity and average temperature for every non-overlapping five-minute interval. Incremental state data must be retained for 10 minutes to accommodate late-arriving data.
The streaming DataFrame df has this schema:
device_id INT, event_time TIMESTAMP, temp FLOAT, humidity FLOAT
Code block:

Choose the response that correctly fills the blank in the code block to finish this task.
Community Discussion
A small United States-based company has recently engaged a consulting firm in India to implement several new data-engineering pipelines that will power artificial-intelligence applications. All company data is stored in regional cloud storage in the United States.
The company’s workspace administrator is unsure where the Databricks workspace used by the contractors should be deployed.
Assuming all data-governance considerations have been addressed, which statement correctly guides this decision?
Community Discussion
The data architect has required that every table in the Lakehouse be configured as an external (also called “unmanaged”) Delta Lake table.
Which approach ensures this requirement is satisfied?
Community Discussion
A data engineer is analyzing transactional data in a PySpark DataFrame df that contains customer_id, transaction_timestamp (precise to milliseconds), and amount_spent. The goal is to calculate a cumulative sum of amount_spent for each customer, strictly ordered by transaction_timestamp. The cumulative sum must include every transaction from the earliest timestamp through and including the current row, while preserving temporal order within each customer partition.
Which PySpark code snippet most accurately defines the required window specification and applies the aggregation to produce the correct cumulative expenditure per customer?




Community Discussion