Databricks Certified Associate Developer for Apache Spark — Question 112

Which of the following operations performs a cross join on two DataFrames?

Answer options

Correct answer: D

Explanation

The correct answer is D, as DataFrame.crossJoin() specifically performs a cross join between two DataFrames. The other options either perform different types of joins or are not designed to execute a cross join.