Design a Medallion-Architecture Data Warehouse with Bronze, Silver and Gold Layers

Quick Overview

A data engineering system design question: design a data warehouse with the medallion architecture and explain what the bronze, silver and gold layers each hold and guarantee. It tests ingestion and replay, cleaning and deduplication, dimensional modeling, incremental processing, data quality and governance.

Design a Medallion-Architecture Data Warehouse with Bronze, Silver and Gold Layers

Company: Hims & Hers

Role: Data Engineer

Category: System Design

Difficulty: medium

Interview Round: Technical Screen

Design a data warehouse using the medallion architecture, and walk the interviewer through the design layer by layer: what lands in the bronze layer, what the silver layer does to it, and what the gold layer serves. The reported prompt names only the architecture and its three layers, so the source systems, data volumes, freshness targets and consumers are open: settle them with the interviewer before designing. ```hint What each layer promises For each layer, decide what a consumer can rely on: data that is complete and replayable, data that is cleaned and deduplicated, or data shaped for specific business questions. ``` ```hint Plan for reprocessing Ask what happens when a transformation bug is discovered long after the data landed, and which layer must still hold what is needed to rebuild everything downstream. ``` ### Clarifying Questions - Which source systems feed the warehouse: operational databases, application event streams, files, third-party APIs? Can the databases provide change data capture? - How fresh must each consumer's data be: daily reports, hourly dashboards, or near real time? - Who consumes the gold layer: BI dashboards, analysts writing SQL, ML feature pipelines, external reporting? - What data volumes and growth should the design assume? - Do any sources contain personal or regulated data that must be masked, access-controlled or deleted on request? - Is there an existing platform to build on (a cloud warehouse, a lakehouse table format on object storage, an orchestrator), or is the choice open? - Do analysts need to see entity attributes as they were at the time of each event, or only their current values? ### What a Strong Answer Covers - Requirements agreed first: sources, freshness, consumers, volumes and data sensitivity - A bronze layer that keeps raw data append-only and replayable, with ingestion metadata - A silver layer that types, deduplicates, conforms and validates data, with a policy for bad records, schema changes and late data - A gold layer modeled for its consumers (facts, dimensions, aggregates) with a declared grain and history handling - Incremental, idempotent processing, orchestration and backfills - Data quality, governance and access control, lineage, cost and monitoring across the layers ### Follow-up Questions - A source team renames and retypes a column without notice. What happens in each layer, and how does the pipeline recover? - A bug in a silver transformation produced wrong numbers for weeks. How do you correct the gold tables and inform consumers? - A user asks for their personal data to be deleted. How do you honor that when the bronze layer is append-only? - Some dashboards now need data within minutes instead of daily. What changes in the design?

Overview: A data engineering system design question: design a data warehouse with the medallion architecture and explain what the bronze, silver and gold layers each hold and guarantee. It tests ingestion and replay, cleaning and deduplication, dimensional modeling, incremental processing, data quality and governance.

Hims & Hers logo
Hims & Hers
Dec 25, 2025
mediumData EngineerTechnical ScreenSystem Design
0
0

Design a data warehouse using the medallion architecture, and walk the interviewer through the design layer by layer: what lands in the bronze layer, what the silver layer does to it, and what the gold layer serves. The reported prompt names only the architecture and its three layers, so the source systems, data volumes, freshness targets and consumers are open: settle them with the interviewer before designing.

Clarifying Questions Guidance

  • Which source systems feed the warehouse: operational databases, application event streams, files, third-party APIs? Can the databases provide change data capture?
  • How fresh must each consumer's data be: daily reports, hourly dashboards, or near real time?
  • Who consumes the gold layer: BI dashboards, analysts writing SQL, ML feature pipelines, external reporting?
  • What data volumes and growth should the design assume?
  • Do any sources contain personal or regulated data that must be masked, access-controlled or deleted on request?
  • Is there an existing platform to build on (a cloud warehouse, a lakehouse table format on object storage, an orchestrator), or is the choice open?
  • Do analysts need to see entity attributes as they were at the time of each event, or only their current values?

What a Strong Answer Covers Guidance

  • Requirements agreed first: sources, freshness, consumers, volumes and data sensitivity
  • A bronze layer that keeps raw data append-only and replayable, with ingestion metadata
  • A silver layer that types, deduplicates, conforms and validates data, with a policy for bad records, schema changes and late data
  • A gold layer modeled for its consumers (facts, dimensions, aggregates) with a declared grain and history handling
  • Incremental, idempotent processing, orchestration and backfills
  • Data quality, governance and access control, lineage, cost and monitoring across the layers

Follow-up Questions Guidance

  • A source team renames and retypes a column without notice. What happens in each layer, and how does the pipeline recover?
  • A bug in a silver transformation produced wrong numbers for weeks. How do you correct the gold tables and inform consumers?
  • A user asks for their personal data to be deleted. How do you honor that when the bronze layer is append-only?
  • Some dashboards now need data within minutes instead of daily. What changes in the design?