CertLumen

Databricks Generative AI Engineer Associate · Section 3 · 30% of the exam

Enable multi-agent systems to leverage Genie Spaces or conversational API to retrieve data

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

What it covers

An agent built in code is traced, logged with its resources, registered in Unity Catalog, evaluated and deployed with MLflow and Mosaic AI Agent Framework. A multi-agent system hands structured-data questions to a Genie Agent (formerly Genie space) through GenieAgent, the Conversation API or an MCP server. This lesson covers the workflow the exam tests and the October 2026 replacements.

Points to remember

  • Databricks recommends MLflow ResponsesAgent: implement predict (and optionally predict_stream); helpers include create_text_output_item; ChatAgent is older but supported.
  • Models from code: the agent file calls mlflow.models.set_model(); log with mlflow.pyfunc.log_model(python_model="agent.py", resources=[...]).
  • Register in Unity Catalog with mlflow.set_registry_uri("databricks-uc") and mlflow.register_model before agents.deploy().
  • agents.deploy() creates the serving endpoint, scoped short-lived credentials, the Review App, real-time tracing to the experiment and inference tables, and monitoring (Beta).
  • Auth: automatic passthrough via declared resources; on-behalf-of-user (Public Preview) for per-user permissions; manual credentials via secrets.

Try a question

A supervisor agent sends metric questions to a Genie Agent over the sales tables. Finance reports that 'How many active customers did we have in Q2?' returns a count of all customer rows, while finance defines an active customer as one with at least one paid order in the previous 90 days. Analysts who ask the Genie Agent directly get the same wrong count. Which fix addresses the root cause?

  1. AEncode the definition in the Genie Agent: add a tested example SQL query or SQL function for active customers, with a note on the term
  2. BAdd the definition to the supervisor's system prompt so that it explains the term to Genie in every call
  3. CAdd the question and its correct SQL as a benchmark in the Genie Agent so that Genie uses it in later answers
  4. DReplace the Genie worker with a retriever over AI Search that indexes the sales tables as text chunks
Show the answer

A. Genie knows only the tables, instructions and example SQL its author has added, and the wrong count appears even without the supervisor, so the gap is in the Genie Agent's own context. Example SQL queries and SQL functions (trusted assets) that implement the business definition are the most reliable fix, with text instructions as a supplement. Benchmarks are for evaluation only; Genie doesn't use them to improve its answers.

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

In the course

The lesson Agentic systems with MLflow, Agent Framework and Genie teaches this objective (about 55 minutes), and 13 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 →