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 type of data captured by DynamoDB Streams.
aws dynamodb update-table --table-name MyTable --stream-specification StreamViewType=[1]NEW_AND_OLD_IMAGES captures the entire item, both new and old images.
Fix the error in the code to read records from a DynamoDB Stream using AWS CLI.
aws dynamodbstreams get-records --[1] iterator123The correct parameter name is 'shard-iterator' with lowercase letters and hyphen.
Fill both blanks to create a DynamoDB Stream ARN for a table named 'Orders'.
arn:aws:dynamodb:[1]:123456789012:table/[2]/stream/2023-01-01T00:00:00.000
The region is 'us-west-2' and the table name is 'Orders' to form the correct ARN.
Fill all three blanks to filter DynamoDB Stream records for INSERT events using AWS CLI.
aws dynamodbstreams get-records --shard-iterator [1] | jq '.Records[] | select(.eventName == "[2]") | .[3]'
The shard iterator is 'iterator123', eventName filter is 'INSERT', and the data is under 'dynamodb' key.