QuestionQ265

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 every Python variable defined as a string, they upload the password to the secrets module and set the appropriate permissions for the currently active user. They then change their code as follows, leaving all other variables unchanged.

Question Image

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

Explanation

dbutils.secrets.get() returns the stored secret for use as the JDBC password, allowing the external-table connection to authenticate when the other connection values and permissions are valid. Databricks redacts values read through dbutils.secrets.get() when they are displayed, replacing the printed secret with [REDACTED].

Learn more

Community Discussion

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