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

Certified Associate Developer for Apache Spark Exam - Question 143


Which of the following code blocks returns a new DataFrame that is the result of a cross join between DataFrame storesDF and DataFrame employeesDF?

Show Answer
Correct Answer: A

The correct option is the one that uses the crossJoin method on the storesDF DataFrame. This method is specifically designed to perform a cross join between two DataFrames. Therefore, storesDF.crossJoin(employeesDF) will return a new DataFrame that is the result of a cross join between storesDF and employeesDF.

Discussion

2 comments
Sign in to comment
Sowwy1Option: A
Apr 10, 2024

A is correct

Samir_91Option: A
Jun 7, 2024

A is the answer