QuestionQ30

VerifiedKnowledge Retrieval and Genie Configuration

A context engineer is preparing to deploy a per-tenant Databricks agent for a SaaS retail analytics platform. Each platform customer is provisioned with their own Unity Catalog catalog, retail_<customer>, and within each tenant catalog, data is organized by business domain rather than by origin.

The sales schema contains the customer’s POS transaction and returns tables, which the customer’s source systems write to throughout the day, alongside the daily_sales_by_store, hourly_revenue_by_category, and top_skus_weekly summary tables that a nightly Lakeflow Jobs pipeline produces by reading those POS tables. The inventory schema contains stock-level and inbound-shipment tables written continuously by ingestion, alongside demand_forecast_7d and reorder_suggestions tables produced by the SaaS’s ML pipelines. The customer schema contains customer master records and contact tables, all populated by ingestion.

The SaaS deploys one agent per customer through Model Serving, and each agent has its own service principal. Before any agent endpoint is registered, the governance requirements are that an agent for a given customer must be able to retrieve data only from that customer’s catalog and never from another customer’s catalog, and that within its own customer’s catalog, the agent must be able to retrieve only from tables populated directly by the customer’s ingestion pipelines, never from nightly summaries, forecasts, or other tables produced by SaaS pipelines.

Which governance approach should the context engineer implement for each tenant’s agent before registration?

Explanation

Granting each agent’s service principal USE CATALOG only on its tenant’s catalog establishes the tenant boundary. USE SCHEMA permits access to the relevant schemas, while table-level SELECT restricts data retrieval to ingestion-fed tables. Schema-level SELECT would also apply to the SaaS-produced tables in those schemas. The service principal must not have broader direct or inherited grants that override these intended restrictions. (docs.databricks.com)

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!