0
0
DynamoDBquery~20 mins

Item size limits and considerations in DynamoDB - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
DynamoDB Item Size Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
query_result
intermediate
1:30remaining
Maximum item size in DynamoDB

What is the maximum size allowed for a single item in DynamoDB, including all attribute names and values?

A256 KB
B1 MB
C400 KB
D100 KB
Attempts:
2 left
💡 Hint

Think about the official documented limit for item size in DynamoDB.

🧠 Conceptual
intermediate
1:30remaining
Impact of large items on DynamoDB performance

Which of the following is a true statement about storing very large items close to the 400 KB limit in DynamoDB?

ALarge items have no impact on performance or cost.
BLarge items reduce the cost because fewer items are stored.
CLarge items automatically compress to save space and speed up queries.
DLarge items increase read and write latency and consume more throughput capacity.
Attempts:
2 left
💡 Hint

Think about how size affects throughput and latency in databases.

📝 Syntax
advanced
2:00remaining
Identify the error in this DynamoDB item size calculation

Given this JSON item stored in DynamoDB, which option correctly calculates the total item size?

{"UserId": "12345", "Profile": {"Name": "Alice", "Bio": "A short bio."}}
ACount only the number of attributes ignoring their values
BSum of UTF-8 bytes of all attribute names and values including nested attributes
CSum of characters in attribute values only
DSum of attribute names only
Attempts:
2 left
💡 Hint

Remember that DynamoDB counts bytes, not characters, and includes attribute names and nested attributes.

optimization
advanced
2:00remaining
Best practice to handle items exceeding size limits

You have items that exceed the 400 KB limit in DynamoDB. Which approach is best to handle this situation?

ASplit the large item into multiple smaller items and use a composite key to link them.
BStore the entire large item as a single attribute using a string type.
CIncrease the item size limit in DynamoDB settings.
DCompress the item data and store it as binary without splitting.
Attempts:
2 left
💡 Hint

DynamoDB does not allow increasing item size limits. Think about splitting data logically.

🔧 Debug
expert
2:30remaining
Why does this DynamoDB PutItem operation fail?

A developer tries to insert this item but gets a ValidationException error:

{"OrderId": "001", "Details": {"Description": "A very long text exceeding 400 KB..."}}

What is the most likely cause?

AThe total item size exceeds the 400 KB limit allowed by DynamoDB.
BThe attribute name 'Details' is reserved and cannot be used.
CThe 'OrderId' attribute must be a number, not a string.
DDynamoDB does not support nested JSON objects in items.
Attempts:
2 left
💡 Hint

Consider DynamoDB limits on item size and attribute types.