CertLumen

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_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 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?

  1. ACall to_single_brace_format() on the loaded prompt and pass the result to LangChain
  2. BRegister a new version with single braces, because LangChain can't use registry prompts
  3. CCall prompt.format() with no arguments so that MLflow strips the braces
  4. DSet an alias named langchain on 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

← Previous objective · All 56 objectives · Next objective →