Where should each representation live
A small team serves governed daily SQL reports, retains carrier JSON for replay, and wants occasional model training on event histories.
The interview prompt
A small team serves governed daily SQL reports, retains carrier JSON for replay, and wants occasional model training on event histories. Sketch two viable architectures. Explain what would make you choose one after a pilot.
Draw two alternatives under identical assumptions
Option one keeps immutable extracts in object storage and builds curated warehouse facts for reports. Finance receives mature SQL access and an isolated reporting workload. The team now owns a copy boundary between retained inputs and served tables. Put a freshness check and reconciliation on that boundary. Model training can consume an appropriately governed export or source table.
Option two keeps curated analytical tables in lake storage with a table format, catalog, and query engines that can read them consistently. File-level retention alone gives no guarantee that a reader sees a coherent table update. Identify who owns commits, compaction, old snapshot expiry, and access policy across engines. An application requiring low-latency point reads may still need its own serving projection.
For a fair pilot, replay the same correction-heavy week. Run a dashboard during a backfill, time a wider scan, and measure the delay before a corrected row becomes visible to each consumer. Count recurring operational work and the cost of failure recovery. A benchmark limited to clean append-only data will miss the workload you actually need to operate. Start with the simpler option when it meets the measured requirements.
The model behind the answer
Maya has carrier files, checkout records, and daily finance reports. A data warehouse can serve curated analytical tables with managed query execution. A data lake can retain original extracts and varied file formats for reprocessing. A lakehouse brings table management and analytical querying to data in lake storage. Which capability would relieve Maya’s bottleneck?
A normalized order database keeps related entities and updates manageable during checkout. Its JSON API may nest all lines inside one order for a convenient read. A dimensional star gives finance a declared analytical grain. These representations can coexist. Copying a nested order into object storage still leaves the analytical question of how to count a line that ships twice.
Distinguish the parts of a lakehouse in the sketch. Parquet describes data inside files. A table format such as Iceberg tracks which files make up a consistent table snapshot. A compute engine executes the query. Benchmark concurrent reads, corrections, and maintenance before choosing where to serve the report. The original lakehouse paper · Iceberg on reliable table updates
Ask for a decision record with an exit test
Have the agent write two short architecture options against the same reporting deadline, raw-data retention need and team size. Reserve the actual decision for the team that will operate it. Give both prototypes the same late correction during a backfill.
Reviewer decision. The reviewer compares finance totals, dashboard latency, time to rebuild and operator steps. Record which observation would reverse the decision. An option that meets the deadline only while a specialist manually repairs the table has an operating cost the initial architecture diagram omits.
Further reading. Deciphering Data Architectures, 1st ed., on starting an architecture design session with discovery questions.
One more question
The organization already has a lakehouse. Does that settle whether the finance model should be a star?
Check your reasoning
The storage and table-management architecture leaves the analytical grain and join semantics open. Use a star if it helps consumers ask the required questions correctly. Raw operational documents, integration models, and dimensional serving tables can all live in one lakehouse.
Previous · Fresh, complete, and fit to use · Next · Who owns the definition of a shipment · Complete series map