Databricks Certified Associate Developer for Apache Spark 3.0 Exam Databricks-Certified-Associate-Developer-for-Apache-Spark-3.0 Question # 4 Topic 1 Discussion

Databricks Certified Associate Developer for Apache Spark 3.0 Exam Databricks-Certified-Associate-Developer-for-Apache-Spark-3.0 Question # 4 Topic 1 Discussion

Databricks-Certified-Associate-Developer-for-Apache-Spark-3.0 Exam Topic 1 Question 4 Discussion:
Question #: 4
Topic #: 1

Which of the following describes a way for resizing a DataFrame from 16 to 8 partitions in the most efficient way?


A.

Use operation DataFrame.repartition(8) to shuffle the DataFrame and reduce the number of partitions.


B.

Use operation DataFrame.coalesce(8) to fully shuffle the DataFrame and reduce the number of partitions.


C.

Use a narrow transformation to reduce the number of partitions.


D.

Use a wide transformation to reduce the number of partitions.

Use operation DataFrame.coalesce(0.5) to halve the number of partitions in the DataFrame.


Get Premium Databricks-Certified-Associate-Developer-for-Apache-Spark-3.0 Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.