
Explanation:
DynamoDB supports nested attributes, which allows for the storage of complex data structures within a single item. This approach maintains the integrity of the data model and simplifies queries by keeping related data together.
Ultimate access to all questions.
No comments yet.
Your company is migrating from a Cassandra database to Amazon DynamoDB. The existing schema includes a table with user sessions, which includes session ID, user ID, start time, end time, and actions. The actions are stored as a list of JSON objects within the session record. What approach should be taken to convert this schema to DynamoDB?
A
Flatten the list of JSON objects and store it in a separate DynamoDB table.
B
Keep the list of JSON objects as is and use DynamoDB's support for nested attributes.
C
Convert the list of JSON objects into a string and store it in a single DynamoDB attribute.
D
Create a new DynamoDB table for each list of JSON objects.