An exposure declares a downstream artifact that depends on the dbt project. The artifact lives outside dbt: a Tableau dashboard, a Looker explore, a Hex notebook, a feature store table consumed by a model server, an internal application that queries the warehouse directly, or a scheduled email report. dbt has no execution control over that artifact; what dbt has is a typed YAML node that names the artifact, links it to one or more dbt nodes through depends_on, surfaces it in the documentation catalog with an owner and a maturity, and registers it in the DAG so that +exposure:<name> selects every upstream node that the artifact reads.
The problem an exposure solves is the silent break. Without an exposure declaration, a model rename, a contract change, or a column drop produces a green dbt build because the downstream artifact is invisible to dbt. The dashboard breaks at refresh time, the alert fires at the BI tool, and the analytics engineer who shipped the change finds out from a Slack message. With an exposure, the downstream artifact is a node in the documentation graph, the column-level lineage view in dbt Explorer (dbt Cloud) or dbt docs serve (dbt Core) shows the path from the exposure to the underlying staging models, and CI workflows that use state:modified+ selectors will reveal which exposures are affected by the proposed change. The exposure does not block the merge; it informs the reviewer. That distinction matters: an exposure is documentation plus a graph hook, not an enforcement contract.
Exposures are declared in the exposures: block of any YAML file under the models/ tree (or wherever dbt_project.yml says exposures live). The schema for each exposure entry includes a name that follows the same identifier rules as a model, a type drawn from a fixed enumeration (dashboard, notebook, analysis, ml, application), a maturity from high, medium, low, an owner block with name and email, an optional url that points at the downstream artifact, an optional label for the human-friendly display name, an optional description that follows the same Markdown-in-YAML rules as model descriptions, and a depends_on list that uses the same ref() and source() function calls that work inside a SQL file. The function calls are written inline inside the YAML string and are resolved at parse time the same way they are in a model.
The depends_on list is what hooks the exposure into the DAG. When dbt parses the project, it materializes each ref() and source() call into a graph edge from the referenced node to the exposure. The exposure becomes a terminal node, downstream of every dependency it lists. That terminal status is structural: nothing depends on an exposure, an exposure depends on nodes. Selector expressions reach upward from the exposure with the +exposure:name syntax, which selects every ancestor of the exposure, and exposure:name+ is invalid because exposures have no descendants. The graph operator that matters is the leading +. Pair it with the colon-prefixed selector method, and dbt builds only the models that feed the named exposure, which is the canonical pattern for a CI job that pre-builds the dashboard refresh path before a PR merges.
Declaring an exposure with depends_on and owner blocks
A minimal exposure declaration sits in any YAML file under models/. The convention is to put exposures next to the marts that they consume, in a file like models/marts/finance/_exposures.yml. The leading underscore keeps the file at the top of the directory listing.
version: 2
exposures:
- name: revenue_executive_dashboard
label: Revenue Executive Dashboard
type: dashboard
maturity: high
url: https://tableau.example.com/views/revenue-exec
description: |
Weekly revenue summary surfaced to the executive team.
Refreshes Monday at 06:00 from the marts.finance schema.
depends_on:
- ref('fct_revenue_daily')
- ref('dim_customer')
- source('finance_warehouse', 'fx_rates')
owner:
name: Priya Anand
email: priya.anand@example.com
meta:
tableau_workbook_id: rev-exec-2024
slack_channel: '#analytics-revenue'
tags:
- revenue
- executive
The type enumeration is fixed. A value outside the five permitted options produces a parsing error at the exposure file, not a runtime error during a model build. The maturity enumeration is also fixed at three values; maturity is metadata only and does not change build behavior. The owner block requires name, accepts email, and accepts arbitrary additional keys that pass through to the documentation site. The meta and tags blocks behave the same way they do on a model: arbitrary key-value pairs in meta, a list of string tags that can be matched with tag: selectors.
The depends_on list accepts ref() calls with or without a version argument, and source() calls that name a (source_name, table_name) pair. A ref() that points at a non-existent model raises a parsing error and lists the exposure file as the source of the error. The exposure does not require all of its dependencies to be tested; it only requires that they resolve. A metric() call is also valid where the metric exists in the project. Note that exposures cannot list other exposures as dependencies, and they cannot list seeds directly using a seed() function (use ref() against the seed name).
💡 Exam Trap: An exposure with a
typeoutside the fixed enumeration ofdashboard,notebook,analysis,ml, andapplicationfails parsing. The exam offers wrong types likereport,tableau,pbi,etl, andfeature_storeas distractors. The closest match for an ML feature store consumer isml, notfeature_store. The closest match for a scheduled email report isanalysis, notreport.
Selector behavior with +exposure:name and combined selectors
Once exposures are declared, the selector surface adds the exposure: method. The standalone form --select exposure:revenue_executive_dashboard selects only the exposure node itself, which is rarely useful because the exposure has no executable surface. The pattern that actually runs is --select +exposure:revenue_executive_dashboard, which selects every ancestor of the exposure (every model, seed, snapshot, and source that the exposure depends on, recursively to the leaves of the DAG). The + prefix is a graph operator, and it composes with other selectors using the standard intersection operator , and union operator (space-separated selectors).
The pattern that matters for slim CI is --select state:modified+ +exposure:revenue_executive_dashboard --defer --state ./prod-manifest, which builds the intersection of two sets: nodes modified by the PR, and nodes that the named exposure transitively depends on. The result is the minimal build that exercises the proposed change along the path to a specific high-value consumer. The intersection is computed by dbt and runs in the time it takes to walk the manifest graph; the dominant cost is still the warehouse-side execution of the affected models.
# Build the full lineage feeding a named exposure
dbt build --select +exposure:revenue_executive_dashboard
# Slim CI: build the intersection of modified models and the dashboard lineage
dbt build \
--select state:modified+ +exposure:revenue_executive_dashboard \
--defer --state ./prod-manifest
# Build every model that feeds any exposure of type dashboard
dbt build --select +exposure:*,config.type:dashboard
# List exposures matching a tag without executing anything
dbt ls --select tag:executive,resource_type:exposure
A common mistake is to expect exposure:revenue_executive_dashboard+ to do something. It does not; exposures have no downstream nodes, so the trailing + selects an empty set, and dbt prints a warning that the selector matched zero nodes. The leading + is the only graph operator that returns a non-empty set for an exposure selector.
📊 Limit: Exposures appear as terminal nodes in the DAG; nothing in dbt depends on an exposure. The graph operator
+exposure:namereaches upstream and is the canonical pattern. The trailing operatorexposure:name+selects an empty set, by graph topology.
Documentation surface and the dbt docs catalog
When dbt docs generate runs, every exposure becomes a card in the catalog with a clickable upstream lineage view. The exposure card shows name, label, description, owner, maturity, url, type, tags, meta, and the list of nodes it depends on. The lineage view shows the path from the exposure back to the source nodes, with the same color coding that models use. In dbt Cloud Explorer, the exposure card also shows column-level lineage where contracts on upstream models declare data types, which lets reviewers see exactly which columns flow into the downstream artifact.
The description field accepts Markdown and supports embedded {{ doc('block_name') }} calls that resolve to documentation blocks declared elsewhere in the project. The convention is to use a doc block for any description that exceeds three lines so the YAML stays readable. The url field is rendered as a clickable link; the convention is to point it at the production URL of the downstream artifact, not the staging URL.
exposures:
- name: customer_churn_model_features
label: Customer Churn ML Features
type: ml
maturity: medium
description: '{{ doc("churn_features_exposure") }}'
depends_on:
- ref('fct_customer_events_daily')
- ref('dim_customer')
- metric('monthly_active_customers')
owner:
name: ML Platform Team
email: ml-platform@example.com
meta:
feature_store: feast
model_endpoint: churn-v2
The metric() reference in depends_on is valid for projects that use the dbt Semantic Layer. A metric that does not exist raises a parsing error the same way a non-existent ref() does.
⚠️ Anti-Pattern: Treating an exposure as an enforcement mechanism. An exposure does not block a merge, fail a build, or prevent a column rename. It surfaces the downstream impact in documentation and selector queries. Pair the exposure with a model contract on the underlying model, and let the contract do the enforcement. The exposure tells you what breaks; the contract tells dbt to refuse the breaking change.
Owner blocks, maturity, and the maintenance contract
The owner block carries the human contact for the downstream artifact. The pattern that scales is to use a team alias (revenue-analytics@example.com) rather than an individual email, so the exposure does not become stale when the original author changes teams. The name field accepts a team name; the email field accepts a distribution list. The exam may show an exposure with a personal email and ask what the failure mode is; the answer is staleness of ownership, not a parsing error.
The maturity enumeration is a hint to consumers. The convention is: high for production-grade artifacts with monitoring and SLAs, medium for stable but evolving artifacts, low for exploratory or prototype artifacts. dbt does not enforce behavior based on maturity, but documentation site themes can color-code maturity, and policy linters can flag a high maturity exposure that points at a non-contracted model.
🎯 Scenario: A platform team ships a column rename on
dim_customer, changingcustomer_idtocustomer_uuid. The dbt build passes because nothing in the project references the old name. Three days later, ahighmaturity Tableau dashboard breaks at the morning refresh, because it queried the renamed column directly. The fix is structural: declare a contract ondim_customerthat pinscustomer_idas a required column, and declare an exposure for the dashboard that listsref('dim_customer')as a dependency. With the contract, the column rename fails the dbt build, the developer notices at PR time, and the dashboard is updated in lockstep. The exposure makes the impact visible; the contract enforces it.
💡 Exam Trap: Exposures cannot trigger downstream artifact rebuilds. A
dbt run --select +exposure:revenue_executive_dashboardbuilds the upstream models, but it does not refresh the Tableau workbook. Refreshing the downstream artifact is the responsibility of the downstream tool's scheduler. The exposure is one-way visibility into the DAG, not a cross-system orchestration primitive.
Decision Anchor: when to declare an exposure
Choose to declare an exposure when the downstream artifact is a named, stable consumer that benefits from being visible in dbt Explorer or the dbt docs catalog: a production dashboard, a feature store table, a customer-facing application query, a scheduled email report. Skip the exposure when the consumer is ad hoc: an analyst's notebook, a one-off query, a temporary dashboard built for a single meeting. Maintaining stale exposures is worse than maintaining no exposures, because a stale exposure misleads reviewers about downstream impact.
Limits and quotas for exposures
Exposures have no runtime limit because they do not execute. The parsing cost of an exposure is constant per node and contributes to the overall manifest parse time the same way a source declaration does. The documentation cost is proportional to the description length and the column-lineage graph fan-in; a single exposure with a description that fans into a hundred-table star schema produces a hundred-node lineage view at render time. The meta block is unconstrained in size but the documentation site truncates very long values. The tags list has no documented upper bound. The depends_on list also has no documented limit, but a list with hundreds of entries is a smell that the underlying mart should be denormalized into a smaller surface.
# Validate exposure declarations without executing anything
dbt parse
# List every exposure in the project with its type and owner
dbt ls --resource-type exposure --output json | jq '.[] | {name, type, owner}'
# Surface exposures that depend on a deprecated model
dbt ls --select +my_deprecated_model,resource_type:exposure
📊 Limit: The
typeenumeration is exactly five values:dashboard,notebook,analysis,ml,application. Thematurityenumeration is exactly three values:high,medium,low. Any value outside these enumerations fails parsing.
Mermaid: exposure topology in the DAG
The diagram shows the structural rule: every arrow points at the exposure, no arrow leaves an exposure. The selector +exposure:revenue_dashboard returns the union of fct_revenue_daily, dim_customer, stg_orders, stg_customers, source:raw_orders, and source:raw_customers, plus the exposure itself. The selector exposure:revenue_dashboard+ returns only the exposure, because the exposure has no descendants.
