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

Which of the following code blocks writes DataFrame storesDF to file path filePath as parquet overwriting any existing files in that location?

    Correct Answer: C

    To write a DataFrame to a file path in Parquet format while overwriting any existing files, the correct method is using `.write.mode('overwrite').parquet(filePath)`. This method ensures that the mode is set to 'overwrite' and specifies Parquet as the file format.

Discussion
SaiPavan10Option: C

it is C

Sowwy1Option: C

It's c