
Answer-first summary for fast verification
Answer: The command will execute successfully, replacing the old secret value with the new one.
When you attempt to write a secret to a scope where the key already exists, the old secret value is replaced by the new one. Therefore, the command in question will execute successfully, updating the secret value. For more details, refer to the documentation on replacing secrets in Databricks.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
A secret value stored in the env scope with its key set as password needs to be updated. A data engineer proposes executing the following command: databricks secrets put –scope env –key password. What will be the outcome of executing this command?
A
The command will fail because the syntax is incorrect.
B
The command will execute successfully, replacing the old secret value with the new one.
C
The command will result in an error, as the previous secret must be deleted first.
D
The command will execute successfully, but the old secret value will remain unchanged.
E
The command will fail, requiring the scope to be deleted before execution.
No comments yet.