
Answer-first summary for fast verification
Answer: databricks runs cancel --run-id 96746
In Databricks, each job has a unique job-id, and each run of a job has a unique run-id. To cancel a job run, you must use the run-id of the job. The correct command is `databricks runs cancel --run-id 96746` because it uses the run-id to uniquely identify the job run. Note that a job-name cannot be used as a unique identifier since multiple jobs can have the same name.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
A Databricks user needs to cancel a job run but only has access to the Databricks CLI, not the REST API or the UI. Given the job details: job-id – 2795, run-id – 96746, job-name – fetch_details, which command should the user use to cancel the job run?
A
databricks run cancel --run-id 2795
B
databricks runs cancel --job-id 2795 --run-id 96746
C
databricks run cancel --job-name fetch_details --run-id 96746
D
databricks runs cancel --run-id 96746
E
databricks run cancel --job-id 2795 --run-id 96746