HANDS-ON PROJECT · SYNTHETIC DATA

❄️ Snowflake + dbt Demo

An e-commerce pipeline from raw source data to tested sales models. Explore each diagram and practise the explanation.

0.90x
🧭 Study route

Overview → architecture → ingestion → model grain → incremental orders → tests → operations

This is a hands-on demo with synthetic data. Python runs dbt build; Airflow is not configured.

🧭 STAR Practice

Click an answer to listen. Adapt the wording to your own experience.

🗺️ Walk me through the project
StepRecallEnglish answer
S · SituationBuilt · demoI built a hands-on e-commerce demo with synthetic data in Snowflake.
T · TaskTurn · dataThe goal was to turn raw orders and customer data into trusted sales models.
A · ActionLoad · model · testI loaded the raw data, built Silver and Gold models with dbt, and added data tests.
R · ResultDeliver · metricsThe demo produces daily and customer sales, with reconciliation across models.
🔄 How do incremental orders work?
StepRecallEnglish answer
S · SituationOrder versionsOrders can have multiple versions when a status or amount changes.
T · TaskKeep latestI needed one current row for each order ID.
A · ActionFilter · rank · mergeThe model filters newer timestamps, uses ROW_NUMBER to select the latest incoming version, and MERGEs by order ID.
R · ResultUpdate · insertThe sample updates an existing order and inserts a new one. Late or equal-timestamp records need additional handling.
✅ How do you check data quality?
StepRecallEnglish answer
S · SituationTrust metricsSales metrics need checks at both the record and aggregate levels.
T · TaskValidateI wanted to catch invalid keys and inconsistent revenue.
A · ActionTest · reconcileI used dbt tests for keys and relationships, plus custom SQL to check negative amounts and reconcile paid revenue.
R · ResultCompare · investigateThe tests compare Silver revenue with both Gold models. Matching totals alone do not prove source completeness.
🚀 What would you improve for production?
StepRecallEnglish answer
S · SituationDemo · scopeThe current pipeline is a small demo with a local Python runner.
T · TaskOperate safelyProduction would require reliable recovery and separate environments.
A · ActionHandle · monitorI would add late-data handling, deterministic deduplication, environment isolation and monitoring.
R · ResultImprove · reliabilityThese changes would make failures easier to detect and recover from. They are proposed improvements, not implemented features.