
Ultimate access to all questions.
Your company is migrating from a MongoDB database to Amazon DynamoDB. The existing schema includes a collection with user activities, which includes user ID, activity type, timestamp, and details. The details are stored as a nested JSON object within the activity record. What approach should be taken to convert this schema to DynamoDB?
A
Flatten the nested JSON object and store it in a separate DynamoDB table.
B
Keep the nested JSON object as is and use DynamoDB's support for nested attributes.
C
Convert the nested JSON object into a string and store it in a single DynamoDB attribute.
D
Create a new DynamoDB table for each nested JSON object.