QuestionQ72

VerifiedDeveloping Apache Spark™ DataFrame/DataSet API Applications

A data analyst creates a Spark application to analyze finance data and performs these operations: filter, select, groupBy, and coalesce.

Which operation causes a shuffle?

Explanation

groupBy groups all records sharing a key, so Spark normally redistributes those records across partitions, creating a shuffle. filter and select operate within existing partitions, while coalesce normally has a narrow dependency and does not shuffle.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!