DATABRICKS-CERTIFIED-ASSOCIATE-DEVELOPER-FOR-APACHE-SPARK · Question #43
Which of the following Spark properties is used to configure the maximum size of an automatically broadcasted DataFrame when performing a join?
The correct answer is B. spark.sql.autoBroadcastJoinThreshold. spark.sql.autoBroadcastJoinThreshold controls the maximum byte size threshold for a DataFrame to be automatically broadcast to all worker nodes during a join, avoiding a costly shuffle. The default value is 10MB. If a DataFrame's size is below this threshold, Spark will choose…
Question
Which of the following Spark properties is used to configure the maximum size of an automatically broadcasted DataFrame when performing a join?
Options
- Aspark.sql.broadcastTimeout
- Bspark.sql.autoBroadcastJoinThreshold
- Cspark.sql.shuffle.partitions
- Dspark.sql.inMemoryColumnarStorage.batchSize
- Espark.sql.adaptive.skewedJoin.enabled
How the community answered
(48 responses)- B90% (43)
- C4% (2)
- D2% (1)
- E4% (2)
Explanation
spark.sql.autoBroadcastJoinThreshold controls the maximum byte size threshold for a DataFrame to be automatically broadcast to all worker nodes during a join, avoiding a costly shuffle. The default value is 10MB. If a DataFrame's size is below this threshold, Spark will choose a broadcast hash join strategy automatically. spark.sql.broadcastTimeout controls how long a broadcast can take before it times out. spark.sql.shuffle.partitions controls the number of partitions for shuffles. The other options are unrelated to broadcast size.
Topics
Community Discussion
No community discussion yet for this question.