Complete the code to enable DynamoDB Streams on a table.
aws dynamodb update-table --table-name MyTable --stream-specification StreamEnabled=[1]To enable DynamoDB Streams, the StreamEnabled parameter must be set to true.
Complete the code to specify the stream view type when enabling DynamoDB Streams.
aws dynamodb update-table --table-name MyTable --stream-specification StreamViewType=[1]The StreamViewType defines what information the stream captures. KEYS_ONLY captures only the primary key attributes.
Fix the error in the AWS CLI command to describe the latest stream ARN for a DynamoDB table.
aws dynamodb describe-table --table-name [1]The describe-table command requires the table name, not the stream name or ARN.
Fill both blanks to create a Python snippet that reads records from a DynamoDB stream using boto3.
response = client.get_records(ShardIterator=[1], Limit=[2])
The ShardIterator must be a string token, and Limit is an integer specifying max records.
Fill all three blanks to configure a DynamoDB stream with NEW_IMAGE view and enable it using AWS CLI.
aws dynamodb update-table --table-name [1] --stream-specification StreamEnabled=[2],StreamViewType=[3]
To enable streams with NEW_IMAGE view, set StreamEnabled to true and StreamViewType to NEW_IMAGE for the correct table.