exam questions

Exam Certified Data Engineer Professional All Questions

View all questions & answers for the Certified Data Engineer Professional exam

Exam Certified Data Engineer Professional topic 1 question 46 discussion

Actual exam question from Databricks's Certified Data Engineer Professional
Question #: 46
Topic #: 1
[All Certified Data Engineer Professional Questions]

Although the Databricks Utilities Secrets module provides tools to store sensitive credentials and avoid accidentally displaying them in plain text users should still be careful with which credentials are stored here and which users have access to using these secrets.
Which statement describes a limitation of Databricks Secrets?

  • A. Because the SHA256 hash is used to obfuscate stored secrets, reversing this hash will display the value in plain text.
  • B. Account administrators can see all secrets in plain text by logging on to the Databricks Accounts console.
  • C. Secrets are stored in an administrators-only table within the Hive Metastore; database administrators have permission to query this table by default.
  • D. Iterating through a stored secret and printing each character will display secret contents in plain text.
  • E. The Databricks REST API can be used to list secrets in plain text if the personal access token has proper credentials.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
KadELbied
1 month, 1 week ago
Selected Answer: E
suretly E
upvoted 1 times
...
Tedet
3 months, 2 weeks ago
Selected Answer: D
Secret redaction Storing credentials as Databricks secrets makes it easy to protect your credentials when you run notebooks and jobs. However, it is easy to accidentally print a secret to standard output buffers or display the value during variable assignment.
upvoted 1 times
...
AlejandroU
6 months ago
Selected Answer: D
Answer D. dbutils.secrets.get(scope="myScope", key="myKey") retrieves the plain text value of a secret, which is then available for use in code. Limitation: Once the secret is retrieved, if improperly handled (e.g., logged or iterated), its plain text value can be exposed. Option E: The REST API can list secrets in plain text if proper credentials (e.g., a personal access token) are provided. This is unrelated to dbutils.secrets.get but is a valid limitation of the overall secrets management framework in Databricks. Note that the difference between Option D or E is if it is a limitation related to Databricks Utilities Secret (dbutils.secrets), in this case option D is the correct option.
upvoted 1 times
...
Sriramiyer92
6 months, 1 week ago
Selected Answer: D
Cannot be option E as it justs lists the Secret value. It does not print the content therein
upvoted 1 times
...
fe3b2fc
10 months ago
Selected Answer: D
value = dbutils.secrets.get(scope="myScope", key="myKey") for char in value: print(char, end=" ") Out: y o u r _ v a l u e
upvoted 4 times
...
coercion
1 year ago
Selected Answer: E
Only through REST API or CLI you can fetch the secret if you have valid token
upvoted 2 times
...
Er5
1 year, 2 months ago
E: https://docs.databricks.com/api/azure/workspace/secrets/listsecrets GET /api/2.0/secrets/list won’t list secrets in plain text. D: if print it without iterating it in a for loop the output is kind of encrypted where it is showing [REDACTED]. But, if I do it as shown in the screenshot, I'm able to see the value of the secret key. https://community.databricks.com/t5/data-engineering/how-to-avoid-databricks-secret-scope-from-exposing-the-value-of/td-p/12254 https://docs.databricks.com/en/security/secrets/redaction.html Secret redaction for notebook cell output applies only to literals. The secret redaction functionality does not prevent deliberate and arbitrary transformations of a secret literal.
upvoted 2 times
...
Lucario95
1 year, 3 months ago
Selected Answer: E
Both D and E seems correct. They are poorly written thought because for D just printing the characters (not separated by spaces, newlines or something) would not work, while E if launched inside databricks workspace would not work neither.
upvoted 2 times
...
PrashantTiwari
1 year, 4 months ago
D is correct
upvoted 2 times
...
guillesd
1 year, 4 months ago
Selected Answer: D
D is for sure correct (tried it several times on a Databricks environment).
upvoted 2 times
guillesd
1 year, 4 months ago
Regarding E, it can list secrets (with scopes) but I am not sure it can list secret contents.
upvoted 1 times
...
...
DAN_H
1 year, 4 months ago
Selected Answer: D
D is correct
upvoted 3 times
...
spaceexplorer
1 year, 4 months ago
Selected Answer: D
D is correct
upvoted 2 times
...
Def21
1 year, 4 months ago
Selected Answer: E
At least E is a correct answer. B: You can't see secrets in Admin console. Only via REST API, CLI etc. C: Secrets are. not stored in Hive Metastore. D: I am not sure if iterating through secret character by character would work? E: This is at least correct. Using this.
upvoted 1 times
...
ranith
1 year, 5 months ago
B and E both seems to be correct: https://community.databricks.com/t5/data-engineering/how-to-avoid-databricks-secret-scope-from-exposing-the-value-of/td-p/12254/page/2
upvoted 1 times
...
Jay_98_11
1 year, 5 months ago
Selected Answer: D
For sure it's D
upvoted 2 times
...
hkay
1 year, 5 months ago
Answer is E: /api/2.0/secrets/get { "key": "string", "value": "string" } The REST API can potentially expose secrets in plain text if a user with appropriate permissions (including access to both secrets/list and secrets/get) uses a personal access token.
upvoted 3 times
...
Patito
1 year, 5 months ago
Selected Answer: D
Iterating through the secrets provides a way to see the secret's password.
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...