
Answer-first summary for fast verification
Answer: { “existing_cluster_id“: “8522-150723-rmn4l016“, “notebook_task“: { “notebook_path“: “path/to/notebook“ }}
Let’s examine the options: 1. `{ “name”: “new_job” }` - **Incorrect!** This will return an error because the cluster details are missing from the payload. Either an existing cluster ID or new cluster details must be included. 2. `{ “existing_cluster_id“: “8522-150723-rmn4l016“, “notebook_task“: { “notebook_path“: “path/to/notebook“ }}` - **Correct!** This payload creates a new job named 'Untitled' with a notebook task. Note, the job will need to be manually triggered as there's no schedule mentioned. For a scheduled job, include a schedule in the payload. 3. `{ “name“: “new_job“, “notebook_task“: { “notebook_path“: “path/to/notebook“ }}` - **Incorrect!** Cluster details are missing. For more information, refer to the Databricks REST API documentation on creating a job.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
What is a valid payload for creating a new job using the Databricks REST API?
A
{ “existing_cluster_id“: “8522-150723-rmn4l016“, “notebook_task“: { “notebook_path“: “path/to/notebook“ }}
B
{ “name“: “new_job“}
C
All three will return an error
D
{ “name“: “new_job“, “notebook_task“: { “notebook_path“: “path/to/notebook“ }}
E
All three will be successful