Databricks Certified Associate Developer for Apache Spark — Question 58
Which of the following describes the difference between cluster and client execution modes?
Answer options
- A. The cluster execution mode runs the driver on a worker node within a cluster, while the client execution mode runs the driver on the client machine (also known as a gateway machine or edge node).
- B. The cluster execution mode is run on a local cluster, while the client execution mode is run in the cloud.
- C. The cluster execution mode distributes executors across worker nodes in a cluster, while the client execution mode runs a Spark job entirely on one client machine.
- D. The cluster execution mode runs the driver on the cluster machine (also known as a gateway machine or edge node), while the client execution mode runs the driver on a worker node within a cluster.
- E. The cluster execution mode distributes executors across worker nodes in a cluster, while the client execution mode submits a Spark job from a remote machine to be run on a remote, unconfigurable cluster.
Correct answer: A
Explanation
The correct answer, A, accurately describes that in cluster execution mode, the driver operates on a worker node within the cluster, whereas in client execution mode, the driver runs on the client machine. The other options either misrepresent the execution modes or provide incorrect details about where the driver runs or how tasks are executed.