
Answer-first summary for fast verification
Answer: The command executes immediately; the first task completes successfully, but the second task fails.
In this scenario, the `unmount()` command executes immediately. Since the first task does not utilize the mount point, it completes without issues. However, the second task, which requires access to the now unmounted location, fails upon encountering the reference to the mount point, resulting in an error message indicating the path does not exist. For more details, refer to the documentation on mounting cloud object storage on Databricks.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
In a scenario where a scheduled production job includes two tasks—the first reading data from a Kafka source and the second loading transformed data to a mounted location—what happens if a data engineer attempts to unmount the mount point using the unmount() command in a new notebook while the first task is still running?
A
The command executes immediately, and the job completes without any errors.
B
The command executes immediately, leading to the job's automatic cancellation as tasks are accessing the mount location.
C
The command waits until the job's completion before executing.
D
The command executes immediately; the first task completes successfully, but the second task fails.
E
The command fails, returning an error message.
No comments yet.