Databricks Data Engineer Professional exam dumps

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

Single answer

You have been tasked to automate interactions with a Databricks workspace using the Databricks CLI. After configuring the Databricks CLI with a valid personal access token, you want to verify that the configuration is functioning correctly. Which of the following commands should you execute to test the connection to your Databricks workspace and list available clusters?

  1. A

    databricks clusters list

  2. B

    databricks configure --token

  3. C

    databricks fs ls

  4. D

    databricks jobs list

Show answer and explanation

Correct answer: A

Explanation

To verify that the Databricks CLI is properly configured, you can execute the 'databricks clusters list' command. This command connects to the Databricks workspace and retrieves the available clusters, ensuring that the CLI is set up correctly with the necessary authentication and connectivity. Other commands, such as 'databricks configure --token,' are part of the setup process, but they do not validate the connection or provide cluster information.

  • A. Correct.

    This is the correct command to list clusters in your Databricks workspace, which also verifies that the CLI is properly configured and connected.

  • B. Incorrect.

    This command is used during the configuration process to set up the CLI with a personal access token, but it does not test the connection or list clusters.

  • C. Incorrect.

    This command is used to list files in the Databricks file system (DBFS), but it does not test workspace connection or provide information about clusters.

  • D. Incorrect.

    This command is used to list jobs in the Databricks workspace, but it does not verify the CLI connection or provide cluster information.

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