CertSafari
    Databricks Certified Data Analyst Associate· Lessons

    Domain 7 · Lesson 34/39

    Optimizing Genie spaces with monitoring, feedback, benchmarks and metadata

    Optimize AI/BI Genie Agents (Genie spaces) by tracking user questions, response accuracy, and feedback; updating instructions and trusted assets based on stakeholder input; validating accuracy with benchmarks; refreshing Unity Catalog metadata.

    18 min read
    3% of exam
    6 sources
    Published 22 Oct 2026
    Docs as of 17 Oct 2026

    What you will be able to do

    • Use the Monitor tab to find which questions a Genie space answered poorly, and say what audit logs add
    • Explain what user feedback (Yes, Fix it, Request review) does and does not change
    • Pick the right fix for a wrong answer: a general instruction, a corrected example query, or a trusted asset
    • Build and run a benchmark set, and read its accuracy results after each change
    • Keep Unity Catalog table and column comments current, and refresh the space-level metadata that Genie reads

    Key concept

    Genie space as a living asset — A Genie space is never finished on launch day. The curator keeps reading what users asked and how Genie answered, fixes the context behind the weak answers, and re-measures accuracy, so the space improves with each round.

    1.Finding weak answers on the Monitor tab

    A Genie space gets better only when its curator can see which questions it answered badly. Users ask in their own words, and Genie interprets each question against the space's tables, instructions and examples. When an interpretation goes wrong, the only record of it sits inside the space. The current Databricks documentation calls these spaces Genie Agents, but the product and its tabs work the same way.

    Start with the Monitor tab. It lists every question asked in the space next to Genie's response. You can filter by time, rating, user or status, and you can open any question to read the whole chat thread. For a response that ran SQL, Show code displays the query Genie generated, so you can check the question, the SQL and the user's feedback together. Some exam items call this per-space log the space's History page. It is the same record of questions, generated SQL and feedback. Opening the tab requires at least CAN MANAGE on the space.

    Two more views live on the same tab. The Weekly digest shows message volume, active users and thumbs-up/down counts. Analyze Agent Usage opens Genie Code, which reads the last six months of messages and feedback, then reports common topics, recurring issues and suggested context improvements, with citations back to the conversations involved. Visibility depends on each conversation's sharing setting. A manager can open the full exchange of a conversation set to Reviewable by agent managers. For a Private conversation, the manager sees only the user's prompts.

    Workspace admins can also track feedback across all spaces through the audit log system table. Rows with service_name = 'aibiGenie' record feedback ratings (updateConversationMessageFeedback) and review comments (createConversationMessageComment). You can save such a query and put an alert on it. The audit log tells you that feedback was given and by whom, but it does not show the question text next to the SQL Genie generated. Warehouse query history has a similar gap: it lists every statement run on the warehouse, with no link to the question or the rating. The Monitor tab is the place to start.

    Audit-log query: Genie feedback ratings from the past 30 dayssql
    SELECT
      user_identity.email as user_email,
      action_name,
      request_params.space_id,
      request_params.feedback_rating,
      *
    FROM
      system.access.audit
    WHERE
      service_name = 'aibiGenie'
      AND action_name = 'updateConversationMessageFeedback'
      AND event_date >= current_date() - interval 30 days

    Checkpoint 1 of 9· Check yourself

    Users of a sales Genie space say some answers about pipeline totals look wrong. The curator wants to read each of those questions next to the SQL Genie generated and the rating the user gave. Where should they start?

    Checkpoint 2 of 9· Fill the gap

    A workspace admin wants an alert on the feedback ratings users submitted across all Genie spaces. Which action name completes this audit-log query?

    SELECT
      user_identity.email as user_email,
      action_name,
      request_params.space_id,
      request_params.feedback_rating,
      *
    FROM
      system.access.audit
    WHERE
      service_name = 'aibiGenie'
      AND action_name = ' ? '
      AND event_date >= current_date() - interval 30 days

    Checkpoint 3 of 9· Exam question

    A Genie space for the operations team has been live for a month. The data analyst who curates the space wants to find which user questions Genie interpreted poorly, so instructions can be improved where they matter most. What should the analyst check first?

    Sources12

    2.What user feedback does and does not change

    Under every response, Genie asks the user Is this correct? There are three possible answers:

    • Yes confirms that the response looks accurate.
    • Fix it marks the response as incorrect. The user picks a common issue or writes an explanation, then either submits the feedback alone or submits it and asks Genie to try again.
    • Request review sends the response for manual review, with an optional comment. The user can follow the status of the request on their own Monitor page.

    Feedback is a signal, not a fix. A Fix it flag makes no change to the space. It tells the curator where Genie went wrong. Users with at least CAN MANAGE can open a flagged exchange, comment on it, and confirm or correct the response, and the user who asked can see that resolution. A permanent fix comes from the curator changing the space's context, which the next section covers. Feedback is also more useful the more of it you get. Encourage testers to upvote correct final answers, downvote wrong ones, and send unresolved questions to the space's authors.

    Checkpoint 4 of 9· Check yourself

    A business user picks Fix it on a wrong answer, types what was wrong, and clicks Submit and try again. Genie returns a new answer. What has this done to the Genie space itself?

    Sources134

    3.Turning a wrong answer into an instruction, example or trusted asset

    You fix a wrong answer by choosing the right layer of context for it. A Genie space has two kinds of curated guidance. Genie instructions and example SQL are general text rules plus question-and-SQL pairs that Genie learns from. Trusted assets are parameterized example queries and Unity Catalog SQL functions that produce verified answers. When a problem shows up in monitoring or comes from a stakeholder, the question is which layer it belongs in.

    A business definition that must hold in every question belongs in the general instructions. Suppose a finance director reports that "net revenue" answers always ignore returns and refunds, and the mistake shows up across many differently worded questions. No single example query can cover every way users phrase that question. General text instructions apply to all prompts, which is why company-specific facts such as a February fiscal-year start go there. So add the definition of net revenue, minus returns and refunds, to the general instructions. Other moves fail for clear reasons. A benchmark question only measures the problem. Renaming a Unity Catalog column does not tell Genie what to subtract. The knowledge store can also hold an exact formula as a SQL measure, but the guidance that must reach every prompt is the general instruction.

    A recurring question with known correct SQL belongs in an example query. Suppose monitoring shows users asking about churned customers in many different ways, and Genie sometimes picks the wrong join or filter. The team already knows the right SQL. Open the response, click Show code, correct the SQL, run it, and click Add as instruction. That opens the example-query editor with the question and SQL already filled in. Add a parameter, such as a date or a region, and the query becomes a trusted asset. When Genie uses its exact text in chat mode, the answer is marked as verified. Pasting the SQL into the general instruction text is the wrong move, because text instructions are not meant to carry query patterns that SQL can express.

    Matching what monitoring shows to the fix
    What you seeFixWhy this layer
    A business term misread across many phrasingsState the definition in the general instructionsGeneral text instructions apply to all prompts
    One frequent question, with SQL the team has checked, gets wrong joins or filtersCorrect the SQL, then Add as instruction; parameterize it as a trusted assetGenie can use the vetted query directly and return a verified answer
    A user explains a new term or correction in chatAsk Genie Code to capture what it learned, then review its suggestionsGenie Code proposes context changes and you accept the ones you want

    Permissions limit who can do each step. Editing the generated SQL and saving it as an instruction requires CAN EDIT or higher on the space. Adding or removing trusted assets also requires at least CAN EDIT. For a trusted asset that is a SQL function, every user of the space needs EXECUTE on that function.

    Checkpoint 5 of 9· Match them up

    Match each problem found while reviewing a Genie space to the fix that belongs to it.

    Tap a term, then the definition that fits it.

    Checkpoint 6 of 9· Exam question

    Reviewing recent Genie activity, an analyst notices that several users keep phrasing the same request about churned customers differently, and Genie sometimes drafts SQL with the wrong join or filter for it. The underlying question and correct SQL are well understood by the team. What is the most effective fix?

    Checkpoint 7 of 9· Exam question

    The finance director tells the Genie space owner that Genie's answers about "net revenue" consistently ignore returns and refunds, because analysts on the team have always defined that term to exclude them. This confusion shows up across many differently worded questions. What should the space owner update?

    Sources413

    4.Validating changes with benchmarks

    A benchmark is a fixed set of test questions that you run to score a Genie space's overall accuracy. Every change in the previous section can repair one answer and quietly break another. Running the same set before and after each change shows whether the space improved or regressed. A good set covers the questions users ask most often. You can build it from questions you have already reviewed: on any response, the kebab menu offers Add as benchmark. A space can hold up to 500 benchmark questions, which leaves room to add several phrasings of the same question.

    Each benchmark question runs as a brand-new query against the space's current instructions, example SQL and SQL functions. That is why a benchmark run measures the configuration you just changed. You choose the scoring mode when you run the benchmarks, not when you add a question, using the toggle on the Benchmarks tab.

    Benchmark run modes
    ModeHow a response is gradedWhat it needs from you
    Chat mode (default)Genie compares the results of its generated SQL against a provided SQL answerA SQL answer for each question; questions without one are marked for review
    Agent modeRuns with Agent mode's multi-step reasoning; an LLM judge grades each responseAn optional evaluation note to guide the grading

    Results appear on the Evaluations tab, one row per run. Each row shows the run's timestamp, its execution status (completed, paused or unsuccessful), who ran it, and an Accuracy score across all benchmark questions. A run that includes questions without a SQL answer stays marked for review, and its accuracy score appears only after someone reviews those questions. Click a timestamp to go through the run one question at a time, comparing the Model output with the Ground truth. Each answer rated Bad comes with an explanation of how it differs from the ground truth, and you can change any assessment by hand. These per-response details are kept for one week, so review a run soon after it finishes.

    Checkpoint 8 of 9· Check yourself

    After adding a corrected example query for churn questions, a curator worries that the change fixed one answer but broke others. What gives them a direct measure of whether the space as a whole improved or regressed?

    Sources15

    5.Keeping Unity Catalog comments current as Genie context

    Genie reads Unity Catalog metadata to understand what the data means. It uses column names and descriptions to write its SQL, and a table's default description in the space is the table's Unity Catalog comment. If a comment is stale or vague, every question that touches that table starts from a wrong premise, and the problem shows up in monitoring as a vague pattern of wrong answers. So when a column's meaning changes or a confusing name appears, update the comment in Unity Catalog where the data is defined. If you use AI-generated descriptions, check them first and keep only those you would have written yourself.

    Space-level metadata is separate from Unity Catalog. Under Configure > Sources, you can edit a table description or add column descriptions and synonyms for this space alone. These edits never write back to Unity Catalog, so other spaces and tools never see them. Because of this, you need to know which copy Genie is using. If you edited a description in the space and later improved the comment in Unity Catalog, the space keeps showing your local text. Click Reset to go back to the Unity Catalog description.

    Three other kinds of metadata go stale on their own schedules:

    • Column values. When new values are added to a column, or the format of existing values changes, open the column view's kebab menu and click Refresh prompt matching. Otherwise Genie may filter for "California" when the table stores "CA".
    • Keys. Genie analyzes the Unity Catalog metadata of the space's tables and saves declared primary and foreign keys as join relationships automatically. If those keys are missing, Genie may not know how to join the tables.
    • Joins it can't infer. When you can't define the constraint in Unity Catalog, for example without permission on the table, define the join relationship in the space's knowledge store instead.

    Checkpoint 9 of 9· Match them up

    A curator finds four metadata problems behind wrong answers in a Genie space. Pair each problem with the fix that addresses it.

    Tap a term, then the definition that fits it.

    Sources346

    Sources

    (6)

    Every claim above is drawn from one of these pages, quoted as it was written on the date shown.

    1. 1.
      “The monitor tab shows all of the questions and answers that have been asked in the agent.”
      ↩︎ Finding weak answers on the Monitor tab
      “You can filter questions by time, rating, user, or status.”
      ↩︎ Finding weak answers on the Monitor tab
      “Click Show code to view the generated query. This can be useful for troubleshooting unreliable responses.”
      ↩︎ Finding weak answers on the Monitor tab
      “reviews the user messages, feedback, and issues from the last six months”
      ↩︎ Finding weak answers on the Monitor tab
      “For conversations set to Private, agent managers can see user prompts in the monitoring tab but cannot view the full conversation or results.”
      ↩︎ Finding weak answers on the Monitor tab
      “Genie Agents were formerly known as Genie Spaces.”
      ↩︎ Finding weak answers on the Monitor tab
      “Fix it: Flags the response as incorrect.”
      ↩︎ What user feedback does and does not change
      “Request review: Flags the response for manual review.”
      ↩︎ What user feedback does and does not change
      “Your Genie Agent's behavior does not change based on user feedback alone.”
      ↩︎ What user feedback does and does not change
      “This opens the UI for saving example SQL queries, populated with the question and generated SQL.”
      ↩︎ Turning a wrong answer into an instruction, example or trusted asset
      “You can edit the generated SQL statement to correct it if you have CAN EDIT or greater privileges on the Genie Agent.”
      ↩︎ Turning a wrong answer into an instruction, example or trusted asset
      “Each Genie Agent can contain up to 500 benchmark questions.”
      ↩︎ Validating changes with benchmarks
      “Chat mode: The default mode. Genie assesses accuracy by comparing its SQL-generated results against a provided SQL answer.”
      ↩︎ Validating changes with benchmarks
      “You select the mode when you run benchmarks, not when you add a question.”
      ↩︎ Validating changes with benchmarks
      “For evaluation runs that require manual review, an accuracy measure appears only after those questions have been reviewed.”
      ↩︎ Validating changes with benchmarks
      “The results of these responses appear in the evaluation details for one week.”
      ↩︎ Validating changes with benchmarks
      “It accumulates knowledge over time rather than serving as a one-time deployment.”
      ↩︎ Key concept
      “Your Genie Agent's behavior does not change based on user feedback alone.”
      ↩︎ Exam trap 1
      “Benchmark questions run as new conversations. They do not carry the same context as a threaded Genie conversation.”
      ↩︎ Exam trap 3
      “Benchmark questions run as new conversations. They do not carry the same context as a threaded Genie conversation.”
      ↩︎ Prediction
    2. 2.
      “Monitor Genie Agent usage and user feedback with Databricks audit logs and create alerts on agent activity.”
      ↩︎ Finding weak answers on the Monitor tab
    3. 3.
      “Authors and editors can use feedback to refine instructions, examples, and trusted assets.”
      ↩︎ What user feedback does and does not change
      “Avoid using text instructions to define metrics, filters, or query patterns that can be expressed through SQL.”
      ↩︎ Turning a wrong answer into an instruction, example or trusted asset
      “Genie uses Unity Catalog column names and descriptions to generate responses.”
      ↩︎ Keeping Unity Catalog comments current as Genie context
      “Quality table and column descriptions in Unity Catalog are critical for Genie accuracy.”
      ↩︎ Keeping Unity Catalog comments current as Genie context
      “Avoid using text instructions to define metrics, filters, or query patterns that can be expressed through SQL.”
      ↩︎ Exam trap 2
      “you can add it as a benchmark question that you can use to test and score your agent for overall accuracy systematically”
      ↩︎ Checkpoint
    4. 4.
      “When an author thumbs-up a response or downloads query results, Genie analyzes the query.”
      ↩︎ What user feedback does and does not change
      “General text instructions apply to all prompts.”
      ↩︎ Turning a wrong answer into an instruction, example or trusted asset
      “In chat mode, when the exact text of a parameterized query is used in a response, Genie provides a verified answer.”
      ↩︎ Turning a wrong answer into an instruction, example or trusted asset
      “Users with at least CAN EDIT permission on a Genie Agent can add or remove trusted assets.”
      ↩︎ Turning a wrong answer into an instruction, example or trusted asset
      “Click Reset to restore the Unity Catalog description.”
      ↩︎ Keeping Unity Catalog comments current as Genie context
      “To refresh prompt matching data, click the kebab menu in the column view, then Refresh prompt matching.”
      ↩︎ Keeping Unity Catalog comments current as Genie context
      “Primary and foreign keys defined in your schema are automatically saved as join relationships in the Genie Agent.”
      ↩︎ Keeping Unity Catalog comments current as Genie context
      “All knowledge store configurations are scoped to your Genie Agent and do not affect Unity Catalog metadata or other Databricks assets.”
      ↩︎ Exam trap 4
      “If an instruction is relevant only to a subset of prompts, it should be included as an example query or function”
      ↩︎ Checkpoint
    5. 6.
      “If foreign key references are not defined in Unity Catalog, your agent might not know how to join different tables together.”
      ↩︎ Keeping Unity Catalog comments current as Genie context

    Spotted a mistake, or was something unclear? Tell us.