nerdexam
Databricks

GENERATIVE-AI-ENGINEER-ASSOCIATE · Question #41

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…

The correct answer is B. REST API via requests library. The REST API accessed via the requests library does not automatically use the current Databricks session credentials when running in an interactive notebook. Authentication must be explicitly handled by the developer, unlike the other SDKs which integrate with the notebook's…

Interacting with Databricks Foundation Model Endpoints

Question

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?

Options

  • AOpenAI client
  • BREST API via requests library
  • CMLflow Deployments SDK
  • DDatabricks Python SDK

How the community answered

(25 responses)
  • A
    8% (2)
  • B
    88% (22)
  • D
    4% (1)

Explanation

The REST API accessed via the requests library does not automatically use the current Databricks session credentials when running in an interactive notebook. Authentication must be explicitly handled by the developer, unlike the other SDKs which integrate with the notebook's session context.

Topics

#Databricks APIs#Authentication#Foundation Models#Python Libraries

Community Discussion

No community discussion yet for this question.

Full GENERATIVE-AI-ENGINEER-ASSOCIATE Practice