nerdexam
Databricks

DATABRICKS-CERTIFIED-ASSOCIATE-DEVELOPER-FOR-APACHE-SPARK · Question #177

Which of the following statements describing a difference between transformations and actions is incorrect?

The correct answer is C. Transformations work on DataFrames/Datasets while actions are reserved for native language. Choice C is incorrect because actions also operate on DataFrames/Datasets - they are not 'reserved for native language.' Actions like count(), collect(), show(), and take() are called on DataFrames and Datasets; they trigger execution of the DAG and may return results in native…

Spark Execution Model

Question

Which of the following statements describing a difference between transformations and actions is incorrect?

Options

  • AThere are wide and narrow transformations but there are not wide and narrow actions.
  • BTransformations do not trigger execution while actions do trigger execution.
  • CTransformations work on DataFrames/Datasets while actions are reserved for native language
  • DSome actions can be used to return data objects in a format native to the programming language
  • ETransformations are typically logic operations while actions are typically focused on returning

How the community answered

(23 responses)
  • A
    4% (1)
  • B
    4% (1)
  • C
    91% (21)

Explanation

Choice C is incorrect because actions also operate on DataFrames/Datasets - they are not 'reserved for native language.' Actions like count(), collect(), show(), and take() are called on DataFrames and Datasets; they trigger execution of the DAG and may return results in native language types (e.g., a Python list). The other statements are all correct: transformations are lazy and do not trigger execution; only transformations are classified as wide or narrow; and actions can return native language objects.

Topics

#Spark Transformations#Spark Actions#Lazy Evaluation#Spark Core Concepts

Community Discussion

No community discussion yet for this question.

Full DATABRICKS-CERTIFIED-ASSOCIATE-DEVELOPER-FOR-APACHE-SPARK Practice