DatabricksProfessional levelPage 4 of 4

Databricks Data Engineer Professional exam dumps: questions 301 to 312 of 312

Page 4 of the free Databricks Data Engineer Professional question bank for the Databricks Certified Data Engineer Professional exam. Questions 301 to 312 are listed below, the first 5 in full with answers and explanations. Back to page 1 for the exam overview and FAQ.

Question bank last updated January 2025

Free Databricks Data Engineer Professional practice questions

Questions 301 to 305 of 312

Pick an answer before you open the explanation. Each question also has its own page with a permalink.

Databricks Data Engineer Professional Question 301

Select 3

You are tasked with deploying and monitoring a Databricks job using the Databricks CLI. The job reads data from a Delta Lake table, performs transformations, and writes the output to another Delta table. Which sequence of Databricks CLI commands is required to deploy the job and monitor its execution?

  1. A

    Use the 'databricks jobs create' command to create the job and then 'databricks jobs run-now' to trigger the job.

  2. B

    Use the 'databricks clusters create' command to create a cluster and then 'databricks clusters attach-job' to attach the job to the cluster.

  3. C

    Monitor the job execution using the 'databricks jobs runs get' command to check the run status.

  4. D

    Use the 'databricks fs cp' command to copy the job script to the Databricks workspace before deploying the job.

  5. E

    Use the 'databricks jobs update' command to modify the job configuration after deployment.

Show answer and explanation

Correct answers: A, C, E

Explanation

To deploy and monitor a Databricks job using the CLI, the 'databricks jobs create' command is used for deployment, 'databricks jobs run-now' triggers the execution, and 'databricks jobs runs get' fetches the job run status. Additionally, the 'databricks jobs update' command allows modification of job configurations post-deployment. While 'databricks fs cp' can be useful for uploading scripts, it is not essential unless the job script needs to be transferred to Databricks.

  • A. Correct.

    Correct: The 'databricks jobs create' command is used to deploy a new job, and the 'databricks jobs run-now' command triggers the job execution immediately.

  • B. Incorrect.

    Incorrect: The 'databricks clusters create' command is used to create clusters, but clusters are not directly attached to jobs using 'databricks clusters attach-job'. Instead, clusters are specified in the job configuration.

  • C. Correct.

    Correct: The 'databricks jobs runs get' command is used to monitor the status of a job execution, such as checking if it has completed successfully or failed.

  • D. Incorrect.

    Incorrect: The 'databricks fs cp' command is used for file system operations, like copying files to or from DBFS, but it is not necessary for deploying a Databricks job unless the job script is being uploaded.

  • E. Correct.

    Correct: The 'databricks jobs update' command is used to modify the configuration of an existing job after it has been deployed, such as updating the job's schedule or parameters.

Databricks Data Engineer Professional Question 302

Select 3

You are tasked with deploying a Databricks job using the Databricks CLI. The job runs a data pipeline on a daily schedule. Once deployed, you also need to monitor the job's run status and retrieve logs if the job fails. Which of the following CLI commands should you use for these tasks?

  1. A

    databricks jobs create --json-file job-config.json

  2. B

    databricks jobs run-now --job-id

  3. C

    databricks jobs list

  4. D

    databricks runs get --run-id

  5. E

    databricks clusters restart --cluster-id

  6. F

    databricks jobs delete --job-id

Show answer and explanation

Correct answers: A, C, D

Explanation

To deploy and monitor a Databricks job using the CLI, you first use the 'databricks jobs create' command to deploy the job. For monitoring, the 'databricks jobs list' command helps you identify the job and its runs, while 'databricks runs get' retrieves the status and logs for specific runs. The other options either perform unrelated tasks or are not relevant to this specific scenario.

  • A. Correct.

    This command is used to create a new job in Databricks using a job configuration file. It is required to initially deploy the job.

  • B. Incorrect.

    This command is used to manually trigger a job run. However, it is not required in this scenario because the job is scheduled to run daily.

  • C. Correct.

    This command lists all jobs in the workspace, which is helpful for monitoring and identifying job IDs.

  • D. Correct.

    This command retrieves details about a specific job run, including its status and logs, which is critical for monitoring and debugging.

  • E. Incorrect.

    This command is used to restart a cluster but is not relevant for deploying or monitoring Databricks jobs.

  • F. Incorrect.

    This command is used to delete a Databricks job, which is not relevant to the given scenario.

Databricks Data Engineer Professional Question 303

Select 2

You are tasked with deploying a Databricks job from the CLI. The job definition is stored in a JSON file called job_config.json. After the job is deployed, you also need to monitor its status to ensure it runs successfully. Which set of CLI commands should you use to achieve this?

  1. A

    Use the command databricks jobs create --json-file job_config.json to deploy the job and databricks jobs get --job-id <job-id> to monitor the job status.

  2. B

    Use the command databricks jobs submit --json-file job_config.json to deploy the job and databricks jobs get-run --run-id <run-id> to monitor the job status.

  3. C

    Use the command databricks jobs create --json-file job_config.json to deploy the job and databricks jobs list to monitor the job status.

  4. D

    Use the command databricks jobs run-now --job-id <job-id> to deploy the job and databricks jobs runs list to monitor the job status.

  5. E

    Use the command databricks jobs submit --json-file job_config.json to deploy the job and databricks jobs runs get --run-id <run-id> to monitor the job status.

Show answer and explanation

Correct answers: B, E

Explanation

To deploy a Databricks job using the CLI, you can use the databricks jobs submit command with the job definition as a JSON file. For monitoring, the databricks jobs get-run or databricks jobs runs get commands are appropriate as they provide detailed information about a specific run's status using the run ID. Options 2 and 5 correctly cover both deployment and monitoring aspects.

  • A. Incorrect.

    This command is partially correct for deployment (databricks jobs create) but incorrect for monitoring since databricks jobs get does not provide run-specific status.

  • B. Correct.

    This command is correct for deployment (databricks jobs submit) and monitoring (databricks jobs get-run) as it allows submitting the job and checking the status of a specific run using the run ID.

  • C. Incorrect.

    This command is incorrect for monitoring because databricks jobs list only lists all jobs but does not provide status of a specific run.

  • D. Incorrect.

    This command is incorrect for deployment because databricks jobs run-now is used to trigger an existing job, not to deploy a new one. However, databricks jobs runs list can list runs, but it does not provide details about a specific run's status.

  • E. Correct.

    This command is correct for deployment (databricks jobs submit) and monitoring (databricks jobs runs get) as it allows submitting the job and retrieving detailed run-specific information using the run ID.

Databricks Data Engineer Professional Question 304

Select 1

You are tasked with deploying a Databricks job using the Databricks CLI. After deployment, you need to monitor its execution and retrieve the latest run status. Which sequence of CLI commands would you use to achieve this?

  1. A

    Use databricks jobs create to deploy the job, then databricks jobs run-now to trigger it, and finally databricks runs get to retrieve the latest run status.

  2. B

    Use databricks jobs deploy to deploy the job, then databricks jobs start to trigger it, and finally databricks jobs status to check the latest run status.

  3. C

    Use databricks jobs create to deploy the job, then databricks runs submit to trigger it, and finally databricks runs get to fetch the latest run status.

  4. D

    Use databricks jobs create to deploy the job, then databricks jobs run-now to trigger it, and finally databricks jobs get to fetch the latest run status.

  5. E

    Use databricks jobs create to deploy the job, then databricks runs submit to trigger it, and finally databricks jobs get to fetch the latest run status.

Show answer and explanation

Correct answer: A

Explanation

To deploy and monitor Databricks jobs using the CLI, you must first deploy the job configuration using databricks jobs create. To execute the job, the databricks jobs run-now command is used. Finally, you can monitor the job's execution and retrieve its runtime details using databricks runs get. This sequence ensures proper deployment, execution, and monitoring of jobs.

  • A. Correct.

    This is the correct sequence of commands. The databricks jobs create command is used to deploy the job configuration, databricks jobs run-now triggers the job, and databricks runs get retrieves details about the latest job run, including its status.

  • B. Incorrect.

    This is incorrect because there is no databricks jobs deploy or databricks jobs status command in the Databricks CLI.

  • C. Incorrect.

    This is incorrect because databricks runs submit is used for submitting runs manually using a JSON payload, not for triggering a job that has already been deployed.

  • D. Incorrect.

    This is incorrect because databricks jobs get retrieves information about job configurations, not the runtime status of a particular job run.

  • E. Incorrect.

    This is incorrect because databricks runs submit is not the correct command to trigger an already created job, and databricks jobs get does not provide run status information.

Databricks Data Engineer Professional Question 305

Single answer

You are tasked with deploying a Databricks job using the Databricks CLI. The job's configuration is defined in a JSON file named job-config.json. Which command would you use to deploy the job to Databricks?

  1. A

    databricks jobs create --json-file job-config.json

  2. B

    databricks jobs deploy --json-file job-config.json

  3. C

    databricks jobs run-now --json-file job-config.json

  4. D

    databricks jobs update --json-file job-config.json

Show answer and explanation

Correct answer: A

Explanation

To deploy a new job in Databricks using the CLI, the databricks jobs create command must be used along with the --json-file option to specify the job configuration file. Other commands like run-now or update are used for different purposes, and deploy is not a valid subcommand in the Databricks CLI.

  • A. Correct.

    This is the correct command to create a new Databricks job using a configuration JSON file.

  • B. Incorrect.

    This is an incorrect command because databricks jobs deploy is not a valid Databricks CLI subcommand.

  • C. Incorrect.

    This is incorrect because databricks jobs run-now is used to immediately execute an existing job, not to create or deploy a new one.

  • D. Incorrect.

    This is incorrect because databricks jobs update is used to update an existing job, not to create a new job.

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

Databricks Data Engineer Professional practice questions 301 to 312 of 312

Every question has a page with the answer and explanation. Numbers are stable, so you can bookmark or share them. The bank is split into 4 pages of up to 100 questions.

  1. 301.You are tasked with deploying and monitoring a Databricks job using the Databricks CLI. The job reads data...
  2. 302.You are tasked with deploying a Databricks job using the Databricks CLI. The job runs a data pipeline on a...
  3. 303.You are tasked with deploying a Databricks job from the CLI. The job definition is stored in a JSON file...
  4. 304.You are tasked with deploying a Databricks job using the Databricks CLI. After deployment, you need to...
  5. 305.You are tasked with deploying a Databricks job using the Databricks CLI. The job's configuration is defined...
  6. 306.You are a data engineer tasked with deploying a Databricks job using the Databricks CLI. The job executes a...
  7. 307.You are tasked with creating a workflow where a Databricks job is cloned, executed, and its run output is...
  8. 308.You are tasked with automating a workflow in Databricks. You need to clone an existing job, trigger a new run...
  9. 309.You are tasked with automating a Databricks workflow and need to achieve the following: 1) Clone an existing...
  10. 310.You are tasked with automating a data pipeline in Databricks. As part of the workflow, you need to clone an...
  11. 311.You are tasked with creating a new job in Databricks by cloning an existing job, triggering its execution,...
  12. 312.You are tasked with creating a backup of an existing job in your Databricks workspace, triggering the backup...