Ultimate access to all questions.
Upgrade Now 🚀
Sign in to unlock AI tutor
A data engineer has recently learned that users with access to Databricks Secrets might be able to display secret values in notebooks. Which of the following methods could potentially reveal the value of a Databricks secret in plain text?
A
`db_password = dbutils.secrets.get('prod-scope', 'db-password', redacted=False)
print(db_password)`
B
`db_password = dbutils.secrets.get('prod-scope', 'db-password')
print(db_password, redacted=False)`
C
display(db_password)`
D
for char in db_password:
print(char)`
E
There is no workaround to print secrets values in plain text in notebooks. A string 'REDACTED' will always be displayed when trying to print out a secret value.