Cert EspressoLearn. Practise. Find your flow.

A LITTLE FOCUS.
A BIG NEXT STEP.

Your pace. Your space.
Databricks · Databricks Context Engineer Associate

Unity Catalog Metadata and Genie Curation

Databricks Context Engineer Associate · Lesson 6 of 18 · 42:10

YouTube loads only after you press play. This chapter opens at its timestamp in the full course. Watch on YouTube ↗

Learning with these videos? Subscribe for new courses and exam-style questions.

In this lesson

Prepare for the Databricks Certified Context Engineer Associate exam. In this lesson: the Unity Catalog metadata that agents read (names, column descriptions, tags, certification, metric views), finding the element behind an accuracy gap, which objects to curate into a Genie Agent (tables, views, metric views, parameterized queries, SQL functions), and joins, synonyms, and entity matching. Includes three original practice questions.

Study notes

The text of this lesson, to read at your own pace. Information as of November 2026.

Right data, wrong answers

Thistledown's maintenance analysts now have their own Genie Agent, over the work order tables. It counts open requests wrong, because the status column holds codes from one to five that nobody ever described. This lesson shows which Unity Catalog metadata agents rely on, how to find the element behind an accuracy gap, and what to curate into a Genie Agent.

Metadata that agents read

Agents that query data read its metadata first, so in Unity Catalog, metadata is context. Table and column names, and their comments, tell the agent what each field means, and when to use it. Precise column descriptions beat long ones: say what a status code means, which unit an amount uses, and which date a row refers to. Descriptions that the AI generates for you are a good start, but review them before you trust them. Tags and certification add signals about sensitivity and trust, and metric views define measures and dimensions once, for every consumer.

Finding the accuracy gap

To find the gap, start from failing questions, and read the SQL the agent wrote for each one. Look for the column it picked by mistake, a name that is ambiguous, like amount next to amount due, a join it guessed, or a business word with no synonym. Then fix the element that most failing questions share, since one good description can repair dozens of answers. Finally, rerun the benchmark questions, to confirm the gain and catch regressions.

Which objects to curate

A Genie Agent should only see objects that answer its audience's questions. Managed tables with clear names and descriptions are the base, and views can prejoin tables and hide confusing columns. Metric views define governed measures, like occupancy rate, with their dimensions, so every answer uses the same logic. Parameterized queries give verified answers to frequent questions, and SQL functions capture logic too complex for a single query. And staging tables, raw ingestion tables, and repeated copies stay out, since they invite wrong choices.

Joins and synonyms

Join relationships defined in the agent's knowledge store tell Genie exactly how tables connect, instead of letting it guess. Synonyms map the words people use, like flat or unit, to the columns that hold them. Hiding repeated or confusing columns keeps Genie focused on the right ones. And entity matching lists the distinct values of categorical columns, so a building name typed by a user matches the stored value.

Recap

Let's recap. In Unity Catalog, metadata is context: names, precise descriptions, tags, and certification. Review descriptions that the AI generates before trusting them. Find accuracy gaps from the SQL of failing questions, and fix the element they share. Curate managed tables, views, metric views, parameterized queries, and functions, and keep raw and staging tables out. And define joins and synonyms, so Genie does not have to guess.

Quick checks for this lesson

The 3 questions of this lesson, as plain text. The button above runs them with shuffled choices and the reason behind every choice.

  1. Genie counts open work orders wrong, because status holds codes 1 to 5 with no description. Which change has the highest impact?

    • Add more work order tables to the agent
    • Add one text instruction per failing question
    • Turn on extended thinking
    • Describe the status codes in the column metadata
    Show the answer

    Describe the status codes in the column metadata

    Describe the status codes in the column's metadata, so every question that touches status is interpreted correctly. “Add more work order tables to the agent” is wrong, since more tables add noise, and leave the codes unexplained. “Add one text instruction per failing question” is wrong, since one instruction per question does not scale, and misses new questions. And “Turn on extended thinking” is wrong, since more reasoning cannot guess what an undocumented code means.

  2. Analysts often ask about vacancy days: several steps of date logic across tables, also needed by other teams. Which object should the author curate?

    • The raw staging table of lease events
    • A SQL function in Unity Catalog
    • A text instruction that explains vacancy days
    • A sample question about vacancy days
    Show the answer

    A SQL function in Unity Catalog

    A SQL function in Unity Catalog captures multi step logic, can be shared across teams, and can serve as a trusted asset. “The raw staging table of lease events” is wrong, since a raw staging table leaves Genie to rebuild the logic every time. “A text instruction that explains vacancy days” is wrong, since prose is the least reliable way to define complex logic. And “A sample question about vacancy days” is wrong, since a sample question shows what to ask, not how to compute it.

  3. Genie joins leases to units on the unit number, which repeats across buildings, so rent totals come out too high. What should the author do?

    • Add a text instruction to be careful with joins
    • Remove the units table from the agent
    • Define the join on the unit ID in the knowledge store
    • Add a sample question about rent totals
    Show the answer

    Define the join on the unit ID in the knowledge store

    Define the join relationship on the unit ID in the knowledge store, so Genie stops guessing. “Add a text instruction to be careful with joins” is wrong, since a general warning about joins does not say which key to use. “Remove the units table from the agent” is wrong, since removing the units table breaks every question that needs it. And “Add a sample question about rent totals” is wrong, since a sample question does not change how Genie joins the tables.