Databricks Data Engineer Professional exam dumps

Databricks Data Engineer Professional practice question 297 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 297

Single answer

A data engineer needs to automate interactions with a Databricks workspace using the Databricks CLI. To accomplish this, they have configured the CLI and need to verify the connection to the workspace. Which of the following commands should they use to confirm the CLI is properly authenticated and connected?

  1. A

    databricks clusters list

  2. B

    databricks configure --token

  3. C

    databricks jobs run-now

  4. D

    databricks workspace ls

Show answer and explanation

Correct answer: A

Explanation

The databricks clusters list command requires the CLI to authenticate and interact with the workspace to retrieve the list of clusters. This makes it the most effective and direct way to confirm the CLI is properly configured and connected, as it verifies both authentication and communication with the workspace.

  • A. Correct.

    This command (databricks clusters list) is used to list all clusters in the Databricks workspace. It is a valid way to verify the CLI's connection, as it requires a successful authentication and workspace interaction to execute.

  • B. Incorrect.

    This command (databricks configure --token) is used to configure the Databricks CLI with a personal access token. While it is part of the setup process, it does not verify the connection but rather sets it up.

  • C. Incorrect.

    This command (databricks jobs run-now) is used to trigger an existing job in Databricks. However, it is not suitable for simply verifying the CLI connection, as it requires a job to be pre-configured.

  • D. Incorrect.

    This command (databricks workspace ls) lists the contents of the Databricks workspace. While it can interact with the workspace, it is not as direct or commonly used for verifying CLI connection as listing clusters.

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