Databricks Certified Generative AI Engineer Associate · Free Practice Question Easy

Question 10

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?
  • A Use spark.conf.set()
  • B Pass the secrets in plain text
  • C Add credentials using environment variables
  • D Pass variables using the Databricks Feature Store API
Reveal correct answer

Correct answer: C

Explanation

Environment variables ensure secure handling of secrets or credentials without exposing them in the code.

A. Incorrect: spark.conf.set() is typically used for Spark configuration and is not suitable for securely passing secrets or credentials.

B. Incorrect: Passing secrets in plain text poses significant security risks and is not recommended.

C. Correct: Environment variables are a secure and scalable way to pass secrets or credentials to an application.

D. Incorrect: The Feature Store API is used for managing and retrieving feature data, not for passing secrets or credentials.

Discussion

Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.

You must be logged in to post a comment.

Preparing For

Your Certification?

255+ certifications
Detailed explanations
Free PDF samples

Has All The Questions You Need