0
0
AWScloud~20 mins

DynamoDB Streams overview in AWS - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
DynamoDB Streams Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
How does DynamoDB Streams capture data changes?

Which statement best describes how DynamoDB Streams captures changes in a DynamoDB table?

AIt sends notifications to an email address for each data change.
BIt captures only the final state of the table once every hour.
CIt stores a backup of the entire table every time a change happens.
DIt records every data modification as a stream record in the order they occurred.
Attempts:
2 left
💡 Hint

Think about how a stream works as a sequence of events.

service_behavior
intermediate
2:00remaining
What happens when you enable DynamoDB Streams on a table?

After enabling DynamoDB Streams on a table, what is the immediate effect on the table's behavior?

AThe table sends a summary report of changes to CloudWatch Logs.
BThe table starts recording item-level changes as stream records for up to 24 hours.
CThe table disables all write operations until the stream is processed.
DThe table automatically backs up all data to S3 every 5 minutes.
Attempts:
2 left
💡 Hint

Consider what DynamoDB Streams stores and for how long.

Architecture
advanced
2:00remaining
Designing a system to process DynamoDB Streams with Lambda

You want to process DynamoDB Streams records using AWS Lambda. Which architecture ensures that each stream record is processed exactly once and in order?

AConfigure Lambda with batch size 1 and enable the 'bisect on function error' option.
BUse multiple Lambda functions triggered by the same stream to increase parallelism.
CSet Lambda batch size to maximum and disable retries to speed up processing.
DProcess the stream records manually by polling the stream with a custom script.
Attempts:
2 left
💡 Hint

Think about how to maintain order and avoid duplicate processing.

security
advanced
2:00remaining
Securing access to DynamoDB Streams

Which IAM policy action is required to allow a Lambda function to read from a DynamoDB Stream?

A"lambda:InvokeFunction" and "dynamodb:DeleteStream"
B"dynamodb:PutItem" and "dynamodb:UpdateItem"
C"dynamodb:DescribeStream" and "dynamodb:GetRecords"
D"s3:GetObject" and "dynamodb:Scan"
Attempts:
2 left
💡 Hint

Focus on permissions related to reading stream data.

Best Practice
expert
2:00remaining
Handling stream record retention and data loss risks

DynamoDB Streams retains records for 24 hours. What is the best practice to avoid data loss if your stream processing application is down for longer than 24 hours?

AUse DynamoDB Streams with Kinesis Data Streams to extend retention and replay capability.
BIncrease the stream retention period to 7 days in the DynamoDB table settings.
CPeriodically back up the DynamoDB table and restore it if the stream is lost.
DImplement a dead-letter queue (DLQ) to capture failed stream records for later processing.
Attempts:
2 left
💡 Hint

Consider how to extend stream retention beyond the default limit.