0
0
DynamoDBquery~10 mins

DynamoDB Streams concept - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to enable DynamoDB Streams on a table.

DynamoDB
aws dynamodb update-table --table-name MyTable --stream-specification StreamEnabled=[1]
Drag options to blanks, or click blank then click option'
Atrue
Bon
Cenabled
Dfalse
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'enabled' or 'on' instead of true.
Using uppercase True which is invalid in CLI.
2fill in blank
medium

Complete the code to specify the type of data captured by DynamoDB Streams.

DynamoDB
aws dynamodb update-table --table-name MyTable --stream-specification StreamViewType=[1]
Drag options to blanks, or click blank then click option'
ANEW_IMAGE
BNEW_AND_OLD_IMAGES
CKEYS_ONLY
DOLD_IMAGE
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing only keys or partial images instead of all attributes.
3fill in blank
hard

Fix the error in the code to read records from a DynamoDB Stream using AWS CLI.

DynamoDB
aws dynamodbstreams get-records --[1] iterator123
Drag options to blanks, or click blank then click option'
Ashard-iterator
BshardIterator
Csharditerator
DSharditerator
Attempts:
3 left
💡 Hint
Common Mistakes
Using lowercase or incorrect casing for parameter names.
4fill in blank
hard

Fill both blanks to create a DynamoDB Stream ARN for a table named 'Orders'.

DynamoDB
arn:aws:dynamodb:[1]:123456789012:table/[2]/stream/2023-01-01T00:00:00.000
Drag options to blanks, or click blank then click option'
Aus-east-1
Bus-west-2
COrders
DCustomers
Attempts:
3 left
💡 Hint
Common Mistakes
Using wrong region or table name in the ARN.
5fill in blank
hard

Fill all three blanks to filter DynamoDB Stream records for INSERT events using AWS CLI.

DynamoDB
aws dynamodbstreams get-records --shard-iterator [1] | jq '.Records[] | select(.eventName == "[2]") | .[3]'
Drag options to blanks, or click blank then click option'
Aiterator123
BINSERT
Cdynamodb
DMODIFY
Attempts:
3 left
💡 Hint
Common Mistakes
Using wrong eventName like MODIFY or DELETE.
Incorrect shard iterator value.
Accessing wrong JSON field.