Skill 3.4.5

Implement data skew mechanisms

Key Concepts

In Spark (Glue/EMR): detect skew in Spark UI (one long task), then salt hot keys (add a random suffix and aggregate in two stages), enable adaptive query execution skew join handling, broadcast small tables and repartition by better keys.

In Redshift, choose distribution keys with high cardinality and even distribution (check SVV_TABLE_INFO skew); in Kinesis and DynamoDB, use high-cardinality partition keys.