Ultimate access to all questions.
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?
Explanation:
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.