Which of the following is a 'wide transformation' in Spark?

Answer

groupByKey

Explanation

A 'wide transformation' (or shuffle transformation) requires data to be shuffled across different partitions or nodes, such as 'groupByKey', 'reduceByKey', 'sortByKey', and 'join'. 'map', 'filter', and 'union' are 'narrow transformations' as they don't require data shuffling.

Last reviewed: October 2026

Reviewed by FirstInTest Editorial Team

Report an error
QuestionBack to list