QuestionQ6

VerifiedEnsuring Data Security and Compliance

The security team is investigating whether the Databricks secrets module can be used to connect to an external database.

After testing the code with all Python variables defined as strings, they upload the password to the secrets module and set the correct permissions for the currently active user. They then update their code as follows, leaving every other variable unchanged.

Question Image

Which statement explains what will occur when the preceding code runs?

Explanation

dbutils.secrets.get() supplies the secret’s string value to the JDBC reader, allowing the password to be used for the database connection. Databricks redacts secret values retrieved through this utility in notebook output, so printing the variable displays REDACTED rather than the plaintext password.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!