MockCertMockCert
Menu

Test yourself in exam conditions

A full Databricks Certified Generative AI Engineer Associate mock exam: 45 questions in 90 minutes. Your first one is free.

Start a free mock exam
Domain 1 · 6 topics · about 32 minTopics in this domainTopics

Domain 1 · Overview

Overview

Up next: Design a prompt that elicits a specifically formatted response · 10 steps + check · 5 min

Domain 1 · Topic 1 of 6

Design a prompt that elicits a specifically formatted response

Step 1 of 10

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.

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.

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

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.

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.

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.

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.

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.

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.

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.

Sources: Prompt Registry | Databricks on AWS (opens in a new tab) · Evaluate and compare prompt versions | Databricks on AWS (opens in a new tab) · Create and edit prompts | Databricks on AWS (opens in a new tab) · Optimize prompts tutorial | Databricks on AWS (opens in a new tab)

Check

Check: Design a prompt that elicits a specifically formatted response

Cards to recall, then questions on this topic. About 2 minutes. Nothing is saved without an account.

Loading the cards and questions…

Up next: Select model tasks to accomplish a given business requirement · 8 steps + check · 5 min

Domain 1 · Topic 2 of 6

Select model tasks to accomplish a given business requirement

Step 1 of 8

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.

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.

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.

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 trap ai_forecast is not a text function. It is a table-valued function that extends time series into the future.

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.

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.

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.

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.

Sources: Databricks Exam Guide Databricks Certified Generative AI Engineer Associate (opens in a new tab) · Transform unstructured data using AI Functions | Databricks on AWS (opens in a new tab) · Databricks Foundation Model APIs | Databricks on AWS (opens in a new tab)

Check

Check: Select model tasks to accomplish a given business requirement

Cards to recall, then questions on this topic. About 2 minutes. Nothing is saved without an account.

Loading the cards and questions…

Up next: Select chain components for a desired model input and output · 7 steps + check · 5 min

Domain 1 · Topic 3 of 6

Select chain components for a desired model input and output

Step 1 of 7

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.

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.

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")

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.

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.

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.

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.

Sources: Improve RAG chain quality | Databricks on AWS (opens in a new tab) · Function calling on Databricks | Databricks on AWS (opens in a new tab) · Query a chat model | Databricks on AWS (opens in a new tab) · Structured outputs on Databricks | Databricks on AWS (opens in a new tab)

Check

Check: Select chain components for a desired model input and output

Cards to recall, then questions on this topic. About 2 minutes. Nothing is saved without an account.

Loading the cards and questions…

Up next: Translate business use case goals into a description of the desired inputs and outputs for the AI pipeline · 8 steps + check · 5 min

Domain 1 · Topic 4 of 6

Translate business use case goals into a description of the desired inputs and outputs for the AI pipeline

Step 1 of 8

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.

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.

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.

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.

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.

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.

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.

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.

Sources: Structured outputs on Databricks | Databricks on AWS (opens in a new tab) · Build an unstructured data pipeline for RAG | Databricks on AWS (opens in a new tab) · Document Intelligence powered by AI Functions | Databricks on AWS (opens in a new tab) · Deploy batch inference pipelines | Databricks on AWS (opens in a new tab)

Check

Check: Translate business use case goals into a description of the desired inputs and outputs for the AI pipeline

Cards to recall, then questions on this topic. About 2 minutes. Nothing is saved without an account.

Loading the cards and questions…

Up next: Define and order tools that gather knowledge or take actions for multi-stage reasoning · 10 steps + check · 6 min

Domain 1 · Topic 5 of 6

Define and order tools that gather knowledge or take actions for multi-stage reasoning

Step 1 of 10

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.

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.

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.

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.

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.

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.

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.

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.

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.

Step 10 of 10

  • Fixed query with agent-supplied values: Unity Catalog SQL function. Agent-written SQL: Databricks SQL MCP.
  • Retriever tools return List[Document], with extras like doc_uri in the metadata field.
  • Descriptions and function comments are how an agent decides which tool to call.
  • Supervisor Agent handles up to 50 agents and tools but is legacy; prefer Genie Agents or the Agent Bricks CLI.

Sources: Connect agents to structured data | Databricks on AWS (opens in a new tab) · Connect agents to unstructured data | Databricks on AWS (opens in a new tab) · Use Supervisor Agent to create a coordinated multi-agent system (legacy) | Databricks on AWS (opens in a new tab) · MCPs | Databricks on AWS (opens in a new tab)

Check

Check: Define and order tools that gather knowledge or take actions for multi-stage reasoning

Cards to recall, then questions on this topic. About 2 minutes. Nothing is saved without an account.

Loading the cards and questions…

Up next: Determine how and when to use Agent Bricks (Knowledge Assistant, Multiagent Supervisor, Information Extraction) to solve problems · 8 steps + check · 5 min

Domain 1 · Topic 6 of 6

Determine how and when to use Agent Bricks (Knowledge Assistant, Multiagent Supervisor, Information Extraction) to solve problems

Step 1 of 8

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.

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.

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.

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.

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.

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.

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.

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.

Sources: Use Knowledge Assistant to create a high-quality chatbot over your documents | Databricks on AWS (opens in a new tab) · Information Extraction | Databricks on AWS (opens in a new tab) · Use Supervisor Agent to create a coordinated multi-agent system (legacy) | Databricks on AWS (opens in a new tab)

Check

Check: Determine how and when to use Agent Bricks (Knowledge Assistant, Multiagent Supervisor, Information Extraction) to solve problems

Cards to recall, then questions on this topic. About 2 minutes. Nothing is saved without an account.

Loading the cards and questions…

Domain 1 · after the last topic

Domain 1 review

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.

Flashcards

Domain 1 flashcards

12 cards with this domain's key facts. Flip each one and check what you knew. No account needed.

Test yourself in exam conditions

A full Databricks Certified Generative AI Engineer Associate mock exam: 45 questions in 90 minutes. Your first one is free.

Start a free mock exam
Next domain · 14% of the examData Preparation8 topics

Report a problem

On “”. Tell us what looks wrong; we read every report.

What is the problem?

Optional.