0
0
AWScloud~10 mins

DynamoDB Streams overview in AWS - 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.

AWS
aws dynamodb update-table --table-name MyTable --stream-specification StreamEnabled=[1]
Drag options to blanks, or click blank then click option'
Afalse
Btrue
CEnabled
DYes
Attempts:
3 left
💡 Hint
Common Mistakes
Using string values like 'Enabled' instead of boolean true.
2fill in blank
medium

Complete the code to specify the stream view type when enabling DynamoDB Streams.

AWS
aws dynamodb update-table --table-name MyTable --stream-specification StreamViewType=[1]
Drag options to blanks, or click blank then click option'
AKEYS_ONLY
BFULL_IMAGE
CNEW_IMAGE
DOLD_IMAGE
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing FULL_IMAGE which captures all attributes, not just keys.
3fill in blank
hard

Fix the error in the AWS CLI command to describe the latest stream ARN for a DynamoDB table.

AWS
aws dynamodb describe-table --table-name [1]
Drag options to blanks, or click blank then click option'
ATableName
BMyStream
CMyTable
DStreamARN
Attempts:
3 left
💡 Hint
Common Mistakes
Using the stream ARN instead of the table name.
4fill in blank
hard

Fill both blanks to create a Python snippet that reads records from a DynamoDB stream using boto3.

AWS
response = client.get_records(ShardIterator=[1], Limit=[2])
Drag options to blanks, or click blank then click option'
A'shard_iterator_value'
B100
C200
D'iterator_value'
Attempts:
3 left
💡 Hint
Common Mistakes
Using an integer for ShardIterator or a string for Limit.
5fill in blank
hard

Fill all three blanks to configure a DynamoDB stream with NEW_IMAGE view and enable it using AWS CLI.

AWS
aws dynamodb update-table --table-name [1] --stream-specification StreamEnabled=[2],StreamViewType=[3]
Drag options to blanks, or click blank then click option'
AMyTable
Btrue
CNEW_IMAGE
Dfalse
Attempts:
3 left
💡 Hint
Common Mistakes
Disabling the stream or using incorrect view types.