
Answer-first summary for fast verification
Answer: Transformations work on DataFrames/Datasets while actions are reserved for native language objects.
Option C is incorrect because both transformations and actions operate on DataFrames/Datasets. Actions are not reserved for native language objects; while some actions (e.g., collect()) return data in native formats, others (e.g., write) perform operations on DataFrames/Datasets. Transformations exclusively work on DataFrames/Datasets to produce new ones, but actions can interact with both DataFrames/Datasets and native objects. The other options correctly describe differences between transformations and actions.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
Which of the following statements incorrectly describes a difference between transformations and actions?
A
There are wide and narrow transformations but there are not wide and narrow actions.
B
Transformations do not trigger execution while actions do trigger execution.
C
Transformations work on DataFrames/Datasets while actions are reserved for native language objects.
D
Some actions can be used to return data objects in a format native to the programming language being used to access the Spark API while transformations do not provide this ability.
E
Transformations are typically logic operations while actions are typically focused on returning results.