Interview Prep/AWS/RDS, Aurora and DynamoDB

`ValidationException: Item size has exceeded the maximum allowed size`.

BeginnerTroubleshootingRDS, Aurora and DynamoDB
Answer

Likely causes → A DynamoDB item, including attribute names, is limited to 400 KB. A common cause is lists that keep growing (events, comments) or embedded blobs.

Diagnose →

aws dynamodb get-item --table-name sessions --key '{"id":{"S":"u-1"}}' --output json | wc -c

Fix →

  1. Store large payloads in S3 and keep the S3 key in the item
  2. Split unbounded lists into separate items under the same partition key (for example, pk=USER#1, sk=EVENT#<ts>)
  3. Compress large attributes (gzip into a Binary attribute)

Prevent → Never model unbounded collections inside one item, and keep attribute names short in hot tables.

aws All AWS questions Roadmap: AWS core services

More on RDS, Aurora and DynamoDB