Exam Databricks-Machine-Learning-Professional Topic 11 Question 116 Discussion

Actual exam question for Databricks's Databricks-Machine-Learning-Professional exam
Question #: 116
Topic #: 11
A Machine Learning Engineer developed a dynamic pricing model in MLflow that requires values from the company's cloud database to generate predictions. At inference time the PyFunc model uses the cloud provider's Python SDK to retrieve the latest values from the database. The inference code works well in a notebook, but when the engineer deploys the model to Databricks Model Serving, they receive 401 errors saying the user is not authenticated when trying to access the database. The engineer deploys the code via the REST API with the following payload:

Their Databricks administrators store cloud credentials under a Databricks secret scope called
"cloud_creds" with key "db_key". These credentials can be used to authenticate to the cloud provider's SDK.
Which change can the engineer make so the endpoint can authenticate to the remote database while avoiding storing the access tokens in plain text?

Suggested Answer: D Vote an answer

Databricks Model Serving supports secure secret injection by referencing Databricks secret scopes directly in the served entity configuration. By mapping the secret to an environment variable using the {{secrets/scope/key}} syntax, the model can securely access the credential at runtime without exposing it in plain text. The PyFunc model can then read the environment variable and authenticate to the cloud provider's SDK, resolving the 401 error while following security best practices.

by Elroy at Jul 16, 2026, 04:01 AM

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Nick name: Submit Cancel
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.

0
0
0
10