Databricks Certified Data Engineer Professional — Question 211
A data engineer needs to create an application that will collect information about the latest job run including the repair history.
How should the data engineer format the request?
Answer options
- A. Call/api/2.1/jobs/runs/list with the run_id and include_history parameters
- B. Call/api/2.1/jobs/runs/get with the run_id and include_history parameters
- C. Call/api/2.1/jobs/runs/get with the job_id and include_history parameters
- D. Call/api/2.1/jobs/runs/list with the job_id and include_history parameters
Correct answer: B
Explanation
The correct answer is B because the endpoint /api/2.1/jobs/runs/get specifically retrieves information about a job run using the run_id, which is essential for getting the latest job run details. Options A and D use the wrong endpoint to list runs instead of getting a specific run, while option C incorrectly references job_id instead of run_id.