Data Mesh: Data as a Product, How to Transform Data into Value-Generating Products
Master the Data as a Product principle in Data Mesh: learn to distinguish raw tables, pipelines, and reports from a true Data Product, manage its full lifecycle from discovery to retirement, and transform raw Sales orders into the reusable daily-sales analytical product.
The indicator keeps the furthest percentage explored; marking the article complete is your choice.
When a Domain Hands Over Its Data, Yet Nobody Can Use It
In the previous article, the Sales domain team at CommerceFlow formally accepted accountability for its analytical data. Watch what happens, however, during their very first delivery.
Eager to check off their quarterly goal quickly, Sales developers configure a nightly job that copies their two internal operational tables—orders and order_items—verbatim into an Amazon S3 bucket as Parquet files and registers them in the AWS Glue Data Catalog. As far as the Sales team is concerned, the job is done: "The tables are in the catalog now; Business Intelligence and Finance can query them."
When a Finance analyst opens Amazon Athena to calculate daily net revenue for the monthly close, she hits a wall:
The orders table includes synthetic test purchases generated by automated monitoring bots (buyer_email LIKE '%@qa-bot.commerceflow.io'), inflating daily sales by $40,000.
In order_items, the unit_val column is stored in cents for domestic orders and in whole currency units for international orders, with no currency code column on the item table itself.
Nine numeric status codes appear in ord_state (0 through 8), with zero documentation explaining that status 6 means "order cancelled prior to invoicing."
On the Tuesday of the accounting close, the nightly sync failed at 03:00 UTC, and nobody in Sales noticed because there was no freshness alert or delivery SLA.
What went wrong if Sales already owned the domain? They treated domain ownership as a raw database export chore. They viewed analytical data as exhaust fumes from their transactional database rather than designing it for the people who needed to rely on it.
What Separates a True Data Product from a Table, Pipeline, or Dashboard
Decades ago in software engineering, we learned that uploading raw source code to a server without an interface, documentation, or automated tests does not make a usable digital product. Data as a Product brings that exact discipline of Product Thinking to analytical data: BI analysts, data scientists, finance teams, and peer domains are treated as real customers whose needs must be understood, served, and supported.
To avoid calling every loose table or script a "Data Product," let us clearly distinguish six artifacts that teams frequently conflate:
Artifact
What It Actually Is
Why It Is NOT a Data Product on Its Own
1. Raw Data / Table Replica
Direct dump of internal operational tables (orders, order_items) or application logs.
Leaks internal implementation coupling, transient states, and test noise with no curated business semantics.
2. Standalone Analytical Table / Dataset
A set of cleaned rows and columns assembled for an analysis.
Without an accountable owner, explicit service-level objectives (SLOs), catalog metadata, versioning, and support, it quickly decays into an unmaintained table.
3. Data Pipeline (ETL / ELT)
The scheduled job or transformation script that moves and reshapes records.
It is part of the internal machinery that manufactures the product—just as a factory assembly line is not the car the customer drives.
4. BI Dashboard or Report
A visual presentation layer (charts and summary tables) built for human reading.
It is a consumer of data products; it does not provide a composable programmatic interface for AI models or peer domains.
5. Cloud Service (S3, Glue, Athena)
The underlying infrastructure used to store, catalog, or query files.
Provides the technical platform foundation, but defines neither business semantics nor data accuracy.
6. Data Product
An autonomous, domain-governed unit packaging curated business data, transformation and validation code, discovery metadata, documentation, SLOs, and secure access ports.
This is the complete product: it solves a well-defined consumer need backed by ongoing operational guarantees.
(Important note: Saying a Data Product is an autonomous logical unit does not mean it requires its own dedicated physical server, an exclusive Amazon S3 bucket, or a ten-person team per table. A single domain team can maintain one or several data products on top of shared self-serve platform infrastructure).
Essential Qualities of a Good Data Product
In the next article we will examine the internal technical anatomy and ports of a Data Product in detail, but from a product management and consumer-experience perspective, every well-designed Data Product exhibits six core qualities:
Discoverable: Any authorized consumer can find it in a catalog by searching business terms ("daily sales," "net revenue") and immediately see what it represents and who owns it.
Addressable: It has a unique, permanent logical address (for example, a canonical identifier and versioned table address like sales_dp.daily_sales_v1) that shields consumers from shifting physical file paths.
Understandable: Every column is documented in the domain's Ubiquitous Language, specifying exact calculation rules, currency/units, granularity, and sample queries.
Trustworthy: It declares explicit freshness and quality commitments (SLOs) and runs automated assertions on every update so corrupted records are never published silently.
Natively Accessible and Secure: It allows diverse consumers to read it using their standard tools (such as SQL in Amazon Athena or columnar reads for ML training) while enforcing governed access policies (for example, via AWS Lake Formation).
Interoperable and Valuable: It follows shared organizational identifier standards so it joins cleanly with peer domains, and it exists because it solves a concrete, measurable business problem.
The Role of the Data Product Owner and the Data Product Lifecycle
A data product is never "built once and forgotten"; it moves through a continuous product lifecycle guided inside the domain by the Data Product Owner working alongside domain engineers, platform engineers, and consumers:
┌──────────────────────┐ ┌──────────────────────┐ ┌──────────────────────┐
│ 1. Discovery │───>│ 2. Semantic Design │───>│ 3. Build & Publish │
│ Who is the consumer │ │ Granularity, metrics,│ │ Transformation logic │
│ and what decision │ │ global IDs, and SLOs │ │ + automated QA checks│
│ do they need to make?│ └──────────────────────┘ └──────────┬───────────┘
└──────────────────────┘ │
┌──────────────────────┐ ┌──────────────────────┐ ┌──────────▼───────────┐
│ 6. Evolution / Sunset│<───│ 5. Monitoring & SLOs │<───│ 4. Consumer │
│ Versioned upgrades │ │ Quality alerts, │ │ Onboarding │
│ or planned retirement│ │ freshness & support │ │ Access & catalog docs│
└──────────────────────┘ └──────────────────────┘ └──────────────────────┘
Notice what the Data Product Owner drives at each stage:
During discovery: Prevents the "build it just in case" trap. Interviews Business Intelligence, Finance, or Data Science consumers to understand what business decisions they make, how often they make them, and what granularity they require.
During design: Defines the value proposition and granularity (for example: "each row represents consolidated daily sales per product category, country, and sales channel in UTC").
During operation and evolution: Tracks actual consumer adoption, prioritizes backward-compatible enhancements, and manages orderly deprecation windows when a product version is retired so downstream pipelines never break unexpectedly.
Step-by-Step Practical Walkthrough at CommerceFlow: Designing the daily-sales Data Product
Let us now transform the Sales domain's raw table dump into a genuine Data Product named daily-sales, purpose-built for Business Intelligence and Finance.
Step 1: Identify the Traps Inside Internal Operational Tables
Inside the Sales transactional database sit orders and order_items. Those tables contain operational nuances that only the Sales team knows:
Automated synthetic QA accounts have is_test_account = TRUE or email addresses ending in @qa-bot.commerceflow.io.
Amounts in order_items.unit_price_cents are stored in USD cents, and item-level promotional discounts live in line_discount_cents.
An order represents a valid commercial sale only when order_status IN ('CONFIRMED', 'FULFILLED'); transient states like 'DRAFT', 'PAYMENT_REJECTED', and 'CANCELLED_BEFORE_INVOICE' must be excluded from accrued sales revenue.
Step 2: Encapsulate the Transformation Logic Inside the Sales Domain
Instead of exposing raw orders and order_items tables and hoping ten different analysts guess those filtering rules identically, the Sales domain team encodes that business logic directly to produce sales_dp.daily_sales:
-- INTERNAL TRANSFORMATION OWNED BY THE SALES DOMAIN:-- Transforms private operational tables (orders, order_items)-- into the curated, public `sales_dp.daily_sales` Data Product.-- Only the Sales team reads the raw source tables; downstream teams consume the product.CREATEOR REPLACE VIEW sales_dp.daily_sales ASSELECTCAST(DATE_TRUNC('day', o.confirmed_at_utc) ASDATE) AS sales_date,
o.country_code,
o.sales_channel,
oi.product_category,
COUNT(DISTINCT o.order_id) AS confirmed_orders_count,
SUM(oi.quantity) AS total_units_sold,
-- Convert internal cents into financial-precision USD amountsCAST(SUM(oi.quantity * oi.unit_price_cents) /100.0ASDECIMAL(14, 2)) AS gross_sales_usd,
CAST(SUM(oi.line_discount_cents) /100.0ASDECIMAL(14, 2)) AS total_discounts_usd,
-- Official Sales domain definition of Net Sales Revenue:-- Gross sales minus promotional line discounts minus partial item cancellationsCAST(
SUM(
(oi.quantity * oi.unit_price_cents)
- oi.line_discount_cents
-COALESCE(oi.cancelled_item_amount_cents, 0)
) /100.0ASDECIMAL(14, 2)
) AS net_sales_usd,
MAX(o.updated_at_utc) AS last_source_event_utc
FROM sales_internal_raw.orders o
INNERJOIN sales_internal_raw.order_items oi
ON o.order_id = oi.order_id
WHERE o.is_test_account =FALSEAND o.buyer_email NOTLIKE'%@qa-bot.commerceflow.io'AND o.order_status IN ('CONFIRMED', 'FULFILLED')
GROUPBYCAST(DATE_TRUNC('day', o.confirmed_at_utc) ASDATE),
o.country_code,
o.sales_channel,
oi.product_category;
Step 3: Document the Contract, Metadata, and Service Expectations (YAML)
A clean SQL view is still not a complete Data Product if consumers cannot discover what each column means, how often it refreshes, or what quality checks protect it. The Sales team pairs its transformation with a declarative product specification.
(Important note: The YAML structure below is an educational example illustrating the metadata and service expectations that describe a Data Product. It is not a mandatory universal standard, and writing a YAML file does not enforce quality on its own unless the underlying platform executes the declared checks).
# Educational Data Product Specification: daily-sales.yamlapiVersion:dataproducts.commerceflow.io/v1kind:DataProductSpecificationmetadata:id:"urn:commerceflow:dp:sales:daily-sales:v1"name:"daily-sales"title:"Consolidated Daily Sales & Net Revenue (Sales Domain)"domain:"sales"version:"1.0.0"lifecycleStage:"production"owner:productOwner:"elena.rostova@commerceflow.internal"engineeringTeam:"sales-core-team"supportChannel:"#sales-data-product-support"valueProposition:problemSolved:>
Eliminates discrepancies in gross sales, promotional discounts, and net sales calculations
between Business Intelligence dashboards and Finance monthly accounting closes by filtering
synthetic QA accounts and transient checkout states at the source.
granularity:"One row per UTC day (sales_date), country (country_code), channel (sales_channel), and category (product_category)."intendedConsumers:-team:"Business Intelligence"useCase:"Daily commercial performance dashboard by country and product category"-team:"Finance & Accounting"useCase:"Monthly accrued sales revenue reconciliation prior to bank settlement"schemaAndSemantics:location:storageFormat:"Apache Parquet on Amazon S3"catalogDatabase:"sales_dp"catalogTable:"daily_sales"queryInterface:"Amazon Athena SQL"accessGovernance:"AWS Lake Formation"columns:-name:"sales_date"type:"DATE"description:"UTC calendar date when the buyer confirmed the order."-name:"country_code"type:"STRING"description:"ISO 3166-1 alpha-2 storefront country code (e.g., CL, MX, ES, US)."-name:"sales_channel"type:"STRING"description:"Purchase origination channel: WEB, MOBILE_APP, or STORE_POS."-name:"product_category"type:"STRING"description:"Canonical commercial product category."-name:"confirmed_orders_count"type:"BIGINT"description:"Count of distinct confirmed orders (excludes draft carts and QA bots)."-name:"total_units_sold"type:"BIGINT"description:"Total commercial item units sold across confirmed orders."-name:"gross_sales_usd"type:"DECIMAL(14,2)"description:"Gross order value in USD before promotional discounts or item cancellations."-name:"total_discounts_usd"type:"DECIMAL(14,2)"description:"Total promotional and coupon discounts applied in USD."-name:"net_sales_usd"type:"DECIMAL(14,2)"description:"Net commercial sales revenue in USD: gross_sales_usd minus discounts and item cancellations."serviceExpectations:refreshSchedule:"Daily at 04:00 UTC (with hourly intraday refreshes)"freshnessSloMaxDelayMinutes:90historicalRetentionYears:7qualityAssertions:-rule:"no_negative_net_sales"description:"Daily net sales per segment must never be negative."sqlCheck:"SELECT COUNT(*) FROM sales_dp.daily_sales WHERE net_sales_usd < 0"expectedValue:0-rule:"accounting_equation_consistency"description:"Net sales must never exceed gross sales."sqlCheck:"SELECT COUNT(*) FROM sales_dp.daily_sales WHERE net_sales_usd > gross_sales_usd"expectedValue:0-rule:"no_null_dimensions"description:"Grouping dimension keys must never be null."sqlCheck:"SELECT COUNT(*) FROM sales_dp.daily_sales WHERE sales_date IS NULL OR country_code IS NULL"expectedValue:0
Step 4: How the Consumer Experience Changes for Finance and BI
Because daily-sales is stored as columnar Apache Parquet files on Amazon S3, documented in the AWS Glue Data Catalog, authorized through AWS Lake Formation, and queryable via Amazon Athena, the Finance analyst no longer wastes days reverse-engineering cent conversions or QA bot emails. Her monthly close query is concise, fast, and reliable:
-- CONSUMER QUERY (Finance / Business Intelligence Team):-- Queries the published `sales_dp.daily_sales` Data Product via Amazon Athena.-- Net sales and discount semantics are guaranteed by the owning Sales domain.SELECT
country_code,
product_category,
SUM(confirmed_orders_count) AS total_orders,
SUM(gross_sales_usd) AS total_gross_usd,
SUM(total_discounts_usd) AS total_discounts_usd,
SUM(net_sales_usd) AS total_net_sales_usd,
ROUND(
(SUM(total_discounts_usd) /NULLIF(SUM(gross_sales_usd), 0)) *100,
2
) AS effective_discount_rate_pct
FROM sales_dp.daily_sales
WHERE sales_date BETWEENDATE'2026-10-01'ANDDATE'2026-10-31'GROUPBY
country_code,
product_category
ORDERBY
total_net_sales_usd DESC;
Measuring Whether a Data Product Actually Delivers Value
One of the biggest shifts introduced by Data as a Product is how we measure success. In traditional data teams, output was often measured by "how many pipelines or tables we shipped this quarter" (even if nobody queried them). In data product management, we evaluate success across four outcome-oriented dimensions:
Metric Dimension
Concrete Indicator
What It Reveals About the Data Product
1. Consumer Adoption
Distinct active consuming teams/services and weekly query volume.
If a product has been live for three months with zero external queries, it is a "zombie product" creating maintenance cost without business value.
2. Operational Reliability
Percentage of time freshness SLOs and automated quality checks pass.
Shows whether downstream consumers can trust the product for critical workflows (financial closes or production AI models).
3. Time-to-Insight
Elapsed time for a new analyst or data scientist from discovering the product in the catalog to running their first valid query.
If it takes 30 minutes, documentation and self-serve access work; if it takes three weeks of chat messages, the product is not self-explanatory.
4. Cross-Use-Case Reuse
Number of distinct downstream use cases (BI, Finance, ML, peer domains) served by the same product without cloning pipelines.
Demonstrates that the product captures reusable domain facts rather than serving as a brittle one-off report extract.
Three Real-World Scenarios with Different Product Decisions
Let us examine how Data as a Product decisions adapt across different business contexts.
Scenario 1: Cold-Chain Logistics Operator (Turning Raw Sensor Noise into an Actionable Product)
Context: A refrigerated food distributor ingests 50 million daily temperature pings from truck sensors. Initially, they published the raw raw_thermometer_pings table as their "data product." Neither food-safety auditors nor insurance claims analysts could use it because uncalibrated sensors occasionally emitted -999 °C spikes and required complex geospatial joins to map pings to active shipments.
Data Product decision: The ColdChainData Product Owner interviewed consumers (Food Safety and Insurance Claims) and learned they did not want raw minute-by-minute voltage readings—they needed to know which shipments experienced a temperature excursion above threshold for more than 15 continuous minutes. The team published coldchain_dp.shipment_temperature_excursions keyed by shipment ID, peak temperature, excursion duration, and sensor calibration status.
Key takeaway: A true data product absorbs low-level source noise and exposes domain facts ready for business decisions.
Scenario 2: Online University (Eliminating Three Conflicting Clones of the Same Truth)
Context: At an online university, Marketing requested an active-enrollment table, Finance requested a tuition-enrollment table, and Academic Accreditation requested a third. The Enrollment team built three separate pipelines (enrolled_mkt, enrolled_fin, enrolled_acad) with slightly different filtering rules. Soon all three numbers disagreed, and leadership could not get a single answer on total active students.
Data Product decision: Retire the three ad-hoc pipelines and publish one authoritative domain data product: enrollment_dp.student_enrollments, where each row represents an enrollment record with explicit status columns (academic_enrollment_state, financial_clearance_state, acquisition_campaign_id). Marketing, Finance, and Accreditation now filter the same authoritative source without contradiction.
Scenario 3: One-Off 48-Hour UI Experiment (When NOT to Build a Permanent Data Product)
Context: CommerceFlow's frontend team runs a 48-hour A/B test on a secondary button color and wants to check click counts once on Friday afternoon to pick the winning color. A developer suggests registering a permanent Data Product in the enterprise catalog with a five-year retention policy, 24/7 on-call alerts, and semantic versioning just for that temporary button click log.
Recommended decision:Do not turn it into a permanent Data Product. Packaging, documenting, and maintaining ongoing SLOs carries real operational cost. For a disposable 48-hour experiment that will be queried once on Friday and discarded, an exploratory query inside a team sandbox is the right choice. Reserve full Data Product investment for datasets with recurring consumption or lasting business value.
Common Pitfalls When Applying Data as a Product (and How to Avoid Them)
"Build It and They Will Come" syndrome: Publishing dozens of tables in the catalog without interviewing a single consumer or identifying a concrete business decision. Remedy: Require every new data product proposal to name at least one committed consumer and use case upfront.
Slapping a "Data Product" label on a raw database replica: Registering an uncleaned transactional table dump in AWS Glue and calling it a Data Product without fixing cryptic column names or adding quality assertions. Remedy: Enforce that public schemas hide internal operational implementation details and pass automated data assertions.
Confusing pipeline completion with data product health: Celebrating that a nightly job exited with code 0 at 04:00 UTC even though it wrote zero rows or negative revenue numbers. Remedy: Monitor product health using data-level assertions (row counts, sum reconciliations, null checks), not just job exit codes.
Shipping silent breaking schema changes: Renaming net_sales_usd to revenue_net_amount on a Wednesday afternoon and breaking every Finance query. Remedy: Treat published schemas as public APIs—add new columns backward-compatibly or publish a new major version (v2) with an announced deprecation window.
Practical AI Prompts to Design and Audit Data Products
Use these two prompts to turn raw operational schemas into consumer-ready Data Product specifications or audit existing analytical tables.
Prompt 1: Designing a Data Product from Operational Tables and Consumer Needs
Act as an experienced Data Product Owner in a Data Mesh architecture. I need to design an analytical Data Product starting from our internal operational tables to serve two concrete consumer teams.
Domain and source context:
- Owning domain: [E.G., Sales]
- Internal operational tables available: [DESCRIBE TABLES AND RAW COLUMNS, E.G., orders, order_items]
- Internal quirks or traps in those tables that confuse outsiders: [E.G., QA test accounts, amounts in cents, cancelled statuses]
- Target consumers and the business decisions they make: [E.G., Finance for monthly revenue close and BI for daily performance tracking]
Constraints:
- Do not expose a raw copy of the operational tables.
- Explicitly define the product's granularity (what a single row represents).
Expected output:
1. Value proposition, exact granularity, and public SQL schema of the Data Product (with expressive column names and business definitions).
2. SQL transformation query that builds the Data Product while filtering out internal operational noise.
3. Three SQL-verifiable data quality assertions and a realistic freshness SLO for the stated consumers.
What a human must verify when reviewing the output: Validate with real consumers (such as Finance analysts) that the formula used for core metrics like "net sales" matches your company's exact accounting definitions.
Prompt 2: Auditing Whether an Existing Analytical Table Qualifies as a Data Product
Act as a data product quality reviewer. I will share the current schema of an analytical table we publish in our organization along with how we operate it today. Evaluate what is missing for it to qualify as a true Data Product under the Data as a Product principle.
Current table context:
- Table name and current schema (DDL or column list): [PASTE CURRENT SCHEMA]
- Documentation currently available: [DESCRIBE WHETHER DATA DICTIONARY EXISTS]
- Who maintains it and how often it updates: [DESCRIBE CURRENT PROCESS]
- Pain points reported by analysts or data scientists querying it: [DESCRIBE RECURRING COMPLAINTS]
Constraints:
- Evaluate the table against the 6 essential qualities: Discoverable, Addressable, Understandable, Trustworthy, Natively Accessible & Secure, and Interoperable/Valuable.
- Prioritize pragmatic, high-impact improvements.
Expected output:
1. Brief assessment across each of the 6 essential qualities.
2. Which existing columns leak internal implementation details or semantic ambiguity, and how to rename or transform them.
3. The top 3 most urgent improvements the owning team should ship in the next two weeks to earn consumer trust.
What a human must verify when reviewing the output: Before renaming ambiguous columns that are already queried by production dashboards, check query logs to identify active consumers and plan a non-breaking transition.
Application Exercises
Apply product thinking to solve these three practical scenarios.
Exercise 1: Distinguishing What Is (and Is Not) a Data Product
During a sprint review for the Sales domain at CommerceFlow, three team members list the "three Data Products" they claim to have delivered this month:
Item A: A 400-line Python script that connects to PostgreSQL every night, extracts orders, and writes files into a staging folder on Amazon S3.
Item B: An interactive bar chart in a BI tool showing last week's sales for the regional sales manager.
Item C: The sales_dp.daily_sales table registered in AWS Glue, backed by Parquet files on S3, with an assigned owner, documented column dictionary, guaranteed hourly refresh SLO, automated integrity assertions, and governed read permissions in Athena/Lake Formation for BI, Finance, and Data Science.
Question: Explain which of the three items is genuinely a Data Product in a Data Mesh and what role the other two items actually play.
Exercise 2: Fixing a Transformation That Leaks Internal Defects to Consumers
The Sales domain is preparing an initial version of its daily product sales dataset. A developer proposes the following SQL query as the public Data Product definition:
-- Preliminary proposal with product-design defects:SELECT
o.created_at,
oi.sku,
o.st_code,
oi.qty,
oi.price_cents
FROM sales_internal.orders o
JOIN sales_internal.order_items oi ON o.id = oi.ord_id;
Business Intelligence consumers complain that created_at is a raw millisecond timestamp rather than a daily date, st_code contains cryptic numbers like 1, 4, and 9 that nobody outside Sales understands, price_cents is in unaggregated cents without subtracting discounts, and rows with st_code = 9 (internal synthetic QA test carts) pollute the results.
Question: Rewrite the SQL query applying Data as a Product principles to expose a clean, daily aggregated table with expressive column names and USD dollar amounts (DECIMAL(12,2)), assuming st_code = 4 is the only confirmed commercial sale status and order_items includes a discount_cents column.
Exercise 3: Managing Schema Evolution Across the Product Lifecycle Without Breaking Consumers
The sales_dp.daily_sales data product has been in production for six months, queried daily by automated Finance reconciliation jobs and Inventory demand forecasting models. Now, CommerceFlow's business team wants to split promotional discounts into two more granular concepts: coupon_discounts_usd (user-entered coupon codes) and automatic_promo_discounts_usd (automatic catalog markdowns). A Sales developer suggests dropping the total_discounts_usd column today and replacing it with the two new columns.
Question: As the SalesData Product Owner, why must you block dropping total_discounts_usd immediately, and what lifecycle evolution strategy should you use to introduce the new breakdown without breaking Finance and Inventory?
Reasoned Solutions
Solution to Exercise 1
Only Item C (sales_dp.daily_sales) is a true Data Product: It combines curated business semantics, catalog discovery metadata, a standard consumption interface (Athena SQL), governed access control (Lake Formation), explicit service expectations (hourly refresh SLO and automated quality checks), and an accountable owning team.
Item A (the Python script) is an ingestion/transformation pipeline: it is part of the internal implementation machinery that builds the data product, not the product interface consumed by downstream users.
Item B (the interactive bar chart) is a BI visualization or report: it is a downstream consumer application built for human viewing, not a composable data product that peer domains or ML models can query programmatically.
Solution to Exercise 2
Applying Data as a Product, we filter out internal QA test carts (st_code = 9), retain only confirmed commercial sales (st_code = 4), aggregate to the declared daily granularity (sales_date), convert cents to USD, and expose self-explanatory business metrics:
-- Corrected Data Product transformation: clean semantics, daily granularity, and domain rules appliedSELECTCAST(DATE_TRUNC('day', o.created_at) ASDATE) AS sales_date,
oi.sku AS product_sku,
COUNT(DISTINCT o.id) AS confirmed_orders_count,
SUM(oi.qty) AS units_sold,
CAST(SUM(oi.qty * oi.price_cents) /100.0ASDECIMAL(12, 2)) AS gross_sales_usd,
CAST(SUM(COALESCE(oi.discount_cents, 0)) /100.0ASDECIMAL(12, 2)) AS total_discounts_usd,
CAST(
SUM((oi.qty * oi.price_cents) -COALESCE(oi.discount_cents, 0)) /100.0ASDECIMAL(12, 2)
) AS net_sales_usd
FROM sales_internal.orders o
INNERJOIN sales_internal.order_items oi
ON o.id = oi.ord_id
WHERE o.st_code =4-- Confirmed commercial sales only (excludes QA tests and drafts)GROUPBYCAST(DATE_TRUNC('day', o.created_at) ASDATE),
oi.sku;
Solution to Exercise 3
Dropping total_discounts_usd without notice would introduce an immediate breaking change: Finance and Inventory scheduled queries would fail that night with a missing-column error (Column 'total_discounts_usd' cannot be resolved), eroding trust in the data product.
The sound product lifecycle strategy is:
Additive, backward-compatible evolution: Add the two new columns (coupon_discounts_usd and automatic_promo_discounts_usd) to sales_dp.daily_sales while keepingtotal_discounts_usd (computed as the sum of both). Existing Finance and Inventory jobs continue running without interruption, while consumers needing the granular split can adopt the new columns immediately.
If retiring the old column is eventually required: Announce a deprecation window to registered consumers (Finance, Inventory) honoring the product's SLA policy (for example, 60 days' notice), monitor SQL query logs in Athena to see which consumers still reference total_discounts_usd, and remove the column (or cut a major v2 view) only after active usage drops to zero.
Decision Criteria for Applying What You Learned and Final Summary
When applying Data as a Product within your domain, rely on these practical rules:
Always work backward from the consumer: Before writing a transformation query or registering a catalog entry, identify who will consume the dataset, what business decision or model it powers, and what freshness and accuracy guarantees they require.
Never equate exporting tables with publishing products: A raw operational replica forces consumers to guess your application's internal quirks; a Data Product encapsulates domain complexity and delivers clean, documented, automatically verified business facts.
Reserve full product investment for assets with recurring value: Apply full SLO commitments, cataloging, automated quality checks, and version management to datasets powering core reporting, cross-domain integrations, and AI models; for disposable one-off explorations, keep the simplicity of a sandbox query.
Now that we understand the product mindset, lifecycle management, and business value behind Data as a Product, we are ready to inspect the technical anatomy of a Data Product from the inside. In the next article, we will examine what a Data Product looks like under the hood: its input and output ports, embedded transformation and validation code, metadata descriptors, and the technical characteristics that make it an autonomous architectural quantum.
A comprehensive hands-on capstone project to design, build, and verify an end-to-end Data Mesh architecture on AWS using S3, Parquet, Glue, Athena, Lake Formation, Terraform, YAML contracts, and Python validations.
Learn how to connect governed Data Products in a Data Mesh with Machine Learning systems, Feature Stores, MLOps, and generative AI RAG architectures while preventing data leakage, semantic errors, and permission breaches.
A practical and strategic guide to planning enterprise Data Mesh adoption: maturity assessment, pilot selection, team topologies, FinOps cost modeling, real outcome KPIs, and criteria to avoid over-engineering.