Evolve schemas without losing history or lineage
A customer tier can change after a purchase.
Evolve schemas without losing history or lineage
A customer tier can change after a purchase. Decide whether an analyst needs the tier at purchase time or today's tier. Preserve effective dates when historical reporting matters. Trace a derived column to its source and transformation version before changing its type. In embedding pipelines, keep model version and distance metric with the index.
Decisions to rehearse
- Type 2 dimension
- Versioned rows with validity intervals preserve the attribute value that applied at an event time.
- Access-pattern partition key
- Distributing frequently accessed keys reduces hot partitions and supports the intended queries.
- Column-level lineage
- Tracing an output field to its source expressions identifies affected consumers of a schema change.
- Versioned embedding rebuild
- Embeddings produced by incompatible models cannot safely share one similarity space.
Practise each AWS skill
These references use the skill numbers in the AWS guide.
- 2.4.1 · Choose a star schema for warehouse analytics and a key schema for operational lookup, then govern permitted access.
- 2.4.2 · Handle an optional new field and a breaking type change separately at ingestion and in dependent consumers.
- 2.4.3 · Inspect conversion output for one incompatible source type before starting a heterogeneous database migration.
- 2.4.4 · Trace one derived business field to its input, transformation revision and downstream readers.
- 2.4.5 · Choose a partition predicate, sort order and compression scheme using an actual query and storage measurement.
- 2.4.6 · Version the embedding model and metric with each index, and test a familiar semantic query after rebuilding.
Official skills for this topic
Work through the decision
The same invoice's history points to different customer regions after an overnight refresh. Which join would let the report reproduce the region recorded when the sale occurred?
Check your reasoning
Maintain nonoverlapping effective intervals per customer and join on both customer key and sale timestamp. Check interval boundaries and one-row-per-invoice grain before summing money.
Related lesson in Fabric Data Engineer Associate · Load new and changed records safely.
Evolve schemas without losing history or lineage quiz
Answer 3 questions. Check each answer for an explanation.