
Answer-first summary for fast verification
Answer: databricks clusters create --json cluster-config.json
The correct command to create a cluster using the Databricks CLI is 'databricks clusters create --json <file>', where <file> is a JSON file containing the cluster configuration. This command accurately uses the '--json' flag to specify the configuration file, ensuring the cluster is created according to the specified requirements. The other options either use incorrect flags or subcommands, which would not result in the successful creation of the cluster as required. The JSON file must include the cluster_name, spark_version, node_type_id, and num_workers parameters to meet the specified requirements.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
As a Databricks Certified Data Engineer, you are tasked with automating the creation of a cluster for a critical data pipeline using the Databricks CLI. The cluster must meet specific requirements to ensure optimal performance and cost-efficiency. The requirements include:
Your team has already configured the CLI with the correct authentication profile. You need to create this cluster using a JSON file named cluster-config.json that contains the cluster configuration. Considering the need for accuracy and efficiency in command execution, which of the following CLI commands will correctly create the cluster with the required configuration? (Choose one option.)
A
databricks clusters create --json cluster-config.json
B
databricks clusters create --config-file cluster-config.json
C
databricks cluster create --json cluster-config.json
D
databricks clusters create --file cluster-config.json