What you will be able to do
- Explain what a Genie Agent (Genie space) is for and how it differs from an AI/BI dashboard
- Trace how a natural-language question becomes a SQL query, a results table and a visualization
- Identify the questions and data a Genie Agent cannot answer
- Name the components of a Genie Agent and describe how each one shapes its answers
Key concept
Genie Agent (Genie space) — A chat interface for one subject area, built over curated Unity Catalog data. It turns a business user's plain-English question into a read-only SQL query, runs that query on a SQL warehouse, and returns the query, a results table and a visualization.
1.What a Genie Agent is for and where it sits in AI/BI
A Genie Agent lets business users ask questions about company data in plain English and get answers based on that data. They don't write SQL, they don't need to know table names, and they don't have to wait for someone to build a report. Databricks used to call this feature a Genie space. The exam still uses that name, so treat the two terms as the same thing.
Two groups use a Genie Agent. Data analysts or domain experts build it: they choose the Unity Catalog datasets and add example SQL queries, SQL expressions for business terms, and text instructions written in the organization's own vocabulary. Business users then work with it only through the chat. When a question is asked, Genie relies on everything the authors set up to turn it into an analytical query.
Genie Agents are one of two products in Databricks AI/BI. The other is AI/BI dashboards. A dashboard is built to answer a fixed set of business questions: someone decides on the charts and filters ahead of time, and users explore inside those limits (see AI/BI dashboards). A Genie Agent answers a much broader set of questions, including ones nobody expected. It also improves over time as users give feedback and the data team adjusts its configuration.
Here is where that difference matters. Say a store manager looks at a weekly sales-by-region dashboard and wants to compare two product bundles over a custom date range. The dashboard has no filter for that. Adding chart tabs, refreshing the data more often, or sharing the same dashboard with more people doesn't help, because the questions it can answer were fixed when it was designed. A Genie Agent over the same curated sales tables lets the manager type the question and get an answer backed by SQL in a few seconds. The dashboard is the right tool for the questions you can plan for. The Genie Agent covers the follow-up questions you can't.
The Genie name also appears on two other products, so keep them apart. Genie One is a single chat interface for business users across data assets, dashboards and apps. Genie Code is an AI assistant that helps developers write code, pipelines and dashboards. A Genie Agent covers one domain and is curated by an analyst.
Under the hood, a Genie Agent is a compound AI system: several components work together to understand the question and build the answer, instead of one large language model doing everything. This is why the curated parts of an agent (metadata, examples, instructions) affect the result so much. Each one feeds a different step of the process.
Checkpoint 1 of 7· Match them up
Several Databricks products sound alike. Match each one to what it is for.
Tap a term, then the definition that fits it.
A Genie Agent covers one domain and is curated by an analyst. Genie One is the chat interface that spans many assets, and Genie Code is for developers. A dashboard answers only the questions its designer planned for, while a Genie Agent also handles follow-up questions nobody planned.
“Business users who want a single chat interface across data assets, dashboards, and apps should use Genie One.”Source: docs.databricks.com
Checkpoint 2 of 7· Exam question
A retail analytics team has built an AI/BI dashboard that shows weekly sales by region, but store managers keep asking follow-up questions that the fixed dashboard filters cannot answer, such as comparing arbitrary product bundles across custom date ranges. Which capability should the team introduce to let managers explore the underlying data conversationally instead of waiting for a new dashboard widget?
Correct answer: B — An AI/BI Genie space configured over the curated sales tables, so managers can type natural-language questions and get on-demand SQL-backed answers beyond the dashboard's fixed filters.
- A. Adding another dashboard tab with preconfigured charts still only covers the specific bundle and date-range combinations someone anticipated when building it, not the arbitrary new questions a conversational interface can handle.
- B. This is correct because a Genie space lets business users ask ad hoc natural-language questions over curated Unity Catalog data and receive generated SQL answers, which is exactly the open-ended exploration a fixed dashboard cannot provide.
- C. A faster refresh schedule changes how current the data is, not how flexibly users can query it, so it does not address the need for ad hoc, unanticipated questions.
- D. An external share link only changes who can view the same fixed charts; it does not add any new exploratory or conversational query capability.
2.How a question becomes SQL and an answer
Genie first works out what is being asked. It parses the question, finds the data sources that are relevant, and decides how to respond. To fill in both the business meaning and the technical details, it combines what the authors wrote with Unity Catalog comments, metadata, and sample values from selected columns. It doesn't send everything it knows to the model. It filters example SQL queries, table and column metadata, and the chat history down to the context that matters for this request.
Next comes text-to-SQL, done with chain-of-thought reasoning in three steps:
- Identify the relevant columns and instructions.
- Plan how to build the SQL.
- Combine the parts into a single query.
Breaking the work into steps lets Genie pick exact filter conditions and handle detailed questions, such as a specific date range or one sales channel.
The query then runs on the agent's SQL warehouse. That warehouse is the compute that executes Genie's SQL, so every Genie Agent needs one: a pro or serverless SQL warehouse, with serverless recommended for best performance. No notebook runs on an all-purpose cluster, no separate model serving endpoint executes the query, and no scheduled job computes answers in advance. The generated query is always read-only. Genie handles retries automatically, and the warehouse handles concurrency and scale. Genie then returns the generated query and the results table, and can draw a visualization from the results. For what a warehouse does during query execution in general, see SQL warehouses.
When an author saves a warehouse choice, their compute credentials are stored in the agent so every user can reach that warehouse. Those credentials cover the warehouse and nothing else. Data access is always checked against each end user's own Unity Catalog permissions, so two users asking the same question can get different results if they have access to different rows or tables.
Sometimes Genie doesn't have enough to go on. If you ask "How many customers churned in the past year?", it may need to know how churn is defined. Genie can then ask a clarifying question, or say that it can't answer with the information it has. Anything the user explains, such as a definition, a relationship or a piece of jargon, is used for the rest of that thread. Context does not carry over to other chats, and if a thread gets long enough to hit token limits, its oldest parts are dropped. Genie is also non-deterministic: asking the same question twice can produce different output.
Checkpoint 3 of 7· Check yourself
An analyst who can read every regional sales table creates a Genie Agent and saves a serverless SQL warehouse as its default. A sales rep whose Unity Catalog permissions cover only EMEA rows asks the agent for total sales by region. What does the rep get back?
The author's saved credentials only give users access to the warehouse. Every query is still checked against the end user's own Unity Catalog permissions, so the rep sees only the EMEA data they are allowed to read.
“These embedded credentials grant access to the warehouse only. Data access is always evaluated using each end user's own Unity Catalog permissions.”Source: docs.databricks.com
Checkpoint 4 of 7· Exam question
A data analyst is setting up a new Genie space for the finance team and needs to define the compute that will actually execute the SQL Genie generates when it answers a question. Which component must the analyst configure as part of the Genie space setup to satisfy this requirement?
Correct answer: D — A SQL warehouse assigned to the Genie space, since Genie compiles natural-language questions into SQL that must run on a warehouse before an answer is returned.
- A. Genie answers questions by generating and running SQL against live data on demand, not by relying on a scheduled batch job that precomputes answers ahead of time.
- B. Genie spaces are built on Databricks SQL and execute generated SQL statements, not notebooks on an interactive all-purpose cluster, so a cluster policy is not the compute that answers questions.
- C. There is no separate model serving endpoint that generated SQL is routed through for scoring; the SQL warehouse assigned to the space is what executes the query and returns results.
- D. This is correct because a Genie space must be associated with a SQL warehouse, and that warehouse is the compute that runs the SQL Genie generates in response to each natural-language question.
3.What a Genie Agent cannot answer
A Genie Agent can only work with the data attached to it. If a table isn't attached, Genie won't query it or suggest queries that use it, even when the instructions mention it. Even with a table attached, some details aren't included by default, such as the table's owner and size. Questions like "who owns this table?" need views from the information schema.
In Chat mode, Genie works only with structured data. It can't answer questions about PDFs, Word documents or other files. Agent mode is a separate multi-step reasoning mode. It can read unstructured files stored in Unity Catalog volumes (in Beta), and it splits complex questions into sub-tasks that run several queries and produce a report.
The most important limit is the type of question. Genie finds and computes facts that are in the data. It doesn't interpret the results or make recommendations. "What were the sales this quarter?" is a data question, so Genie can answer it. "Why were sales low this quarter?" asks for an explanation. "How can I improve my marketing strategy?" asks for advice. Neither of those is a query over rows, so Chat mode can't answer them. Users get the best results by asking specific questions that the data can answer.
| Genie can answer | Genie cannot answer | Why the second one fails |
|---|---|---|
| What were the sales this quarter? | Why were sales low this quarter? | Asks Genie to interpret results |
| Which customers generated the most revenue? | How can I get more revenue from Customer M? | Asks for a recommendation |
| Which sales representatives generated the most revenue? | What incentives should I offer my sales team to generate more revenue? | Asks for advice, not a fact in the data |
| Which sales regions generated the most profit? | What are the best sales regions? | "Best" isn't defined by any column |
Checkpoint 5 of 7· Check yourself
A marketing lead opens a Genie Agent in Chat mode. The agent is built over campaign performance tables. Of these four questions, which one can Genie actually answer?
Genie finds and computes facts that are in the data, such as ranking campaigns by a conversion rate. Asking why something happened needs interpretation, and asking what to change needs a recommendation. "Best" isn't defined by any column. Chat mode can't answer any of those three.
“However, it does not interpret query results or offer recommendations.”Source: docs.databricks.com
4.The components of a Genie Agent and how each shapes answers
A Genie Agent has five parts: curated data, a warehouse, a knowledge store with its instructions and examples, settings, and the chat interface. Each one changes what Genie can understand or what users see. How to build each part belongs to creating a Genie Agent. This section covers what each part contributes to an answer.
Curated data is the foundation. Everything a Genie Agent uses must be registered in Unity Catalog: managed, external or foreign tables, views, metric views, or materialized views. Each agent can hold up to 50 tables, views or metric views, and that limit reflects how the product is meant to be used. The recommended approach is a small, focused set of datasets for one team's questions, not every catalog the author can see. Clear table and column descriptions in Unity Catalog are critical for accuracy. Authors should also resolve ambiguous columns and simplify the data with views or metric views that pre-join or denormalize tables. That is advice about clarity, not a technical limit. Genie can join tables using primary and foreign key relationships and the join relationships defined in the agent. It doesn't clean raw data before writing SQL either, so messy bronze-layer tables give it nothing reliable to work from.
The SQL warehouse runs every query Genie generates, as described above. The knowledge store is a set of curated definitions that belong to this agent only: its own table and column descriptions, synonyms, join relationships, SQL expressions for measures, filters and dimensions, and prompt matching. Prompt matching helps Genie link a user's words to the right column values and fix spelling mistakes. None of these changes touch Unity Catalog metadata, so an author can rewrite a column description for one agent without affecting other users of that table.
Three further components teach Genie how to answer:
- Instructions are plain-text notes that apply to every question, such as when the fiscal year starts or how to round numbers. Genie works best with a small, focused set of instructions.
- Example SQL queries are reference answers to common questions. Genie picks the relevant ones and either uses them as written or learns from them to answer similar questions.
- Trusted assets are parameterized example queries and Unity Catalog SQL functions whose logic an author has checked. When Genie uses one, the answer comes from that checked logic. Genie can call a SQL function but can't read or change the SQL inside it.
Benchmarks are often mistaken for a component that teaches Genie. They are sets of test questions for measuring accuracy, and Genie never uses them as context when it answers (see benchmarks and monitoring). Finally, settings control how users find and start using the agent: a title shown in the workspace browser, a description written in Markdown, a thumbnail, tags, the default warehouse, and common questions. Questions the author writes appear first on the chat landing page, and Genie fills any empty slots with questions it generates.
| Component | What it gives Genie |
|---|---|
| Unity Catalog table metadata | Table names, descriptions and defined PK/FK relationships, used to turn prompts into SQL |
| Column names and descriptions | Filtered down to the columns relevant to the question |
| Knowledge store context | Metadata specific to the agent, including column values; Unity Catalog metadata is left unchanged |
| Example SQL queries | Relevant SQL examples Genie picks from the agent's query library |
| SQL functions | All SQL functions added to the agent |
| Instructions | Plain-text general instructions |
| Prompt and response history | The current chat; the oldest parts are dropped at token limits |
The user interface is what business users actually see. It has five areas:
- A New chat window where users ask questions and read answers.
- Chat history, saved as threads, each keeping its own context.
- A Context panel. Its About tab shows the owner, tags, description and common questions; its Data tab lists the attached tables and their columns; its Instructions tab shows instructions, joins, SQL expressions, and the SQL queries and functions.
- A Share button that creates a link to the agent. Permissions and distribution are covered in sharing Genie Agents.
- Monitoring, opened from the kebab menu, which lists individual interactions. Users can rate responses there or ask someone with higher permissions on the agent to review an answer.
Checkpoint 6 of 7· Match them up
An author is setting up a new Genie Agent for the finance team. Match each component to what it contributes, or doesn't contribute, when Genie answers a question.
Tap a term, then the definition that fits it.
Knowledge store entries, instructions, example SQL and trusted assets all shape how Genie answers. Knowledge store edits stay inside this agent and don't change Unity Catalog metadata. Benchmarks are for evaluation only, so adding benchmark questions and their SQL doesn't teach Genie anything.
“Unlike instructions, benchmarks are for evaluation only. Genie does not use benchmark questions or SQL to improve its context.”Source: docs.databricks.com
Checkpoint 7 of 7· Exam question
During Genie space creation, a data analyst is choosing which Unity Catalog objects to include so that the space stays focused and produces reliable answers for the marketing team. What is the recommended approach to this step?
Correct answer: A — Curate a small, well-understood set of tables and views directly relevant to the marketing team's questions, rather than exposing every catalog the analyst has access to.
- A. This is correct because curating a focused, well-understood set of datasets relevant to the intended audience is the recommended practice, since it reduces ambiguity for Genie and keeps generated SQL accurate and relevant.
- B. Exposing every catalog does not improve accuracy; it increases ambiguity about which tables are relevant to a given question and makes it harder for Genie to generate correct SQL.
- C. Genie's SQL generator can join across multiple curated tables and views, so restricting a space to one denormalized table is unnecessary and limits the questions it can answer well.
- D. Genie does not apply its own cleaning transformations ahead of query generation, so pointing it at unrefined bronze-layer tables would surface raw data quality issues in the answers rather than avoiding them.
Sources
(7)
Every claim above is drawn from one of these pages, quoted as it was written on the date shown.
- 1.https://docs.databricks.com/aws/en/ai-bi/conceptsOfficial docs
“Genie Agents can answer a much broader set of business questions than dashboards, and improve over time through human feedback and data team configuration.”
↩︎ What a Genie Agent is for and where it sits in AI/BI“includes all the conventional BI capabilities for answering a fixed set of business questions”
↩︎ What a Genie Agent is for and where it sits in AI/BI - 2.https://docs.databricks.com/aws/en/genie-agentsOfficial docs
“Genie Agents were formerly known as Genie Spaces.”
↩︎ What a Genie Agent is for and where it sits in AI/BI“Business users who want a single chat interface across data assets, dashboards, and apps should use Genie One.”
↩︎ What a Genie Agent is for and where it sits in AI/BI“domain-specific natural-language chat interface in Databricks where users ask questions of their data and get back SQL queries, results tables, and visualizations”
↩︎ Key concept - 3.
“Instead of using a single large language model, compound AI systems process tasks in AI applications by combining multiple interacting components.”
↩︎ What a Genie Agent is for and where it sits in AI/BI“Genie intelligently filters example SQL queries, table and column metadata, and chat history to select the most relevant context for answering the request.”
↩︎ How a question becomes SQL and an answer“Retries are handled automatically, and the SQL warehouse handles concurrency and scale.”
↩︎ How a question becomes SQL and an answer“If Genie can't generate an answer, it can ask follow-up questions to clarify before providing a response.”
↩︎ How a question becomes SQL and an answer“In Chat mode, Genie works with structured data only.”
↩︎ What a Genie Agent cannot answer“Some table details, such as the owner and table size, are not included by default.”
↩︎ What a Genie Agent cannot answer“Agent mode breaks complex questions into sub-tasks, runs multiple SQL queries, and returns a structured report with findings and visualizations.”
↩︎ What a Genie Agent cannot answer“including managed tables, external tables, foreign tables, views, metric views, and materialized views”
↩︎ The components of a Genie Agent and how each shapes answers“Knowledge store configurations are scoped to the agent and do not affect Unity Catalog metadata.”
↩︎ The components of a Genie Agent and how each shapes answers“Parameterized example queries and SQL functions whose exact logic has been verified by an agent author.”
↩︎ The components of a Genie Agent and how each shapes answers“Knowledge store configurations are scoped to the agent and do not affect Unity Catalog metadata.”
↩︎ Exam trap 3“Unlike instructions, benchmarks are for evaluation only. Genie does not use benchmark questions or SQL to improve its context.”
↩︎ Exam trap 4“In most cases, Genie generates a SQL query that runs on the agent's SQL warehouse. Generated queries are always read-only.”
↩︎ Prediction“Unlike instructions, benchmarks are for evaluation only. Genie does not use benchmark questions or SQL to improve its context.”
↩︎ Checkpoint - 4.
“Supports self-service to address questions beyond the scope of dashboards and reports, without requiring advanced tools or expertise.”
↩︎ What a Genie Agent is for and where it sits in AI/BI“it plans the SQL generation; and finally, it combines the parts into a single query.”
↩︎ How a question becomes SQL and an answer“This context does not carry over to other chats.”
↩︎ How a question becomes SQL and an answer“you might receive different outputs when submitting the same prompt multiple times.”
↩︎ How a question becomes SQL and an answer“However, it does not interpret query results or offer recommendations.”
↩︎ What a Genie Agent cannot answer“Shows individual Genie interactions, not threaded by topic.”
↩︎ The components of a Genie Agent and how each shapes answers“However, it does not interpret query results or offer recommendations.”
↩︎ Exam trap 2 - 5.
“Genie Agents require a pro or serverless SQL warehouse.”
↩︎ How a question becomes SQL and an answer“For optimal performance, Databricks recommends using a serverless SQL warehouse.”
↩︎ How a question becomes SQL and an answer“Genie does not suggest queries on tables that are not added to the agent.”
↩︎ What a Genie Agent cannot answer“You can add up to 50 tables, views, or metric views to a Genie Agent.”
↩︎ The components of a Genie Agent and how each shapes answers“Author-defined common questions take priority and appear first.”
↩︎ The components of a Genie Agent and how each shapes answers“These embedded credentials grant access to the warehouse only. Data access is always evaluated using each end user's own Unity Catalog permissions.”
↩︎ Exam trap 1“These embedded credentials grant access to the warehouse only. Data access is always evaluated using each end user's own Unity Catalog permissions.”
↩︎ Checkpoint“Genie does not query tables or Unity Catalog functions that are not attached, even if the agent's instructions or metadata reference them.”
↩︎ Prediction - 6.
“Resolve column ambiguities and pre-join or de-normalize tables using views or metric views.”
↩︎ The components of a Genie Agent and how each shapes answers“When creating a new agent, start as small as possible, with minimal instructions and a limited set of questions to answer.”
↩︎ The components of a Genie Agent and how each shapes answers“Genie Agents perform best with a limited, focused set of instructions.”
↩︎ The components of a Genie Agent and how each shapes answers - 7.
“Join relationships: Defined table relationships for accurate JOIN statements.”
↩︎ The components of a Genie Agent and how each shapes answers“Genie cannot view or modify the SQL used in the function”
↩︎ The components of a Genie Agent and how each shapes answers