Databricks Data Engineer Professional exam dumps

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

Single answer

You are tasked with configuring the Databricks CLI on your local machine to interact with a Databricks workspace. After successfully configuring the CLI, you want to list all the clusters in your workspace. Which sequence of steps should you follow to accomplish this?

  1. A

    Run the databricks clusters list command directly after installing the CLI.

  2. B

    Generate a Databricks personal access token, configure the CLI with the token and workspace URL, then run the databricks clusters list command.

  3. C

    Run the databricks configure command, provide your username and password, then execute the databricks clusters list command.

  4. D

    Install the Databricks CLI, then run the databricks clusters list command without any additional configuration steps.

Show answer and explanation

Correct answer: B

Explanation

To use the Databricks CLI, you must first configure it by providing authentication details such as a personal access token and workspace URL. Once configured, you can execute commands like databricks clusters list to interact with the workspace. The correct sequence involves generating a personal access token in Databricks, configuring the CLI with the appropriate credentials, and then running the desired command.

  • A. Incorrect.

    This option is incorrect because the Databricks CLI requires authentication and workspace configuration before executing commands like databricks clusters list.

  • B. Correct.

    This is correct because configuring the CLI with a personal access token and workspace URL is required for authentication. Once configured properly, the databricks clusters list command can be used to list clusters in the workspace.

  • C. Incorrect.

    This option is incorrect because the databricks configure command supports only authentication via personal access tokens and not username/password authentication.

  • D. Incorrect.

    This option is incorrect because the CLI must be configured with authentication details (e.g., personal access token and workspace URL) before running any commands.

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