In Spark's cluster architecture, what happens to the tasks if the Driver node crashes during the execution of a job?
The driver acts as the master process. Its failure results in the loss of the SparkContext, which leads to the immediate termination of the application and all associated tasks. There is no mechanism for executors to continue or recover the work without the driver.
Why this answer
When the Spark Driver fails, the entire SparkContext is terminated. Since the driver is responsible for scheduling tasks and maintaining the application state, all executors lose their connection to the driver, and any pending or running tasks are aborted. The application essentially crashes, and the resources held by the executors will eventually be reclaimed by the cluster manager based on the application's exit status.
Exam trap
Candidates often assume that if the Driver crashes, executors can continue running independent tasks, misunderstanding the critical supervisory role of the SparkContext.