Exam Certified Associate Developer for Apache Spark All QuestionsBrowse all questions from this 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__)

    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
Sowwy1Option: D

Should be D