Databricks Data Engineer Associate Question 45
Select 2You are managing a Databricks cluster for a data engineering project. The cluster has been running for several hours, but you notice it is no longer in use. You decide to terminate the cluster. Which of the following statements are true about terminating a cluster in Databricks?
- A
All running jobs on the cluster will be immediately stopped upon termination.
- B
The cluster's configuration and metadata will be permanently deleted after termination.
- C
The cluster will stop incurring charges once it is terminated.
- D
Terminating a cluster automatically deletes all data stored in the associated DBFS (Databricks File System).
- E
You can restart the cluster with the same configuration after termination.
Show answer and explanation
Correct answers: A, C
Explanation
When a Databricks cluster is terminated, any running jobs are stopped and compute resources are deallocated, which stops billing for the cluster. However, the cluster's configuration and metadata are retained, allowing for the creation of a similar cluster in the future. Data stored in DBFS persists independently of cluster termination. It is important to manage clusters effectively to optimize costs and maintain data integrity.
- A. Correct.
Correct: When a cluster is terminated, any running jobs or processes will be stopped immediately.
- B. Incorrect.
Incorrect: The cluster's configuration and metadata (such as libraries, installed packages, and settings) are retained and can be reused unless manually deleted. Only the compute resources are deallocated.
- C. Correct.
Correct: Terminating a cluster stops the billing for the compute resources associated with it.
- D. Incorrect.
Incorrect: Terminating a cluster does not delete data stored in DBFS. Data in DBFS persists independently of the cluster lifecycle.
- E. Incorrect.
Incorrect: A terminated cluster cannot be restarted. However, you can create a new cluster using the same configuration, as the metadata and settings are retained.