
Explanation:
The dbutils.secrets.get() method is indeed capable of reading secrets. However, when executed in a notebook, it deliberately prints [REDACTED] to prevent the accidental exposure of the secret value in the notebook cell. This is part of Databricks' secret redaction feature to enhance security.
Ultimate access to all questions.
No comments yet.
A data engineer sets up a secret scope named 'prod' and adds a secret with the key 'authenticate' and the value 'my_unique_authentication'. What will be the outcome if the engineer runs the following command in a Python notebook: print(dbutils.secrets.get('prod', 'authenticate'))?
A
The command will fail because secrets cannot be accessed inside a notebook using the get() method.
B
Upon successful execution, [REDACTED] will be displayed as the output.
C
The exact value 'my_unique_authentication' will be printed as the output.
D
Executing the command will trigger a file download containing the password.
E
The command will run successfully, but there will be no output displayed.