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

Which of the following operations returns a GroupedData object?

    Correct Answer: D

    The DataFrame.groupBy() method is used to group the DataFrame based on one or more columns, and it returns a GroupedData object, which can then be used to perform various aggregation operations on the grouped data. Options A, B, C, and E do not return a GroupedData object.

Discussion
azure_bimonsterOption: D

.groupBy() is correct one

outwalkerOption: D

D. DataFrame.groupBy() The groupBy() method is used to group the DataFrame based on one or more columns, and it returns a GroupedData object, which can then be used to perform various aggregation operations on the grouped data. Options A, B, C, and E do not return a GroupedData object.