CertLumen

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

Apply prompt version control and manage prompt lifecycle

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 team keeps separate dev and prod catalogs. Version 6 of dev.support.triage_prompt, aliased staging, passed evaluation. The production agent loads prompts:/prod.support.triage_prompt@production. How should the CI pipeline promote the prompt?

  1. AChange the production agent to load prompts:/dev.support.triage_prompt@staging, so that both environments share one prompt
  2. BEdit the template of the version that production points to in the prod catalog so that it matches version 6
  3. CLoad version 6 from dev, register its template as a new version of prod.support.triage_prompt with a commit message naming the source, and move production to it
  4. DHard-code the version 6 template in the agent's source, redeploy the agent, and delete the prompt from the prod catalog
Show the answer

C. Across catalogs, promotion means registering the approved template under the production name, as a new immutable version whose commit message records where it came from, and then moving the production alias. The agent keeps loading by alias, so it picks up the new version without a redeploy, and rollback stays a single alias move.

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 →