Databricks Data Engineer Professional exam dumps

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

Select 4

You are tasked with automating interactions with your Databricks workspace using the Databricks CLI. Before executing basic commands, you need to configure the CLI properly. Which of the following steps are required to correctly configure the Databricks CLI?

  1. A

    Generate a personal access token from the Databricks workspace and set it in the CLI configuration file.

  2. B

    Run the command databricks configure --token to initialize CLI configuration interactively.

  3. C

    Install the Databricks CLI using the command pip install databricks-cli.

  4. D

    Set Databricks CLI environment variables, including DATABRICKS_HOST and DATABRICKS_TOKEN, to bypass interactive configuration.

  5. E

    Configure the Databricks CLI by editing the workspace's cluster JSON file directly.

Show answer and explanation

Correct answers: A, B, C, D

Explanation

To configure the Databricks CLI, you must first install it and then authenticate it with your workspace. Authentication can be done either interactively using databricks configure --token or by setting environment variables (DATABRICKS_HOST and DATABRICKS_TOKEN). Generating a personal access token is necessary for either method. Directly editing the cluster JSON file is unrelated to CLI configuration.

  • A. Correct.

    Correct: Generating a personal access token is required to authenticate the Databricks CLI with your workspace.

  • B. Correct.

    Correct: Running databricks configure --token allows you to interactively set up the CLI configuration using the generated token and workspace URL.

  • C. Correct.

    Correct: Installing the Databricks CLI is a prerequisite for using it. Without installation, the CLI commands cannot run.

  • D. Correct.

    Correct: Setting environment variables like DATABRICKS_HOST and DATABRICKS_TOKEN is an alternate way to configure the CLI, bypassing the need for interactive setup.

  • E. Incorrect.

    Incorrect: The Databricks CLI cannot be configured by directly editing the cluster JSON file. This is not a valid step for CLI setup.

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