Think first How would you get a model to answer in exactly the format you need, and prove that it does?
Why it matters: Questions describe an output format a team needs and ask how to template, version or test the prompt behind it.
A well-formatted answer starts with a clear prompt template and ends with a test. The Prompt Registry stores templates as immutable versions, and evaluations run every version on the same dataset and judges.
Reported, thanks
Step 2 of 10
Term
Meaning
Prompt Registry
MLflow's central store for managing prompt templates across their lifecycle.
Prompt version
An immutable snapshot of a prompt with an auto-incrementing number.
Alias
A mutable pointer that refers to one specific prompt version.
Judge
An evaluator, such as one built with make_judge, that checks an output against a rule.
Reported, thanks
Step 3 of 10
Pick Text for completion prompts and Chat for conversations. A Text prompt is one template. A Chat prompt is a list of role-based messages, such as system and user, for conversational models. In a conversation template, each message is a dict with role and content keys.
Text and Chat prompts compared
Feature
Text
Chat
Shape
A single template
A list of role-based messages
Best for
Completion-style prompts
Conversational models
Reported, thanks
Step 4 of 10
Registry templates mark variables with double braces. Write variables as {{name}} in both simple and conversation prompts. LangChain and LlamaIndex expect single braces, so MLflow can convert a registered prompt to that format for them.
Example: A registry template with one variable in double braces.
"Hello {{name}}"
{{name}}: the variable filled in at run time
Exam trap Single-brace templates are not the registry's native syntax. They are the converted form for libraries like LangChain.
Reported, thanks
Step 5 of 10
Show the model the exact output you expect. Prompt optimization uses data with expected responses to steer the output. For example, you can optimize for one word chosen from 5 options, with no explanation added.
Reported, thanks
Step 6 of 10
A saved prompt version can never be edited. To change a prompt, register it again under the same name with mlflow.genai.register_prompt(). That adds a new version, keeps the full history and lets you roll back. Names allow only letters, numbers, hyphens, underscores and dots.
Exam trap Registering an existing prompt name does not overwrite it or fail. It creates the next version of that prompt.
Reported, thanks
Step 7 of 10
A custom judge can test format compliance. A judge built with make_judge can check, say, that a summary has exactly 2 sentences. Use feedback_value_type=bool for pass/fail judges, because MLflow averages the results into a pass rate.
Reported, thanks
Step 8 of 10
Evaluate every version on the same data and judges. The Compare button only shows a text diff between templates. To learn which version produces better output, run evaluations on each and compare the evaluation runs.
Exam trap A text diff does not tell you which prompt performs better. To compare outputs, run evaluations on both versions with the same dataset and judges.
Reported, thanks
Step 9 of 10
Viewing or creating prompts needs a prepared schema. The Unity Catalog schema must grant CREATE FUNCTION, EXECUTE and MANAGE before you can view or create prompts in the registry.
Reported, thanks
Step 10 of 10
Prompt versions are immutable; editing means registering a new version.
Registry templates use double braces, like {{name}}, for variables.
Use a bool judge to turn format checks into a pass rate.
Compare prompt versions with evaluations on the same data, not with a text diff.
Think first How do you match a business need to the right AI task and Databricks function?
Why it matters: Questions describe a business requirement and ask which model task or AI Function fits it.
Start by naming the task the business wants, such as summarizing, translating or classifying. Purpose-built functions such as ai_summarize, ai_translate and ai_classify cover those tasks. ai_query is the general-purpose option for task and model flexibility.
Reported, thanks
Step 2 of 8
Term
Meaning
Task-specific AI Function
A purpose-built function tuned for one job, such as classification or sentiment analysis.
ai_query
The general-purpose function: you supply a prompt and choose a supported foundation model.
Summarization
The NLP task category for condensing text into a short gist.
Provisioned throughput
A Foundation Model APIs mode for production workloads that need high throughput or guarantees.
Reported, thanks
Step 3 of 8
The business requirement tells you the NLP task category. A request to condense a paragraph into a one-sentence gist is summarization. So you evaluate candidate models under the Summarization category.
Exam trap A one-sentence gist is not classification or entity extraction. Condensing text is summarization, so compare models on that task.
Reported, thanks
Step 4 of 8
Task-specific functions each target one task, such as classification. Databricks suggests starting with these functions. They use research techniques Databricks maintains, and they need no customization.
Business needs matched to task-specific AI Functions
Business need
Function
What it does
Shorten long text
ai_summarize
Generates a summary of text
Reach readers in another language
ai_translate
Translates text to a chosen target language
Sort text into categories
ai_classify
Classifies text by labels you supply
Gauge customer mood
ai_analyze_sentiment
Runs sentiment analysis on text
Hide sensitive entities
ai_mask
Masks the entities you specify in text
Compare two pieces of text
ai_similarity
Scores how similar two strings are in meaning
Predict future values
ai_forecast
Extrapolates time series data to a horizon
Exam trapai_forecast is not a text function. It is a table-valued function that extends time series into the future.
Reported, thanks
Step 5 of 8
ai_query is the general-purpose function for task and model flexibility. You write the prompt and choose any supported Foundation Model API.
Exam trap For batch work with ai_query, do not reach for provisioned throughput. Databricks-hosted models prefixed databricks- work best for batch.
Reported, thanks
Step 6 of 8
Provisioned throughput suits demanding production workloads. Choose it for high throughput, performance guarantees, fine-tuned models or extra security needs. A foundation model also suits a quick proof-of-concept, or a RAG chatbot with a vector index.
Reported, thanks
Step 7 of 8
AI Functions need Databricks Runtime 15.4 LTS or above. They are not available on Classic SQL warehouses. Check the compute before you plan a solution around them.
Reported, thanks
Step 8 of 8
Condensing text into a short gist is a summarization task.
Start with a task-specific AI Function; use ai_query when you need any prompt or model.
AI Functions need Runtime 15.4 LTS or above and do not run on Classic SQL warehouses.
Batch jobs with ai_query work best on Databricks-hosted databricks- models.
Think first Given what a chain must take in and hand back, which components and model settings would you put in it?
Why it matters: Questions describe a chain's input and required output, and ask which component, model or setting fits.
A RAG chain is built from components that each do one job. Query understanding clarifies intent to improve retrieval, prompt augmentation joins the query with retrieved information, and post-processing keeps the LLM's responses on-topic and within constraints.
Reported, thanks
Step 2 of 7
Term
Meaning
Query understanding
Transforming the user's query to capture intent and pull out filters or keywords.
Prompt augmentation
Joining the user query with retrieved information and instructions for the LLM.
Guardrails
Safety checks that keep responses on-topic, factually consistent and within constraints.
Function calling
The LLM returns a JSON object naming functions; your code makes the actual calls.
Reported, thanks
Step 3 of 7
Different chain steps can use different models. An expensive general-purpose model may be overkill for a step like detecting a query's intent. In LangChain, the ChatDatabricks class queries a served model.
Example: Creates a LangChain chat model object for a model served on Databricks.
my_llm = ChatDatabricks(model="my_model")
Reported, thanks
Step 4 of 7
Request structured output through the response_format field. It can return text, free-form JSON or JSON that follows a schema. The request format stays the same whatever the model provider. A schema holds at most 64 keys.
Exam trap For Anthropic Claude models, json_object is not supported. Use json_schema, or leave out response_format for unconstrained output.
Reported, thanks
Step 5 of 7
With function calling, the model writes JSON and your code runs the function. The default tool_choice is "auto", so the model decides whether and which functions to call. You can define at most 32 functions, and parallel function calling is not supported.
Exam trap The LLM never runs a function itself. It only returns a JSON object that your code uses to make the call.
Reported, thanks
Step 6 of 7
Add a post-processing step to validate and secure responses. Instructor or Outlines are good starting points for validating structured output. Llama Guard, or a moderation API such as OpenAI's, can provide safety guardrails.
Reported, thanks
Step 7 of 7
Query understanding refines the user's query, prompt augmentation builds the prompt, and guardrails check the response.
A costly general-purpose model can be overkill for simple steps like intent detection.
Function calling returns JSON for your code to act on, with up to 32 functions.
Validate structured output with Instructor or Outlines; screen safety with Llama Guard.
Think first How do you turn a business goal into a clear spec of what goes into an AI pipeline and what must come out?
Why it matters: Questions describe a business goal and ask which inputs, output format or pipeline steps meet it.
Start from the goal, then name the inputs the pipeline needs and the shape of its outputs. A goal like sorting reviews by sentiment implies documents going in and labeled, structured records coming out.
Reported, thanks
Step 2 of 8
Term
Meaning
Structured outputs
Responses generated in a defined JSON format, requested through a response_format field.
JSON schema
The definition a structured response must follow; it may hold at most 64 keys.
VARIANT
The structured type ai_parse_document returns from raw PDF bytes, with elements, layout and file details.
Batch inference pipeline
An AI Functions workflow that covers ingestion, preprocessing, inference and post-processing.
Reported, thanks
Step 3 of 8
The data a pipeline needs depends on the app's requirements and goals. For a customer support bot, inputs might be knowledge base articles, FAQs, product manuals and specifications, and troubleshooting guides. Domain experts and stakeholders help, because they know what queries users are likely to send.
Reported, thanks
Step 4 of 8
Output can be text, free-form JSON or JSON that follows a schema. Structured outputs fit extraction from large volumes of documents. One example is labeling product reviews as negative, positive or neutral. Any supported chat model can use them via the response_format field.
Exam trap A goal that needs the same fields every time, such as a sentiment label per review, points to structured outputs, not free text.
Reported, thanks
Step 5 of 8
Keep schemas flat and within 64 keys. Heavily nested schemas lower generation quality, so flatten them when you can. Foundation Model APIs do not support pattern or composition keywords such as anyOf, oneOf, allOf, prefixItems or $ref.
Exam trap Validating a field with a regular expression through pattern is not supported in Foundation Model APIs structured outputs.
Reported, thanks
Step 6 of 8
Pay-per-token and provisioned throughput chat endpoints support them. For Anthropic Claude models, only json_schema is allowed, not json_object. Streaming is not supported there either, so set stream to false whenever you pass response_format.
Exam trap For Claude models, json_object is not an option. Use json_schema, or leave out response_format for unconstrained output.
Reported, thanks
Step 7 of 8
Batch AI Functions pipelines run from ingestion to post-processing. In a document pipeline, ai_parse_document turns raw PDF bytes into a structured VARIANT. ai_classify accepts that VARIANT directly, with no cast to string. Classic SQL warehouses cannot run AI Functions.
Reported, thanks
Step 8 of 8
Let the app's goals decide which documents and data feed the pipeline.
Use structured outputs when a goal needs consistent fields from many documents.
Keep JSON schemas flat, at most 64 keys, and free of pattern and anyOf.
ai_classify takes the VARIANT from ai_parse_document directly.
Think first How would you choose and describe the tools an agent calls across several reasoning steps?
Why it matters: Questions describe an agent's data and task and ask which tool type, server or setting fits it.
A SQL function fits a fixed query, and the Databricks SQL MCP fits agent-written SQL. An AI Search index serves documents, and Files API tools read volume files. Clear descriptions and comments tell the agent when to call each tool.
Reported, thanks
Step 2 of 10
Term
Meaning
Unity Catalog function tool
A SQL function registered in Unity Catalog that an agent calls, passing its own parameter values.
MCP server
Databricks SQL, AI Search and Genie One are MCP servers; Databricks-provided and registered ones follow Unity Catalog permissions.
VectorSearchRetrieverTool
The class that turns an AI Search index into a tool for a Python agent.
Supervisor Agent
A legacy offering, not recommended for new systems, that coordinates up to 50 agents and tools.
Reported, thanks
Step 3 of 10
Known query, unknown values: use a Unity Catalog SQL function. The query shape is fixed ahead of time, and the agent only fills in the parameters. When the agent must compose its own SQL against Unity Catalog tables, the Databricks SQL MCP fits instead.
Three ways an agent can reach structured data
Feature
UC SQL function
Databricks SQL MCP
Genie One MCP
Best fit
A query known ahead of time
Specific SQL queries and data engineering
Business questions in natural language
How it answers
Runs the fixed query with the agent's parameters
The agent writes and runs its own SQL
Grounds answers in Genie Ontology
Exam trap A SQL function is the wrong pick when the agent must write new queries. It only fits a query fixed in advance.
Reported, thanks
Step 4 of 10
For new Python agents, AI Bridge turns an AI Search index into a tool. Expose the index with VectorSearchRetrieverTool, available in databricks-langchain and databricks-openai. Direct-access indexes, and Delta Sync indexes with self-managed embeddings, also need a custom embedding model and text column configured.
Exam trap The AI Search MCP server does not work with every index. It needs an index that uses Databricks managed embeddings.
Reported, thanks
Step 5 of 10
A retriever tool returns a List[Document]. That shape matches the MLflow retriever schema. Extra attributes such as doc_uri and similarity_score go in each Document's metadata field.
Reported, thanks
Step 6 of 10
Files API tools read volumes; AI Bridge can wrap a Genie Agent. For reports, text documents or configuration files in a Unity Catalog volume, build tools on the Databricks SDK Files API. The agent's identity needs USE CATALOG, USE SCHEMA and READ VOLUME. AI Bridge can expose a specific Genie Agent, handling requests, polling and results.
Exam trap Granting only READ VOLUME is not enough. The agent's identity also needs USE CATALOG and USE SCHEMA to reach the volume.
Reported, thanks
Step 7 of 10
The agent reads a tool's description to decide when to call it. When a Unity Catalog function wraps an AI Search query, its comment is that description. Say what kinds of documents and information the index holds.
Reported, thanks
Step 8 of 10
Supervisor Agent coordinates up to 50 agents and tools, but it is legacy. It delegates using each tool or subagent description, and includes a code execution tool by default. For new low-code agents, pick Genie Agents; to orchestrate several agents in code, the Agent Bricks CLI fits.
Exam trap Supervisor Agent is not the recommended choice for a new system. It is a legacy offering.
Reported, thanks
Step 9 of 10
Databricks-provided and registered MCP servers follow Unity Catalog permissions. Unity Gateway controls access, manages credentials and monitors usage. Three Beta tools, system.ai.dbsql, system.ai.web_search and system.ai.sandbox, need an account admin to enable the Enhanced Unity Gateway preview.
Think first When would you reach for Knowledge Assistant, Supervisor Agent or Information Extraction to solve a problem?
Why it matters: Questions describe a business problem and ask which Agent Bricks agent fits it and how to set it up.
Each Agent Bricks agent solves one kind of problem. Knowledge Assistant answers questions over documents, Information Extraction turns text into structured data, and Supervisor Agent coordinates many agents. Knowledge Assistant and Supervisor Agent are now legacy.
Reported, thanks
Step 2 of 8
Term
Meaning
Knowledge Assistant
A chatbot that answers questions about your documents, with citations.
Information Extraction
An agent that turns unstructured documents and text into structured insights using a schema.
Supervisor Agent
An agent that coordinates Genie Agents, endpoints, functions, MCP servers and custom agents.
Instructed Retriever
The approach Knowledge Assistant uses to address the limits of traditional RAG.
Reported, thanks
Step 3 of 8
Match the agent to the shape of the problem. Ask whether users need answers over documents, structured fields pulled from text, or work spanning several specialized domains.
The three Agent Bricks agents compared
Feature
Knowledge Assistant
Information Extraction
Supervisor Agent
Solves
Questions about your documents, answered with citations
Turning unstructured text into structured insights
Complex tasks across specialized domains
Key input
Volume files or AI Search indexes
A defined schema
Up to 50 agents
Exam trap Knowledge Assistant and Supervisor Agent are legacy. For new low-code agents, pick Genie Agents; for agents built in code, use the Agent Bricks CLI.
Reported, thanks
Step 4 of 8
Volume files can be txt, pdf, md, ppt/pptx or doc/docx. Ingestion skips any file over 100 MB. One assistant draws on at most 10 knowledge inputs. AI Search indexes must use databricks-qwen3-embedding-0-6b, databricks-gte-large-en or databricks-bge-large-en embeddings.
Exam trap Adding files does not update the assistant by itself. You must click Sync, and syncing runs incrementally.
Reported, thanks
Step 5 of 8
Subject matter experts tune Knowledge Assistant with natural language feedback. They describe what should change, and the assistant adjusts its quality and behavior to match.
Reported, thanks
Step 6 of 8
Run Information Extraction on new data with a scheduled Lakeflow pipeline. The pipeline invokes the agent at set intervals and writes the extracted data into a streaming table.
Reported, thanks
Step 7 of 8
One supervisor system can use at most 50 agents. Built-in access controls let end users reach only the subagents and data they may access. To call a Knowledge Assistant endpoint as a subagent, users need CAN QUERY on it. Every supervisor also has a code execution tool for Python, SQL and shell.
Exam trap A supervisor does not bypass permissions. Without explicit access to a subagent, it cannot return helpful answers from that subagent.
Reported, thanks
Step 8 of 8
Documents to chatbot: Knowledge Assistant. Text to structured data: Information Extraction. Many agents together: Supervisor Agent.
Knowledge Assistant skips files over 100 MB; click Sync after adding files.
A supervisor system holds at most 50 agents and respects each user's own access.
For new systems, use Genie Agents or the Agent Bricks CLI instead of the legacy agents.
Each topic's Check tested it on its own; this mixes them.
Mixed quiz
Take the Domain 1 quiz
6 questions mixed from every topic in this domain, each answer explained. Mixing topics is harder than one at a time, and it is what the exam does. No account needed; with a free account your answers also build your estimated exam score.
Free to start: the study notes and plan, quizzes, flashcards and the first mock exam, no card needed. A free account keeps your place and saves your quiz scores.