
Explanation:
The correct command is option D. This command uses the databricks workspace import command with the --language flag to specify the notebook's language as Python. The --source and --target flags are used to define the local path of the notebook and its destination in the Databricks workspace, respectively. This ensures the notebook is correctly imported and recognized as a Python notebook within the workspace.
Ultimate access to all questions.
No comments yet.
What is the correct Databricks CLI command to import a notebook into a Databricks workspace and specify its language?
A
databricks fs cp /LocalPath/Notebook.py /WorkspacePath/Notebook.py --language PYTHON
B
databricks workspace import /LocalPath/Notebook.py /WorkspacePath/Notebook.py --language PYTHON
C
databricks workspace import -l PYTHON /LocalPath/Notebook.py /WorkspacePath/Notebook
D
databricks workspace import --language PYTHON --source /LocalPath/Notebook.py --target /WorkspacePath/Notebook