Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

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

Posted by Nickole on Jun 15, 2025 at 01:40 AM

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?

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.


Get Premium Databricks Certified Data Engineer Professional Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
30 comments · newest first
LA
Lashaun 10 months ago
I disagree, option D is misleading. No way the password prints in plain text.
KA
Kandis 10 months ago
Wait, does that mean the password gets saved to DBFS? Sounds risky!
PO
Polly 10 months ago
I think option B is correct. Interactive input box for the password!
EA
Earlean 10 months ago
Surprised that people think the connection will succeed at all!
AL
Allene 10 months ago
Nah, I’m leaning towards option E. 'Redacted' will show up instead.
TH
Thurman 11 months ago
I think an interactive input box appears, but I'm confused about whether the password gets printed or not.
HO
Hobert 11 months ago
I feel like I read that the password would be redacted in the output, but I can't recall if it would succeed or fail.
TE
Telma 11 months ago
This question seems similar to one we practiced where the secrets were involved. I think the connection should succeed if the password is correct.
DO
Domonique 11 months ago
I remember something about the secrets module, but I'm not sure if it will prompt for the password or just fail.
MY
Myrtie 12 months ago
This seems straightforward enough. I'll review the code and options, and then make my best guess based on my understanding of the secrets module.
KA
Kayleigh 12 months ago
I'm a bit confused by the options here. I'll need to make sure I fully grasp the expected behavior of the secrets module before I can confidently select an answer.
VI
Vi 12 months ago
Okay, I think I've got a handle on this. The key is understanding how the secrets module is supposed to interact with the password variable.
NO
Nobuko 1 year ago
Hmm, the use of the secrets module is interesting. I'll need to think through how it's supposed to work and what the expected behavior is.
LI
Linn 1 year ago
This looks like a tricky one. I'll need to carefully read through the code and options to understand what's happening with the secrets module.
ME
Melissa 1 year ago
I'm not sure, but I think it might be D.
DA
Darrin 1 year ago
I disagree, I believe the answer is C.
NY
Nydia 1 year ago
I think the correct answer is B.
JO
Johana 1 year 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?
LE
Leanora 1 year ago
↳ replying to Johana
Yeah, I think it's better to have the password redacted for security reasons. It's a small inconvenience for a big security benefit.
AL
Alayna 1 year ago
↳ replying to Johana
I agree, option E seems like the safest choice. It's better to prioritize security over convenience.
MA
Margret 1 year 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.
LI
Lindsey 1 year 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?
SH
Shala 1 year ago
↳ replying to Lindsey
I see your point, option C could also be a possibility. It's a tough choice between B and C.
JU
Judy 1 year ago
↳ replying to Lindsey
I'm not so sure about option B. I think option C might be the right answer. The password could be printed in plain text if the right password is provided.
CE
Ceola 1 year ago
↳ replying to Lindsey
I agree, option B seems like the most logical choice. The code is probably designed to prompt for the password and save it to DBFS if correct.
RE
Refugia 1 year ago
↳ replying to Lindsey
I think option B is the correct answer. An interactive input box will appear in the notebook and if the right password is provided, the connection will succeed.
CA
Cammy 1 year 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.
HO
Honey 1 year ago
↳ replying to Cammy
Yes, the password will be redacted if the connection fails.
PH
Phil 1 year ago
↳ replying to Cammy
I agree, the secrets module is meant to keep the password secure.
SA
Sanjuana 1 year ago
↳ replying to Cammy
I think option A is the correct answer.
0/2000 characters

Save Cancel