Skill 2.4.5
Describe best practices for indexing, partitioning strategies, compression, and other data optimization techniques
Key Concepts
Partition by low-to-moderate cardinality columns used in filters (date, region); avoid too many small partitions. Use columnar formats with compression (Snappy for speed, ZSTD/GZIP for size), file sizes around 128 MB-1 GB, bucketing for joins and sorting/clustering for pruning.
Databases: indexes on filter and join columns (B-tree), Redshift sort keys and zone maps, DynamoDB GSIs; maintain statistics (ANALYZE) and vacuum where applicable.