`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 →
- Store large payloads in S3 and keep the S3 key in the item
- Split unbounded lists into separate items under the same partition key (for example,
pk=USER#1, sk=EVENT#<ts>) - Compress large attributes (gzip into a Binary attribute)
Prevent → Never model unbounded collections inside one item, and keep attribute names short in hot tables.
More on RDS, Aurora and DynamoDB
The app cannot connect to RDS: `psql: error: connection to server at "mydb.abc.us-east-1.rds.amazonaws.com" (10.0.3.12), port 5432 failed: Connection timed out`.Beginner`FATAL: password authentication failed for user "postgres"` and nobody knows the master password.Beginner`FATAL: no pg_hba.conf entry for host "10.0.1.25", user "app", database "orders", no encryption`.IntermediateApp logs show `FATAL: remaining connection slots are reserved for non-replication superuser connections` (or MySQL `ERROR 1040 (HY000): Too many connections`).IntermediateRDS status shows `storage-full` and writes fail.IntermediateA read replica's `ReplicaLag` keeps growing and reports show stale data.Intermediate