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

Certified Associate Developer for Apache Spark Exam - Question 86


The code block shown below should return a new 12-partition DataFrame from DataFrame storesDF. Choose the response that correctly fills in the numbered blanks within the code block to complete this task.

Code block:

__1__.__2__(__3__)

Show Answer
Correct Answer: D

To create a new 12-partition DataFrame from DataFrame storesDF, the correct method to use is repartition. The repartition method allows us to specify the desired number of partitions, in this case, 12. Therefore, the correct response to complete the code block is storesDF.repartition(12).

Discussion

1 comment
Sign in to comment
Sowwy1Option: D
Apr 5, 2024

Should be D