H13-711_V3.5 · Question #390
The Container of the Spark task can run multiple tasks.
The correct answer is B. False. In Apache Spark's execution model, a Container is a resource allocation unit (CPU + memory) provided by the cluster manager (e.g., YARN or Kubernetes) that hosts exactly one task at a time - not multiple. The Executor is the entity that manages concurrency: it receives multiple…
Question
The Container of the Spark task can run multiple tasks.
Options
- ATrue
- BFalse
How the community answered
(27 responses)- A15% (4)
- B85% (23)
Explanation
In Apache Spark's execution model, a Container is a resource allocation unit (CPU + memory) provided by the cluster manager (e.g., YARN or Kubernetes) that hosts exactly one task at a time - not multiple. The Executor is the entity that manages concurrency: it receives multiple tasks from the Driver and runs them across allocated slots, but each Container corresponds to a single task-level resource unit. Option A is wrong because it conflates the Executor's multi-task capability with the Container, which is a lower-level, single-task resource boundary. The distinction matters: it is the Executor (not the Container) that can execute multiple tasks concurrently, one per core.
Memory tip: Think of a Container as a parking space - it holds exactly one car (task) at a time. The parking lot (Executor) can hold many cars across many spaces.
Topics
Community Discussion
No community discussion yet for this question.