Databricks Data Engineer Associate Question 35
Single answerYou are configuring a Databricks cluster for a data engineering workload, and it is required to use a specific Databricks Runtime version to ensure compatibility with your libraries. How can you identify the version of the Databricks Runtime used by the cluster?
- A
Check the cluster configuration page in the Databricks workspace, where the Databricks Runtime version is displayed.
- B
Run a Databricks notebook cell with the command
dbutils.runtime.version()to retrieve the runtime version programmatically. - C
Inspect the cluster's Spark UI, where the Databricks Runtime version is displayed under the 'Executors' tab.
- D
Use the Databricks REST API to query the cluster's details and retrieve the runtime version information.
Show answer and explanation
Correct answer: A
Explanation
The Databricks Runtime version is most commonly identified from the cluster configuration page in the Databricks workspace. This method provides a clear and easily accessible way to check the runtime version when configuring a cluster. While there are alternative methods, such as using dbutils.runtime.version() or querying via the REST API, these are less direct and are typically used for programmatic purposes.
- A. Correct.
Correct. The cluster configuration page in the Databricks workspace displays the Databricks Runtime version, making it the most direct and common way to identify it.
- B. Incorrect.
Incorrect. While the
dbutils.runtime.version()command retrieves the runtime version programmatically, this is not the most typical or direct way to identify it for configuration purposes. - C. Incorrect.
Incorrect. The Spark UI does not directly display the Databricks Runtime version under the 'Executors' tab. This information is not accessible in the Spark UI.
- D. Incorrect.
Incorrect. Although the Databricks REST API can provide detailed information, it is not the most straightforward approach for identifying the runtime version in a cluster's configuration.