Independence Day Deal! Unlock 25% OFF Today – Limited-Time Offer - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Databricks Exam Databricks Certified Data Engineer Professional Topic 3 Question 35 Discussion

Actual exam question for Databricks's Databricks Certified Data Engineer Professional exam
Question #: 35
Topic #: 3
[All Databricks Certified Data Engineer Professional Questions]

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).

Which statement describes what will happen when the above code is executed?

Show Suggested Answer Hide Answer
Suggested Answer: E

This is the correct answer because the code is using the dbutils.secrets.get method to retrieve the password from the secrets module and store it in a variable. The secrets module allows users to securely store and access sensitive information such as passwords, tokens, or API keys. The connection to the external table will succeed because the password variable will contain the actual password value. However, when printing the password variable, the string ''redacted'' will be displayed instead of the plain text password, as a security measure to prevent exposing sensitive information in notebooks. Verified Reference: [Databricks Certified Data Engineer Professional], under ''Security & Governance'' section; Databricks Documentation, under ''Secrets'' section.


Contribute your Thoughts:

Johana
3 days ago
Option E is the way to go. The secrets module will 'redact' the password, so it won't be visible in the output. Security is important, but why can't they just make it easy for us, you know?
upvoted 0 times
...
Margret
4 days ago
Haha, option C is hilarious! An 'interactive input box' to enter the password? That's like something out of a bad sitcom. I'm going with option A.
upvoted 0 times
...
Lindsey
7 days ago
I'm not sure about this one. It seems like the code is trying to access the password from the secrets module, but I'm not sure what will happen. Maybe option B or C is the right answer?
upvoted 0 times
...
Cammy
12 days ago
Option A is definitely the correct answer. The secrets module is designed to keep the password secure, so it won't be printed in plain text.
upvoted 0 times
Phil
3 days ago
I agree, the secrets module is meant to keep the password secure.
upvoted 0 times
...
Sanjuana
6 days ago
I think option A is the correct answer.
upvoted 0 times
...
...

Save Cancel