Study guide

10.2 Curation via Instructions, Descriptions & Sample Questions

Databricks Certified Data Analyst Associate Exam

Track your progress as you read

Finished sections get a check mark.

1 Platform Overview & Unity Catalog Foundations

1.1 Databricks Architecture & Compute Concepts 1.2 Databricks Marketplace & Data Sharing Basics 1.3 Unity Catalog Namespace & Object Hierarchy 1.4 Governed Asset Discovery & System Tables

2 Managing & Cleaning Governed Data

2.1 Dataset Discovery & Asset Tagging 2.2 Lineage Inspection & Data Traceability 2.3 SQL Data Cleaning & Transformation Techniques

3 Data Ingestion & Import Patterns

3.1 Workspace Uploads & Cloud File Ingestion 3.2 Incremental File Ingestion with Auto Loader 3.3 Ingesting Data via Delta Sharing & External Connections

4 Databricks SQL Warehouses & Core Querying

4.1 Databricks SQL Interface & SQL Assistant 4.2 SQL Warehouses Sizing & Management 4.3 Table Creation & Data Modification in Databricks SQL

5 Advanced SQL Authoring & Time Travel

5.1 Advanced Aggregations, Window Functions & Analytics 5.2 Complex Joins, CTEs & Set Operations 5.3 Views, Materialized Views & Delta Time Travel

6 Query Performance Analysis & Photon Engine

6.1 Photon Engine Architecture & Acceleration 6.2 Query History & Execution Profile Inspection 6.3 Delta Lake Audit History & Commit Logs

7 Liquid Clustering, Caching & Performance Troubleshooting

7.1 Caching Hierarchy in Databricks SQL 7.2 Data Layout Optimization: Liquid Clustering vs Partitioning & Z-Ordering 7.3 Troubleshooting Slow & Failing Queries

8 AI/BI Dashboards & Visualization Design

8.1 AI/BI Dashboards Overview & Canvas Layout 8.2 Chart Types & Visualization Selection 8.3 Notebook & SQL Editor Visualizations

9 Dashboard Interactivity, Publishing & Alerts

9.1 Dashboard Parameters & Interactive Filtering 9.2 Publishing, Sharing & Access Control 9.3 Scheduled Refresh, Email Subscriptions & Alerts

10 Developing & Maintaining AI/BI Genie Spaces

10.1 AI/BI Genie Architecture & Space Setup 10.2 Curation via Instructions, Descriptions & Sample Questions 10.3 Trusted Assets & Parameterized Functions 10.4 Monitoring, Benchmarks, Feedback & Maintenance

11 Data Modeling & Medallion Architecture

11.1 Dimensional Modeling Fundamentals 11.2 Medallion Architecture for Analytics 11.3 Constraint Enforcement & Relationships in Unity Catalog

12 Securing Data & Unity Catalog Governance

12.1 Unity Catalog Privilege Model & Grants 12.2 Ownership, Inheritance & Access Control Patterns 12.3 Fine-Grained Security: Row Filters & Column Masks

10.2 Curation via Instructions, Descriptions & Sample Questions

Key Takeaways Explain This Topic AI

Space instructions provide domain-specific context, defining business logic, metric formulas, default filters, and acronym definitions for the Genie space.

Unity Catalog table and column comments are automatically ingested by Genie as first-class metadata signals during SQL translation.

Curating 10 to 15 representative sample questions with verified SQL queries improves LLM translation accuracy by providing few-shot context.

Ambiguous metric definitions (such as Active Customer or Gross Revenue) should be explicitly defined in Space Instructions using standard SQL filtering conditions.

Last updated: July 2026

10.2 Curation via Instructions, Descriptions & Sample Questions

While Databricks AI/BI Genie uses advanced LLMs to convert natural language into SQL, raw schema metadata alone is rarely sufficient to handle enterprise business nuances. Business terminology is frequently ambiguous: "revenue" might refer to gross, net, or recognized revenue; "active user" could mean logged in within 30 days or completing a transaction within 7 days. To bridge the semantic gap between end-user questions and database structures, analysts curate Genie spaces using Space Instructions , Unity Catalog Descriptions , and Sample Questions .

The Role of Curation in Conversational Analytics

Curation transforms a raw relational schema into a domain-aware semantic model. Without curation, Genie must guess business logic, which increases the likelihood of hallucinated joins, incorrect aggregation logic, or misaligned filtering criteria. +--------------------------+ +--------------------------+ +--------------------------+

  • | Space Instructions | | Unity Catalog Metadata | | Sample Questions |
  • | - Metric Definitions | + | - Table Comments | + | - Verified SQL Queries |
  • | - Default Date Filters | | - Column Descriptions | | - Few-Shot Context |
  • | - Acronym Mappings | | - PK / FK Constraints | | - Pattern Matching |
  • +--------------------------+ +--------------------------+ +--------------------------+
  • |
  • v
  • +-------------------------------+
  • | High-Precision Genie Space |
  • | - Accurate SQL Translation |
  • | - Zero Metric Ambiguity |
  • +-------------------------------+

Proper curation ensures that every user query is interpreted using uniform corporate rules, delivering consistent results across self-service analytics teams.

Authoring Space-Level Instructions

Space Instructions provide global guidance for the entire Genie space. They serve as system-level prompts that dictate how Genie should interpret queries, construct SQL logic, handle edge cases, and default to specific timeframes or filters.

Key Components of Effective Space Instructions

Metric Definitions : Explicit mathematical formulas and SQL logic for calculating KPIs.

Business Acronyms : Translation of organization-specific jargon (e.g., "ARR", "CAC", "Churn").

Default Behavior Rules : Rules governing date ranges, soft-delete filtering, and currency conversion.

Table Routing Rules : Directives specifying which table to query for specific domains (e.g., "For quarterly financial metrics, query main.finance.gold_quarterly_financials "). ### Example Space Instruction Block

- **Active Customer Definition**: Always filter `is_active = TRUE` and `last_login_date >= CURRENT_DATE() - INTERVAL 30 DAYS` when users ask for active customers.

- **Revenue Calculation**: Default to `net_revenue` (which subtracts discounts and refunds) unless the user explicitly asks for `gross_revenue`.

- **Fiscal Calendar**: Our fiscal year starts on February 1st. Q1 is Feb-Apr, Q2 is May-Jul, Q3 is Aug-Oct, Q4 is Nov-Jan. Use `CASE` statements or `fiscal_quarter` columns in `dim_date`.

- **Currency Standard**: All monetary values are stored in USD. Do not apply currency conversion unless requested.

- **Default Timeframe**: If no date range or period is specified in the question, default to the current calendar year (`order_date >= DATE_TRUNC('year', CURRENT_DATE())`).

Instructing Genie with clear bulleted points avoids ambiguous conversational prose and ensures deterministic application of business logic during SQL generation.

Enhancing Metadata with Unity Catalog Descriptions

Genie dynamically reads table and column comments directly from Unity Catalog . Comprehensive catalog-level documentation provides localized context at the exact moment Genie maps user terminology to database attributes.

Analysts should use COMMENT ON statements in Databricks SQL to document tables, views, and individual columns: -- Adding clear business descriptions to Unity Catalog tables and columns

COMMENT ON TABLE main.sales_gold.fact_orders IS

'Primary transactional table recording all online and retail customer orders. Contains line-item revenue, tax, and discount details.';

COMMENT ON COLUMN main.sales_gold.fact_orders.net_amount IS

'Net order revenue in USD, calculated as gross_amount - discount_amount + tax_amount. Use this column for standard revenue reporting.';

COMMENT ON COLUMN main.sales_gold.fact_orders.order_status IS

'Lifecycle status of order. Allowed values: PENDING, SHIPPED, COMPLETED, CANCELLED, REFUNDED. Filter by COMPLETED for realized revenue.';

When writing descriptions:

Specify valid enumerated values for categorical columns (e.g., 'COMPLETED' , 'REFUNDED' ).

Clarify measurement units (e.g., milliseconds , USD , kilograms ).

Call out special handling rules (e.g., "Contains NULL for guest checkout accounts").

Curating Effective Sample Questions

Sample Questions are paired natural language queries and verified SQL statements saved directly within the Genie space. They serve two vital functions:

User Guidance : They appear in the Genie user interface to show business users what questions the space can answer.

Few-Shot Prompting : They act as high-priority exemplars for the underlying LLM. When a user submits a prompt, Genie searches sample questions for structural and semantic similarities, using verified SQL patterns as templates for new query generation. -- Sample Question 1: "Show top 5 customers by revenue in 2025"

-- Verified SQL Expression:

  • SELECT
  • c.customer_name,
  • SUM(o.net_amount) AS total_revenue
  • FROM main.sales_gold.fact_orders o
  • JOIN main.sales_gold.dim_customers c ON o.customer_id = c.customer_id
  • WHERE o.order_date >= '2025-01-01' AND o.order_date < '2026-01-01'
  • AND o.order_status = 'COMPLETED'
  • GROUP BY c.customer_name
  • ORDER BY total_revenue DESC
  • LIMIT 5;

To maximize sample question effectiveness:

Cover Diverse Query Patterns : Include examples covering aggregations, multi-table joins, subqueries, window functions, and date arithmetic.

Keep SQL Clean and ANSI-Compliant : Ensure sample queries use standard Databricks SQL syntax and explicit alias naming.

Maintain 10-15 Core Questions : Focus on high-frequency, complex analytical queries rather than trivial single-table selects.

Resolving Terminology Ambiguity & Edge Cases

When users ask questions with competing or overlapping business meanings, space instructions must establish clear precedence:

User Term Potential Ambiguity Curated Instruction Solution

"Sales" Booking revenue vs. Cash collection vs. Shipped orders "Interpret 'Sales' as completed net order revenue from fact_orders where status = 'COMPLETED'."

"Churn Rate" Logo churn (customers) vs. Revenue churn (ARR) "Default 'Churn Rate' to customer logo churn. If ARR loss is mentioned, calculate revenue churn."

"New Customers" First purchase ever vs. First purchase in current fiscal year "Filter first_order_date within the specified window to identify new customers."