CertLumen

Databricks Generative AI Engineer Associate · Section 4 · 22% of the exam

Identify batch inference workloads and apply ai_query() appropriately

One of the objectives of the Databricks Certified Generative AI Engineer Associate exam, in the section “Assembling and Deploying Applications”. Here is what it covers, the points to remember and a question to try.

What it covers

An LLM application calls Foundation Model API endpoints, runs on its own serving endpoint or app, authenticates to the Databricks resources it uses, and reaches users through an interface. This lesson covers the serving options, the three authentication methods for serving endpoints, when to use ai_query() for batch inference instead of a real-time endpoint, and how to pick a user interface such as Databricks Apps, Slack or Microsoft Teams.

Points to remember

  • Foundation Model APIs: pay-per-token (prototype and moderate traffic), provisioned throughput (guaranteed throughput, fine-tuned models, compliance), AI Functions for batch.
  • Serve the application separately: log, register in Unity Catalog, deploy (agents.deploy() for agents). It then calls the Foundation Model API endpoint.
  • agents.deploy() sets up the endpoint, short-lived credentials, the Review App, tracing and inference tables. A new version of the same UC model updates the same endpoint.
  • Automatic passthrough: declare resources when logging. A system service principal per model version gets short-lived OAuth credentials, and the deployer's access is verified.
  • On-behalf-of-user (Public Preview): UserAuthPolicy(api_scopes=...), ModelServingUserCredentials, create the client inside predict. Needs MLflow 2.22.1+ and admin enablement.

Try a question

Regional sales managers spend their day in Slack and want to ask questions such as 'What were Q3 bookings in my region?' about governed sales tables. Each answer must respect the asking manager's own Unity Catalog permissions. The data team already maintains a Genie Agent (formerly Genie space) over those tables and wants the least custom code. Which approach fits?

  1. ABuild a Slack bot on Databricks Apps that calls the Genie Agent with the app's service principal
  2. BInstall the Databricks Genie app for Slack and have channel owners pin the sales Genie Agent
  3. CGive an agent a Slack tool backed by a Unity Catalog HTTP connection so that it can post answers in channels
  4. DShare the Review App of a sales agent in the Slack channel so that managers can ask their questions there
Show the answer

B. The Databricks Genie app for Slack (Public Preview) lets users DM the app or mention @Genie, and it answers with the credentials of the Slack user who asks, so Unity Catalog permissions apply per person. When a channel owner pins a Genie Agent, questions go only to that agent. It needs no custom code: an account admin enables the preview, and a Slack admin installs the app.

Written for practice in the style of the exam: never a question from the real exam.

In the course

The lesson Serving, securing and exposing LLM applications teaches this objective (about 55 minutes), and 15 practice questions test it. The course has lessons, exam-style questions, timed practice exams and an AI tutor for every objective, and a pass prediction that tells you when you're ready to book.

More in this section

← Previous objective · All 56 objectives · Next objective →