Exit DATABRICKS-CERTIFIED-ASSOCIATE-DEVELOPER-FOR-APACHE-SPARK Databricks Certified Associate Developer for Apache Spark 3.0
Question 1 of 5
0% complete
Q1 Single choice

Which of the following code blocks writes DataFrame itemsDf to disk at storage location filePath, making sure to substitute any existing data at that location?

  • A

    itemsDf.write.mode("overwrite").parquet(filePath)

  • B

    itemsDf.write.option("parquet").mode("overwrite").path(filePath)

  • C

    itemsDf.write(filePath, mode="overwrite")

  • D

    itemsDf.write.mode("overwrite").path(filePath)

  • E

    itemsDf.write().parquet(filePath, mode="overwrite")

Previous Next