Databricks Data Engineer Professional exam dumps

Databricks Data Engineer Professional practice question 311 of 313

Databricks Certified Data Engineer Professional. Professional level, Databricks. Free question with the correct answer and a full explanation.

Databricks Data Engineer Professional Question 311

Select 1

You are tasked with creating a new job in Databricks by cloning an existing job, triggering its execution, and exporting the results of the run. Which sequence of REST API calls would you use to achieve this?

  1. A

    Use the POST /api/2.1/jobs/create endpoint with the job details, trigger the job with POST /api/2.1/jobs/run-now, and export the run output using GET /api/2.1/jobs/runs/export.

  2. B

    Use the POST /api/2.1/jobs/reset endpoint to clone the job configuration, trigger the job with POST /api/2.1/jobs/run-now, and export the run output using GET /api/2.1/jobs/runs/output.

  3. C

    Use the POST /api/2.1/jobs/copy endpoint to clone the job, trigger the job using POST /api/2.1/jobs/runs/submit, and export the run output using GET /api/2.1/jobs/runs/export.

  4. D

    Use the POST /api/2.1/jobs/create endpoint to clone the job, trigger the job execution using POST /api/2.1/jobs/run-now, and retrieve the run output using GET /api/2.1/jobs/runs/output.

  5. E

    Use the POST /api/2.1/jobs/clone endpoint to copy the job, trigger the execution using POST /api/2.1/jobs/runs/submit, and retrieve the run output using GET /api/2.1/jobs/runs/status.

Show answer and explanation

Correct answer: D

Explanation

To clone a job, you must use the POST /api/2.1/jobs/create endpoint with the configuration of the existing job as input. Once the job is successfully cloned, you can trigger its execution using the POST /api/2.1/jobs/run-now endpoint. After the run completes, you can use the GET /api/2.1/jobs/runs/output endpoint to retrieve the output of the run. These are the correct and recommended Databricks REST API endpoints to achieve the specified tasks.

  • A. Incorrect.

    Incorrect: The POST /api/2.1/jobs/create endpoint is used to create a new job, but GET /api/2.1/jobs/runs/export is not the correct endpoint for exporting run outputs; it is used for downloading notebook runs in a specific format.

  • B. Incorrect.

    Incorrect: The POST /api/2.1/jobs/reset endpoint is used to reset the job configuration, not to clone a job. Additionally, GET /api/2.1/jobs/runs/output is correct for retrieving run outputs.

  • C. Incorrect.

    Incorrect: The POST /api/2.1/jobs/copy endpoint does not exist in the Databricks REST API. Also, POST /api/2.1/jobs/runs/submit is incorrect for triggering a job created using the Jobs API.

  • D. Correct.

    Correct: The POST /api/2.1/jobs/create endpoint is used to clone the job, the POST /api/2.1/jobs/run-now endpoint triggers job execution, and the GET /api/2.1/jobs/runs/output endpoint is the correct method to retrieve the run output.

  • E. Incorrect.

    Incorrect: The POST /api/2.1/jobs/clone endpoint does not exist in the Databricks REST API. Additionally, GET /api/2.1/jobs/runs/status retrieves the run's status but does not export the output.

Timed practice exam

Take a Databricks Data Engineer Professional practice test under exam conditions

60 questions in 120 minutes, drawn from this bank, with a score report and a per-question review when you finish.

Start timed exam