Databricks Certified Generative AI Engineer Associate — Question 81
All of the following are python APIs used to query Databricks foundation models. When running in an interactive notebook, which of the following libraries does not automatically use the current session credentials?
Answer options
- A. OpenAI client
- B. REST API via requests library
- C. MLflow Deployments SDK
- D. Databricks Python SDK
Correct answer: B
Explanation
The REST API via requests library does not automatically apply the session credentials, requiring manual authentication. In contrast, the other libraries like the OpenAI client, MLflow Deployments SDK, and Databricks Python SDK are designed to leverage the current session credentials seamlessly.