Skill 1.1.7

Serialize and deserialize data to integrate application code with AWS services.

Key Concepts

DynamoDB's low-level API uses typed attribute values, such as {"S": "abc"} for strings and {"N": "42"} for numbers, with numbers sent as strings. Higher-level SDK helpers handle this conversion for you, for example the Python boto3 resource layer and TypeSerializer, the JavaScript DynamoDBDocumentClient and marshall/unmarshall utilities, and the Java Enhanced Client that maps classes to tables.

Data stored in S3 or sent through queues is usually serialised as JSON, or as compact formats such as Avro, Parquet or Protocol Buffers for analytics and streaming. Watch for type issues such as floats (boto3 requires Decimal for DynamoDB numbers), dates (store as ISO 8601 strings or epoch numbers) and size limits such as DynamoDB's 400 KB item size and SQS's 1 MiB message size (256 KB before August 2025).