
Answer-first summary for fast verification
Answer: Use the 'databricks notebooks export' command with the notebook path and output file as parameters.
Option A is correct because the 'databricks notebooks export' command is specifically designed for exporting notebooks to a JSON file, which is essential for version control and complies with data governance policies by ensuring the notebook's state is captured accurately. This approach also adheres to minimal operational cost as it uses the CLI, which is a cost-effective method for managing notebooks. Options B, C, and D either use incorrect commands or do not fully meet the requirements for exporting a notebook in the described scenario.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
In a scenario where you are working with Databricks on Microsoft Azure and need to export a notebook to a JSON file for version control, considering the constraints of minimal operational cost and compliance with data governance policies, which of the following commands would you use? Choose the best option that aligns with Databricks CLI best practices and ensures the notebook is exported correctly.
A
Use the 'databricks notebooks export' command with the notebook path and output file as parameters.
B
Use the 'databricks workspace export' command with the notebook path and output file as parameters.
C
Use the 'databricks notebooks get' command with the notebook path and output file as parameters.
D
Use the 'databricks workspace get' command with the notebook path and output file as parameters.
No comments yet.