Databricks Certified Associate Developer for Apache Spark — Question 47
Which of the following DataFrame operations is classified as an action?
Answer options
- A. DataFrame.drop()
- B. DataFrame.coalesce()
- C. DataFrame.take()
- D. DataFrame.join()
- E. DataFrame.filter()
Correct answer: C
Explanation
The correct answer is C, DataFrame.take(), because it triggers the execution of the DataFrame's computations and retrieves data. The other options, such as DataFrame.drop(), DataFrame.coalesce(), DataFrame.join(), and DataFrame.filter(), are transformations that define a new DataFrame without executing any actual data retrieval.