CertLumen

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_id in custom_inputs). Long-term memory is facts across conversations, retrieved by search.
  • Self-managed pattern: CheckpointSaver(instance_name=...) for LangGraph, plus a DatabricksLakebase resource. 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?

  1. ASwitch the index to continuous sync so that it updates whenever the table changes
  2. BDelete and re-create the index at the end of every job run
  3. CAdd a task that depends on the refresh task and calls sync() on the index
  4. 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

← Previous objective · All 56 objectives · Next objective →