
Answer-first summary for fast verification
Answer: First, use the 'databricks jobs create' command to define the job with all necessary parameters. Then, manually execute the job using the 'databricks jobs run-now' command.
Option A is correct because it follows the recommended practice of separating the job creation and execution steps, allowing for greater control and flexibility. The 'databricks jobs create' command is used to define the job with all necessary parameters, and the 'databricks jobs run-now' command is then used to execute the job. This approach ensures that the job is correctly defined before execution and adheres to best practices for job deployment. Options B, C, and D either use non-existent commands or do not provide the level of control and accuracy required for professional job deployment.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
As a Databricks Certified Data Engineer - Professional, you are tasked with deploying a Databricks job using the CLI in a scenario where the job requires specific parameters for execution. The solution must adhere to best practices for efficiency and accuracy. Given the constraints of minimizing manual steps and ensuring the job is deployed with all necessary parameters, which of the following approaches should you take? Choose the best option from the four provided.
A
First, use the 'databricks jobs create' command to define the job with all necessary parameters. Then, manually execute the job using the 'databricks jobs run-now' command.
B
Use the 'databricks jobs submit' command in a single step, specifying all necessary parameters to both define and execute the job immediately.
C
Define the job and its parameters in a JSON configuration file, then use the 'databricks jobs deploy' command to read the file and deploy the job.
D
Utilize the 'databricks jobs create-and-run' command, combining the creation and execution of the job in one step by specifying all necessary parameters.
No comments yet.