Where would you store raw events and trusted daily revenue metrics?

Instruction: A retailer receives daily order events and product images. Analysts need consistent daily revenue; an ML team needs the images. Events can arrive late or be redelivered. Propose storage, processing, metric definitions, reconciliation, access and ownership rules. Explain how late corrections affect published reports.

Context: Design storage and processing boundaries for raw events, images and reliable reporting.

Updated

Official answer

I would separate preserved source data from the trusted reporting contract. Store permitted raw events and image objects with ingestion metadata, access controls, catalog entries and retention policies. Keep sufficient replay information to correct processing defects without treating raw records as approved metrics.

Build a curated sales dataset at a declared grain, such as one settled order line. Define revenue, refunds, currency conversion, event time and reporting timezone with the business owner. Deduplicate redeliveries by immutable event ID. Apply legitimate later changes to each business key using an explicit version or sequence order; handle corrections and reversals without dropping them as duplicates. Reconcile daily counts and amounts to the source.

Publish the daily revenue view through a warehouse or governed lakehouse table and semantic model. Images can remain in object storage with authorized references for ML use; they need not be loaded as reporting-table blobs.

For late events, define a correction window and whether reports are provisional or restated. Measure source-to-report lag and completeness separately. Apply least-privilege access to raw data and published metrics, with accountable owners for failures and reconciliation.

Choose concrete products after testing query latency, refresh needs, recovery and total cost. A particular storage label does not guarantee consistent revenue or cheap operation.

Source

Microsoft: modern data warehouse layers.

Related Questions