Databricks Generative AI Engineer Associate · Section 4 · 22% of the exam
Integrate managed, external, and custom MCP servers based on a given application requirements
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
Agents in production need state outside the serving process, tools exposed through MCP, prompts that are versioned like code, and a pipeline that refreshes indexes, promotes artifacts and tests each component. This lesson covers Lakebase-backed memory, the three kinds of MCP servers, the MLflow Prompt Registry, and CI/CD practices for agents on Databricks.
Points to remember
- Serving replicas are stateless. Keep memory in Lakebase (managed Postgres OLTP), not in Python variables or local files.
- Short-term memory is one thread (checkpoints keyed by
thread_idincustom_inputs). Long-term memory is facts across conversations, retrieved by search. - Self-managed pattern:
CheckpointSaver(instance_name=...)for LangGraph, plus aDatabricksLakebaseresource. Managed agent sessions and agent memory (Beta) now run on Lakebase for you. - Structured reference data stays in Delta tables, exposed through UC functions or Genie, or through a Lakebase synced table for fast lookups.
- Managed MCP: Databricks-hosted servers for Vector Search, Genie, UC functions and SQL (
/api/2.0/mcp/...). Permissions come from the underlying objects.
Try a question
A prompt in the MLflow Prompt Registry uses the template Summarize {{ticket}} in {{n}} bullets. A developer wants to use the loaded prompt in a LangChain prompt template, which expects single-brace variables such as {ticket}. What should the developer do?
- ACall
to_single_brace_format()on the loaded prompt and pass the result to LangChain - BRegister a new version with single braces, because LangChain can't use registry prompts
- CCall
prompt.format()with no arguments so that MLflow strips the braces - DSet an alias named
langchainon the version so that MLflow converts the template when it loads
Show the answer
A. Registry templates use double-brace variables, which prompt.format(...) fills. For frameworks that expect single braces, such as LangChain or LlamaIndex, to_single_brace_format() converts the loaded template, so the same registered version serves both uses.
Written for practice in the style of the exam: never a question from the real exam.
In the course
The lesson Operating agents: memory, MCP, prompts and CI/CD teaches this objective (about 55 minutes), and 14 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
- Code a chain using a pyfunc model with pre- and post-processing
- Control access to resources from model serving endpoints
- Code a simple chain according to requirements
- Choose the basic elements needed to create a RAG application: model flavor, embedding model, retriever, dependencies, input examples, model signature
- Register the model to Unity Catalog using MLflow
- Create and query a Vector Search index
- Identify how to serve an LLM application that leverages Foundation Model APIs
- Explain the key concepts and components of Mosaic AI Vector Search
- Identify batch inference workloads and apply ai_query() appropriately
- Configure vector search for a particular solution based on number of embeddings, update frequency, latency, and cost requirements
- Configure a persistent datastore to store and retrieve intermediate memory or structured information
- Apply CI/CD best practices such as updating a Vector Search index, promoting prompts across environments, and testing individual components of an agent