
Answer-first summary for fast verification
Answer: Both Databricks CLI and Databricks REST API can be used to create a secret scope, but not `dbutils.secrets()`.
The correct answer is D because both Databricks CLI and Databricks REST API are valid methods for creating a secret scope. The `dbutils.secrets()` method, however, cannot be used to create a secret scope; it is only for reading secrets. Options A, B, and C are incorrect as they each falsely claim exclusivity for one method over others. Option E is incorrect because it includes `dbutils.secrets()` as a method for creating secret scopes, which is not possible.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
A Databricks engineer is tasked with creating a secret scope to securely store a connection string for a JDBC source. Which of the following methods can the engineer use to create this secret scope?
A
Databricks CLI is the sole method for creating a secret scope.
B
Only the Databricks REST API can be utilized to create a secret scope.
C
The dbutils.secrets() method is exclusively used for creating a secret scope in Databricks.
D
Both Databricks CLI and Databricks REST API can be used to create a secret scope, but not dbutils.secrets().
E
Databricks CLI, Databricks REST API, and dbutils.secrets() are all viable methods for creating a secret scope.