Data Modeling and Schema Evolution
Unlock the complete study guide + 1,040 practice questions across 16 full exams.
Bundled into the existing AWS Certified Data Engineer - Associate premium course — no separate purchase.
Included in this chapter:
- Access patterns come first, then the schema
- Redshift: distribution style and sort key
- DynamoDB: composite keys and secondary indexes
- Schema and partition evolution in open table formats
- Schema conversion, lineage, and exam-pattern recognition
Schema-design levers by target store
| Decision | Amazon Redshift | Amazon DynamoDB | Data lake (Iceberg / Lake Formation) |
|---|---|---|---|
| Primary modeling unit | Star/snowflake fact + dimension tables | Item collections under a composite key | Partitioned columnar tables over S3 |
| Locality / co-location lever | Distribution style KEY / ALL / EVEN / AUTO | Partition key (same key = same partition) | Partition columns (filter-prune prefixes) |
| Scan-reduction lever | Sort key (compound vs interleaved) | Sort key + secondary indexes (GSI/LSI) | Partition pruning + columnar encoding |
| Add a new query pattern | Add/alter sort or dist key (may rebuild) | Add a GSI (LSI only at create time) | Add a partition field via partition evolution |
| Schema change cost | ALTER TABLE; type change may deep-copy | Per-item, schemaless; no migration | Metadata-only via Iceberg column IDs |
Decision tree
Cheat sheet
Unlock with Premium — includes all practice exams and the complete study guide.