Databricks Certified Generative AI Engineer Associate — Question 44
A Generative AI Engineer is tasked with deploying an application that takes advantage of a custom MLflow Pyfunc model to return some interim results.
How should they configure the endpoint to pass the secrets and credentials?
Answer options
- A. Use spark.conf.set ()
- B. Pass variables using the Databricks Feature Store API
- C. Add credentials using environment variables
- D. Pass the secrets in plain text
Correct answer: C
Explanation
The correct answer is C because using environment variables is a secure method to manage sensitive information without exposing it in the code. Options A and B do not specifically address credential management, and option D is insecure as it involves sending secrets in plain text, making it vulnerable to interception.