Skip to main content

Platform Build Playbook — FNB Medallion Platform

This playbook documents how the FNB data platform was built phase by phase. Use it as a reusable template when building a similar GCP medallion platform for a new domain or client.


How to Use This Playbook

Each phase is a self-contained prompt + task checklist. Work through them in order. Each phase feeds into the next.

PhaseFileWhat It Produces
0phase-0-profiling.mdSource profiling report, grain + key decisions
1phase-1-bronze.mdLoaded bronze tables, ingestion audit
2phase-2-silver-dims.mddim_* tables, normalized keys
3phase-3-silver-rules.mdfact_* tables, bridge tables
4phase-4-silver-resolved.mdResolved analytic table (core grain)
5phase-5-gold.mdGold marts, KPI definitions
6phase-6-quality.mdTests, exception tables, reconciliation
7phase-7-extensibility.mdExtension strategy, future hooks
business-questions.mdFull business question catalogue by stakeholder

Adapting for a New Domain

  1. Replace all references to "food additives" / "CODEX" with your new domain
  2. Keep the same phase sequence — the pattern is domain-agnostic
  3. Phase 0 is the most important: get grain and keys right before writing any SQL
  4. Phases 2–4 form the silver core — do not skip or merge them
  5. Phase 6 is not optional — data quality gates protect gold consumers

Stack Assumptions

  • Cloud: GCP
  • Warehouse: BigQuery
  • Transformations: Dataform (Core 3.0+)
  • Infra: Terraform
  • BI: Plotly/React UI
  • Governance: Dataplex Universal Catalog