DATABRICKS-CERTIFIED-ASSOCIATE-DEVELOPER-FOR-APACHE-SPARK · Question #148
Which of the following describes slots?
The correct answer is B. Slots are resource threads that can be used for parallelization within a Spark application. In Spark, a slot is a unit of execution capacity within an executor - essentially a thread (or CPU core) available to run a task. Each executor can have multiple slots, allowing it to run multiple tasks in parallel. The number of slots per executor is typically configured by…
Question
Which of the following describes slots?
Options
- ASlots are the most coarse level of execution in the Spark execution hierarchy.
- BSlots are resource threads that can be used for parallelization within a Spark application.
- CSlots are resources that are used to run multiple Spark applications at once on a single cluster.
- DSlots are the most granular level of execution in the Spark execution hierarchy.
- ESlots are unique segments of data from a DataFrame that are split up by row.
How the community answered
(53 responses)- A2% (1)
- B91% (48)
- C6% (3)
- D2% (1)
Explanation
In Spark, a slot is a unit of execution capacity within an executor - essentially a thread (or CPU core) available to run a task. Each executor can have multiple slots, allowing it to run multiple tasks in parallel. The number of slots per executor is typically configured by the number of cores allocated to it. Slots are not the most granular level of execution (that would be a task) nor the coarsest (that would be a job). They are not used to run multiple Spark applications simultaneously - that is handled by the cluster manager. They are also not data segments; those are partitions.
Topics
Community Discussion
No community discussion yet for this question.