Certified Data Engineer Professional Exam QuestionsBrowse all questions from this exam

Certified Data Engineer Professional Exam - Question 68


Assuming that the Databricks CLI has been installed and configured correctly, which Databricks CLI command can be used to upload a custom Python Wheel to object storage mounted with the DBFS for use with a production job?

Show Answer
Correct Answer: BC

The correct command for uploading a custom Python Wheel to object storage mounted with the DBFS for use with a production job is 'fs'. The 'fs' command in the Databricks CLI is used to interact with the Databricks File System (DBFS). Specifically, the 'fs cp' subcommand can be used to copy files from the local file system to DBFS, which includes uploading custom Python Wheels.

Discussion

9 comments
Sign in to comment
EnduresoulOption: B
Nov 26, 2023

Answer B is corrent: "... which Databricks CLI command can be used to upload a custom Python Wheel to object storage mounted with the DBFS ..." The question asks, how to upload the wheel. Not install it or configure it in a job. https://docs.databricks.com/en/archive/dev-tools/cli/dbfs-cli.html

petrvOption: B
Nov 30, 2023

the question is about copying the file not about installing.

arik90Option: B
Mar 25, 2024

databricks fs cp dist/<…>.whl dbfs:/some/place/appropriate

sturcuOption: D
Oct 24, 2023

you can add a library section to the jobs command, but you can install a wheel with the library command

sturcu
Oct 24, 2023

/api/2.0/libraries/install

mouad_attaqiOption: D
Oct 26, 2023

It is done using the command: databricks libraries install

aragorn_bregoOption: B
Nov 21, 2023

The Databricks CLI fs command is used for interacting with the Databricks File System (DBFS). You can use it to put files into DBFS, which includes uploading custom Python Wheels to a directory in DBFS. The fs command has subcommands like cp that can be used to copy files from your local file system to DBFS, which is backed by an object storage mounted with dbutils.fs.mount(). databricks fs cp my_package.whl dbfs:/mnt/my-mount-point/my_package.whl

Somesh512Option: B
Jan 30, 2024

Its asking to upload to DBFS and not install on cluster

ojudz08Option: C
Feb 15, 2024

this is a bit tricky, question is asked to upload custom Python Wheel, you can use fs command, but since it'll be used in production job, job command might be needed to perform databricks jobs operations? https://docs.databricks.com/en/dev-tools/cli/commands.html

Curious76Option: D
Feb 27, 2024

Here's how you can use the libraries command to upload your wheel: Bash databricks libraries upload --file <path_to_wheel_file> --name <library_name>