AWS Exams GCP Exams Azure Exams GitHub Exams Jira Exams ISC2 Exams

Video: The security team is exploring whether or databricks video

Question 1 Be Honest
« Back   Next data-engineer-professional Certification Question »
Answer

Full Certification Question

The security team is exploring whether or not the Databricks secrets module can be leveraged for connecting to an external database. After testing the code with all Python variables being defined with strings, they upload the password to the secrets module and configure the correct permissions for the currently active user. They then modify their code to the following (leaving all other variables unchanged): password = dbutils . secrets . get ( scope = "db_creds" , key = "jdbc_password" ) print ( password ) df = ( spark . read . format ( "jdbc" ) . option ( "url" , connection ) . option ( "dbtable" , tablename ) . option ( "user" , username ) . option ( "password" , password ) ) Which statement describes what will happen when the above code is executed?