Databricks Generative AI Engineer Associate · Section 4 · 22% of the exam
Apply CI/CD best practices such as updating a Vector Search index, promoting prompts across environments, and testing individual components of an agent
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 nightly Lakeflow job rewrites the chunk table that feeds a Delta Sync index with pipeline_type="TRIGGERED". The next morning the agent still answers from yesterday's documents. Freshness by 7 AM is enough, and the team wants to keep cost low. What is the best fix?
- ASwitch the index to continuous sync so that it updates whenever the table changes
- BDelete and re-create the index at the end of every job run
- CAdd a task that depends on the refresh task and calls
sync()on the index - DConvert the index to Direct Vector Access and upsert every row each night
Show the answer
C. Triggered Delta Sync indexes update only when sync() (or Sync now) runs. In CI/CD, the job or bundle that refreshes the source table should include a downstream task that syncs the index. Continuous sync is for freshness in seconds and costs more.
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
- Integrate managed, external, and custom MCP servers based on a given application requirements