
Explanation:
Let’s examine the options:
{ “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.
{ “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.
{ “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.
Ultimate access to all questions.
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
No comments yet.