Medallion Architecture in Practice

Version 29 | Created: 2026-06-23 | Updated: 2026-11-07 13:46 UTC
- 1. Overview
- 2. Medallion Architecture Mapping
- 3. Pipeline Stages
- 4. Key Principles
- References
- Appendix A. Terminology
This report describes a pipeline that carries data from raw source files to a model-ready dataset for Artificial Intelligence and Machine Learning (AI/ML) workloads, organized by data maturity. The layering is the Databricks' Medallion architecture (Bronze β Silver β Gold), an industry standard, and the six stages of this pipeline fill its three layers. Each stage has a single responsibility and reads only the stage or stages before it, which keeps the pipeline reproducible and auditable.
Databricks defines the architecture as a data design pattern for organizing data in a lakehouse, whose aim is to improve the structure and quality of the data incrementally as it passes through the three layers [1]. The layers are named for what the data has become, not for where it is kept.
- Bronze holds the records from the source systems β an RDBMS (Relational Database Management System), IoT (Internet of Things) devices, logs, or an API (Application Programming Interface) β almost exactly as they arrive.
- Silver holds those same records cleansed, enriched, and conformed to one specification, an intermediate state between the source and the consumer.
- Gold holds the aggregated and modeled result, shaped for the consumer that reads it: a star schema for BI (Business Intelligence) reporting, a feature table for model training.
Fig 1 states the guarantee each layer makes.
BRONZE SILVER GOLD
βββββββββββββββββββββββββ βββββββββββββββββββββββββ βββββββββββββββββββββββββ
β keep it β β make it β β make it β
β as it landed β βββ> β trustworthy β βββ> β model-ready β
βββββββββββββββββββββββββ βββββββββββββββββββββββββ βββββββββββββββββββββββββ
written once and nulls, outliers and features built and
never edited, the clocks resolved, so reduced, and pinned
only safety net the data can be to a version so that
if a parse is wrong queried with trust train and serve agree
and fed to a model
Fig 1. What each Medallion layer guarantees and what its data can be used for
Bronze guarantees that the record is what arrived, Silver that the values can be trusted, and Gold that the columns are the ones a model consumes. Section 2 places the six stages of the pipeline inside these layers, and section 3 takes each stage in turn.
The six stages fall into the three layers of the Medallion architecture, the de facto standard for sorting data by quality and maturity.
Fig 2 names the transform between the stages and shows the two paths into Transformed Data.
BRONZE SILVER GOLD
βββββββββββββ¬ββββββββββββ βββββββββββββ βββββββββββββββ βββββββββββββββ βββββββββββββ
β Original β Raw β ββ> β Clean β ββ> β Reshaped β ββ> β Transformed β ββ> β Feature β
βββββββββββββ΄ββββββββββββ βββββββ¬ββββββ βββββββββββββββ ββββββββ΄βββββββ βββββββββββββ
βββ parse βββ clean β reshape scale ^ features
ββββββββββββββββββββββββββββββββββββββββ
Fig 2. The six stages, the transform between them, and the layers they fall into
Transformed Data reads Reshaped Data, and reads Clean Data directly when the table needs no reshape. Feature Data reads Transformed Data alone.
Table 1. Medallion layers and the stages they hold
| Layer | Stages | State | Purpose |
|---|---|---|---|
| Bronze | Original + Raw | Landed as-is; format mismatch and unstructured content included | Preserve the historical record |
| Silver | Clean + Reshaped + Transformed | Cleaned and conformed, then reshaped to a model-input form and re-expressed on the scale a model reads | Trusted, query-ready data, and model-ready when no new feature is needed |
| Gold | Feature | Fully engineered, highest maturity | Drop straight into a model |
Reshaped Data and Transformed Data are transitional. Model-agnostic work β plain reshape, standard windowing, standard scaling β stays in Silver because many models can share it, while model-specific shaping or encoding leans toward Gold. When several models reuse the same output, it is best pinned to Silver. A model that needs no engineered feature can be trained on the Silver output directly, because Transformed Data already carries both the input shape a model reads and its scale.
The untouched files exactly as they arrive from each source. Every source and version brings its own format β CSV (Comma-Separated Values), JSON (JavaScript Object Notation), or XML (Extensible Markup Language) β its own column names, and its own header conventions. These files are stored exactly as received and are never edited in place; they are the historical record and the only safety net if a parsing bug surfaces later.
The same data conformed to one schema. Originals are parsed into standardized column names, units, and timestamps. The shape is now consistent, but the content is still raw: nulls, outliers, and duplicates remain. Parsing is kept idempotent so that Raw can always be regenerated from Original.
Trustworthy data. Missing values are handled, noise and outliers are removed, and timestamps are aligned across sources. This is the first stage that can be queried with confidence. One caution: a transient spike and a genuine distribution change β dataset shift [2] β can look statistically similar, so removal rules should be set with domain review to avoid discarding real signal.
The same values laid out on the axes a model reads. The two-dimensional (2D) form is a [samples, features] table for classical models such as XGBoost (eXtreme Gradient Boosting). The three-dimensional (3D) tensor form applies a time-series window for deep models β a Convolutional Neural Network (CNN) or Long Short-Term Memory (LSTM) β giving [samples, timesteps, features]. Group keys are carried through so the model can later be validated against unseen groups.
The same values re-expressed on the scale a model reads. Numeric columns are scaled, categorical columns are encoded, and a skewed column is put through a monotone transform. The arrangement of the table is untouched, which is what separates this stage from Reshaped Data: one changes how the values are laid out, the other changes the values themselves. The parameters they fit β a scaler's mean and variance, an encoder's category list β are taken from training rows only and stored with the dataset, because refitting them at serving time is a known route to train/serve skew [3].
The optimized dataset. Domain knowledge converts the Transformed Data columns into the variables a model learns from β moving averages, frequency components, embeddings β alongside dimensionality reduction. When features outnumber samples (
The value of the pipeline is not the six labels but the discipline behind them:
- Immutability β each layer is written once and never edited in place.
- Reproducibility β each transform is deterministic, so the same input yields the same output.
- Lineage β every column can be traced back to the source record that produced it.
Together they make a bad prediction diagnosable: the column that carried it can be re-derived, and the record behind that column can be opened.
[1] Databricks. What is Medallion Architecture?. Databricks.
[2] QuiΓ±onero-Candela, J., Sugiyama, M., Schwaighofer, A., & Lawrence, N. D. (Eds.) (2009). Dataset Shift in Machine Learning. MIT Press. ISBN 978-0-262-17005-8.
[3] Sculley, D., Holt, G., Golovin, D., Davydov, E., Phillips, T., Ebner, D., Chaudhary, V., Young, M., Crespo, J.-F., & Dennison, D. (2015). Hidden Technical Debt in Machine Learning Systems. Advances in Neural Information Processing Systems, 28.
[4] BΓΌhlmann, P., & van de Geer, S. (2011). Statistics for High-Dimensional Data: Methods, Theory and Applications. Springer.
- Bronze: The Medallion layer that keeps data as it landed, with no cleaning or validation.
- dataset shift: A change in the joint distribution of inputs and outputs between the training stage and the serving stage.
- Gold: The Medallion layer that holds fully engineered, model-ready data.
- idempotent: A property of a transform whose repeated application gives the same result as a single application.
- lineage: The recorded chain of transforms that connects a column to its origin.
- Medallion architecture: A layering of a data lakehouse into Bronze, Silver, and Gold by data quality and maturity.
- Silver: The Medallion layer that holds cleaned and conformed data, reshaped and re-expressed for a model.
- star schema: A table layout that puts the measures in one fact table and their descriptive attributes in the dimension tables around it.
- train/serve skew: A mismatch between the feature values computed at training time and those computed at serving time.
Version 14 | Created: 2026-09-08 | Updated: 2026-11-07 13:46 UTC
- 1. Overview
- 2. Medallion Architecture Mapping
- 3. Pipeline Stages
- 4. Key Principles
- References
- Appendix A. Terminology
μ΄ λ¬Έμλ raw source file μμ model-ready dataset κΉμ§ λ°μ΄ν°λ₯Ό λλ₯΄λ pipeline μ λ°μ΄ν° μ±μλ μμΌλ‘ μ 리νλ€. κ³μΈ΅ ꡬ쑰λ μ κ³ νμ€μΈ Databricks μ Medallion architecture (Bronze β Silver β Gold) μ΄λ©°, μ΄ pipeline μ μ¬μ― stage κ° κ·Έ μΈ layer λ₯Ό μ±μ΄λ€. κ° stage λ ν κ°μ§ μ± μλ§ μ§κ³ μκΈ° μμ stage λ§ μ½μΌλ―λ‘, pipeline μ΄ μ¬ν κ°λ₯νκ³ μΆμ κ°λ₯νκ² μ μ§λλ€.
Databricks λ μ΄ architecture λ₯Ό lakehouse μμ λ°μ΄ν°λ₯Ό μ‘°μ§νλ data design pattern μΌλ‘ μ μνλ©°, κ·Έ λͺ©μ μ λ°μ΄ν°κ° μΈ layer λ₯Ό μ§λλ λμ ꡬ쑰μ νμ§μ μ μ§μ μΌλ‘ λμ΄μ¬λ¦¬λ λ° μλ€ [1]. layer μ μ΄λ¦μ λ°μ΄ν°κ° λμΈ μλ¦¬κ° μλλΌ λ°μ΄ν°κ° 무μμ΄ λμλμ§λ₯Ό κ°λ¦¬ν¨λ€.
- Bronze λ source system β RDBMS (Relational Database Management System), IoT (Internet of Things) κΈ°κΈ°, log, API (Application Programming Interface) β μ κΈ°λ‘μ λμ°©ν κ·Έλλ‘ λ΄λλ€.
- Silver λ κ·Έ κΈ°λ‘μ μ μ νκ³ κ²°ν©νκ³ νλμ κ·κ²©μ λ§μΆ, source μ μλΉμ μ¬μ΄μ μ€κ° μνλ‘ λ΄λλ€.
- Gold λ μ§κ³μ modeling μ λ§μΉ κ²°κ³Όλ₯Ό κ·Έκ²μ μ½λ μͺ½μ λ§μΆ° λ΄λλ€. BI (Business Intelligence) λ³΄κ³ λ₯Ό μν star schema, model νλ ¨μ μν feature νκ° κ·Έκ²μ΄λ€.
Fig 1 μ layer λ§λ€ κ·Έ 보μ¦μ μ λλ€.
BRONZE SILVER GOLD
βββββββββββββββββββββββββ βββββββββββββββββββββββββ βββββββββββββββββββββββββ
β keep it β β make it β β make it β
β as it landed β βββ> β trustworthy β βββ> β model-ready β
βββββββββββββββββββββββββ βββββββββββββββββββββββββ βββββββββββββββββββββββββ
written once and nulls, outliers and features built and
never edited, the clocks resolved, so reduced, and pinned
only safety net the data can be to a version so that
if a parse is wrong queried with trust train and serve agree
and fed to a model
Fig 1. What each Medallion layer guarantees and what its data can be used for
Bronze λ κΈ°λ‘μ΄ λμ°©ν κ·Έλλ‘μμ, Silver λ κ°μ λ―Ώμ μ μμμ, Gold λ μ΄μ΄ model μ΄ κ·Έλλ‘ μ°λ κ²μμ 보μ¦νλ€. κΌμ§ 2 λ pipeline μ μ¬μ― stage λ₯Ό μ΄ layer μμ λ°°μΉνκ³ , κΌμ§ 3 μ κ° stage λ₯Ό μ°¨λ‘λ‘ λ€λ£¬λ€.
μ¬μ― stage λ λ°μ΄ν°λ₯Ό νμ§κ³Ό μ±μλλ‘ κ°λ₯΄λ μ¬μ€μμ νμ€μΈ Medallion architecture μ μΈ layer μ λλμ΄ λ€μ΄κ°λ€.
Fig 2 λ stage μ¬μ΄ transform μ μ΄λ¦κ³Ό Transformed Data λ‘ λ€μ΄κ°λ λ κΈΈμ 보μΈλ€.
BRONZE SILVER GOLD
βββββββββββββ¬ββββββββββββ βββββββββββββ βββββββββββββββ βββββββββββββββ βββββββββββββ
β Original β Raw β ββ> β Clean β ββ> β Reshaped β ββ> β Transformed β ββ> β Feature β
βββββββββββββ΄ββββββββββββ βββββββ¬ββββββ βββββββββββββββ ββββββββ΄βββββββ βββββββββββββ
βββ parse βββ clean β reshape scale ^ features
ββββββββββββββββββββββββββββββββββββββββ
Fig 2. The six stages, the transform between them, and the layers they fall into
Transformed Data λ Reshaped Data λ₯Ό μ½κ³ , νλ₯Ό λ€μ λ°°μΉν νμκ° μμΌλ©΄ Clean Data λ₯Ό λ°λ‘ μ½λλ€. Feature Data λ Transformed Data λ§ μ½λλ€.
Table 1. Medallion layers and the stages they hold
| Layer | Stages | State | Purpose |
|---|---|---|---|
| Bronze | Original + Raw | λμ°©ν κ·Έλλ‘. νμ λΆμΌμΉμ λΉμ ν λ΄μ© ν¬ν¨ | μλ³Έ κΈ°λ‘ λ³΄μ‘΄ |
| Silver | Clean + Reshaped + Transformed | μ μ Β·μ κ·ν ν model μ λ ₯ ννλ‘ μ¬λ°°μΉνκ³ model μ΄ μ½λ μ²λλ‘ λ€μ νν | μ λ’°ν μ μκ³ μ‘°ν κ°λ₯ν λ°μ΄ν°. μ feature κ° νμ μμΌλ©΄ model μλ κ·Έλλ‘ ν¬μ |
| Gold | Feature | μμ ν κ°κ³΅λ μ΅κ³ μ±μλ | model μ κ·Έλλ‘ ν¬μ |
Reshaped Data μ Transformed Data λ κ³ΌλκΈ°μ μ΄λ€. model μ 무κ΄ν μμ β λ¨μ μ¬λ°°μΉ, νμ€ windowing, νμ€ scaling β μ μ¬λ¬ model μ΄ ν¨κ» μΈ μ μμΌλ―λ‘ Silver μ λ¨κ³ , νΉμ model μλ§ λ§μΆ μ¬λ°°μΉλ encoding μ Gold μͺ½μΌλ‘ κΈ°μ΄λ€. μ¬λ¬ model μ΄ κ°μ μ°μΆλ¬Όμ μ¬μ¬μ©νλ€λ©΄ Silver μ κ³ μ νλ κ²μ΄ λ«λ€. μλ‘ λ§λ€ feature κ° νμ μλ model μ Silver μ°μΆλ¬Όλ‘ λ°λ‘ νλ ¨ν μ μλ€. Transformed Data κ° κ·Έ model μ΄ μ½λ μ λ ₯ ννμ μ²λλ₯Ό ν¨κ» κ°μΆκ³ μκΈ° λλ¬Έμ΄λ€.
κ° source μμ λμ°©ν κ·Έλλ‘μ μλμ§ μμ file μ΄λ€. source μ version λ§λ€ κ³ μ ν νμ β CSV (Comma-Separated Values), JSON (JavaScript Object Notation), XML (Extensible Markup Language) β κ³Ό κ³ μ ν μ΄ μ΄λ¦, κ³ μ ν header κ΄λ‘λ₯Ό κ°μ§λ€. μ΄ file μ λ°μ κ·Έλλ‘ λ³΄κ΄νλ©° μ μ리μμ κ³ μΉμ§ μλλ€. μλ³Έ κΈ°λ‘μ΄μ, λμ€μ parsing κ²°ν¨μ΄ λλ¬λ¬μ λμ μ μΌν μμ λ§μ΄κΈ° λλ¬Έμ΄λ€.
κ°μ λ°μ΄ν°λ₯Ό νλμ schema λ‘ λ§μΆ κ²μ΄λ€. Original μ parsing νμ¬ μ΄ μ΄λ¦κ³Ό λ¨μμ timestamp λ₯Ό νμ€ννλ€. ννλ μΌκ΄ν΄μ‘μ§λ§ λ΄μ©μ μμ§ κ±°μΉ μ΄μ null κ³Ό μ΄μμΉμ μ€λ³΅μ΄ κ·Έλλ‘ λ¨μ μλ€. parsing μ idempotent νκ² μ μ§νμ¬ Raw λ₯Ό μΈμ λ Original μμ λ€μ λ§λ€ μ μκ² νλ€.
λ―Ώμ μ μλ λ°μ΄ν°μ΄λ€. κ²°μΈ‘κ°μ μ²λ¦¬νκ³ μ‘μκ³Ό μ΄μμΉλ₯Ό μ κ±°νλ©° source κ° timestamp λ₯Ό μ λ ¬νλ€. νμ μ κ°κ³ μ‘°νν μ μλ 첫 stage μ΄λ€. ν κ°μ§ μ£Όμν μ μ΄ μλ€. μΌμμ μΈ spike μ μ€μ λΆν¬ λ³ν β dataset shift [2] β λ ν΅κ³μ μΌλ‘ λΉμ·ν΄ λ³΄μΌ μ μμΌλ―λ‘, μ κ±° κ·μΉμ λλ©μΈ κ²ν λ₯Ό κ±°μ³ μ ν΄μΌ μ€μ μ νΈλ₯Ό λ²λ¦¬μ§ μλλ€.
κ°μ κ°μ model μ΄ μ½λ μΆμ λ§μΆ° λμ΄λμ κ²μ΄λ€. μ΄μ°¨μ (2D) ννλ XGBoost (eXtreme Gradient Boosting) κ°μ κ³ μ model μ μν [samples, features] νμ΄λ€. μΌμ°¨μ (3D) tensor ννλ Convolutional Neural Network (CNN) μ΄λ Long Short-Term Memory (LSTM) κ°μ deep model μ μν΄ μκ³μ΄ window λ₯Ό μ μ©νμ¬ [samples, timesteps, features] λ₯Ό λ§λ λ€. group key λ₯Ό ν¨κ» λ겨μ λμ€μ λ³΄μ§ μμ group μΌλ‘ model μ κ²μ¦ν μ μκ² νλ€.
κ°μ κ°μ model μ΄ μ½λ μ²λλ‘ λ€μ ννν κ²μ΄λ€. Numeric μ΄μ scaling νκ³ λ²μ£Ό μ΄μ encoding νλ©° μΉμ°μΉ μ΄μ λ¨μ‘° λ³νμ κ±°μΉλ€. νμ λ°°μΉλ 건λλ¦¬μ§ μμΌλ©°, μ΄κ²μ΄ Reshaped Data μ κ°λ¦¬λ μ§μ μ΄λ€. νμͺ½μ κ°μ΄ λμ΄λ λ°©μμ λ°κΎΈκ³ λ€λ₯Έ μͺ½μ κ° μ체λ₯Ό λ°κΎΌλ€. μ¬κΈ°μ μ ν©νλ parameter β scaler μ νκ· κ³Ό λΆμ°, encoder μ λ²μ£Ό λͺ©λ‘ β λ νλ ¨ νμμλ§ μ»μ΄ dataset κ³Ό ν¨κ» μ μ₯νλ€. serving μμ μ λ€μ μ ν©νλ κ²μ train/serve skew [3] λ‘ κ°λ μλ €μ§ κΈΈμ΄κΈ° λλ¬Έμ΄λ€.
μ΅μ νλ dataset μ΄λ€. λλ©μΈ μ§μμ΄ Transformed Data μ μ΄μ model μ΄ νμ΅νλ λ³μ β μ΄λ νκ· , μ£Όνμ μ±λΆ, embedding β λ‘ λ°κΎΈκ³ μ°¨μ μΆμλ₯Ό ν¨κ» μ μ©νλ€. feature κ° sample λ³΄λ€ λ§μμ§λ©΄ (
pipeline μ κ°μ΄μΉλ μ¬μ― κ°μ μ΄λ¦νκ° μλλΌ κ·Έ λ€μ κ·μ¨μ μλ€.
- Immutability β κ° layer λ ν λ² μ°κ³ μ μ리μμ κ³ μΉμ§ μλλ€.
- Reproducibility β κ° transform μ κ²°μ μ μ΄λ―λ‘ κ°μ μ λ ₯μ΄ κ°μ μΆλ ₯μ λΈλ€.
- Lineage β λͺ¨λ μ΄μ κ·Έκ²μ λ§λ source κΈ°λ‘κΉμ§ κ±°μ¬λ¬ κ° μ μλ€.
μ΄ μ μ΄ ν¨κ» μλͺ»λ μμΈ‘μ μ§λ¨ κ°λ₯νκ² λ§λ λ€. κ·Έ μμΈ‘μ μ€μ΄ λλ₯Έ μ΄μ λ€μ μ λν μ μκ³ , κ·Έ μ΄ λ€μ κΈ°λ‘μ μ΄μ΄ λ³Ό μ μλ€.
[1] Databricks. What is Medallion Architecture?. Databricks.
[2] QuiΓ±onero-Candela, J., Sugiyama, M., Schwaighofer, A., & Lawrence, N. D. (Eds.) (2009). Dataset Shift in Machine Learning. MIT Press. ISBN 978-0-262-17005-8.
[3] Sculley, D., Holt, G., Golovin, D., Davydov, E., Phillips, T., Ebner, D., Chaudhary, V., Young, M., Crespo, J.-F., & Dennison, D. (2015). Hidden Technical Debt in Machine Learning Systems. Advances in Neural Information Processing Systems, 28.
[4] BΓΌhlmann, P., & van de Geer, S. (2011). Statistics for High-Dimensional Data: Methods, Theory and Applications. Springer.
- Bronze: μ μ λ κ²μ¦ μμ΄ λμ°©ν κ·Έλλ‘μ λ°μ΄ν°λ₯Ό λ΄λ Medallion layer.
- dataset shift: νλ ¨ μμ κ³Ό serving μμ μ¬μ΄μμ μ λ ₯κ³Ό μΆλ ₯μ κ²°ν© λΆν¬κ° λ¬λΌμ§λ κ².
- Gold: μμ ν κ°κ³΅λμ΄ model μ λ°λ‘ μΈ μ μλ λ°μ΄ν°λ₯Ό λ΄λ Medallion layer.
- idempotent: μ¬λ¬ λ² μ μ©ν΄λ ν λ² μ μ©ν κ²κ³Ό κ°μ κ²°κ³Όλ₯Ό λ΄λ transform μ μ±μ§.
- lineage: ν μ΄μ κ·Έ κΈ°μκΉμ§ μλ, κΈ°λ‘μΌλ‘ λ¨μ transform μ μ¬μ¬.
- Medallion architecture: data lakehouse λ₯Ό λ°μ΄ν° νμ§κ³Ό μ±μλμ λ°λΌ Bronze, Silver, Gold λ‘ λλ κ³μΈ΅ ꡬ쑰.
- Silver: μ μ Β·μ κ·νλ λ€ model μ μν΄ μ¬λ°°μΉλκ³ λ€μ ννλ λ°μ΄ν°λ₯Ό λ΄λ Medallion layer.
- star schema: μΈ‘μ κ°μ νλμ fact table μ λκ³ κ·Έ μ€λͺ μμ±μ λλ μ dimension table μ λλ ν λ°°μΉ.
- train/serve skew: νλ ¨ μμ μ κ³μ°ν feature κ°κ³Ό serving μμ μ κ³μ°ν κ°μ΄ μ΄κΈλλ κ².
