Certified Associate Developer for Apache Spark Exam QuestionsBrowse all questions from this exam

Certified Associate Developer for Apache Spark Exam - Question 119


Which of the following DataFrame operations is classified as a transformation?

Show Answer
Correct Answer: A

DataFrame.select() is classified as a transformation. Transformations in the context of DataFrames are operations that are lazily evaluated and result in a new DataFrame, without triggering the execution of the operations on the data. DataFrame.select() fits this definition as it allows selecting specific columns from the DataFrame, creating a new DataFrame with these columns. The other options listed, such as DataFrame.count(), DataFrame.show(), DataFrame.first(), and DataFrame.collect(), are actions that trigger the execution of transformations and return results, and thus are not considered transformations.

Discussion

2 comments
Sign in to comment
siva1280Option: A
Mar 31, 2024

It's A

SaiPavan10Option: A
Apr 4, 2024

A is the right choice