
Ultimate access to all questions.
In a scenario where you are working with Databricks on Azure and need to automate the process of triggering a job run and subsequently retrieving its output for analysis, which of the following approaches correctly utilizes the Databricks REST API to achieve this? Consider the need for efficiency, scalability, and the correct use of API endpoints and parameters. Choose the best option from the following:
A
Trigger the job run by making a POST request to the '/2.0/jobs/run-now' endpoint with the necessary job parameters, then retrieve the output by making a GET request to the '/2.0/jobs/export' endpoint without specifying any parameters.
B
Submit the job run by making a POST request to the '/2.0/jobs/runs/submit' endpoint with the job configuration, then fetch the output by making a GET request to the '/2.0/jobs/runs/get' endpoint, including the 'run_id' parameter in the request._
C
Initiate the job run by making a POST request to the '/2.0/jobs/run-now' endpoint with the job ID, then access the output by making a GET request to the '/2.0/jobs/runs/get' endpoint, including the 'run_id' parameter obtained from the run-now response._
D
Start the job run by making a POST request to the '/2.0/jobs/submit' endpoint with the job details, then download the output by making a GET request to the '/2.0/jobs/export-output' endpoint, including the 'run_id' parameter._