AWS Solutions Architect Associate (SAA-C03) · Free practice question 8 of 12
DynamoDB Streams with Lambda
Whenever an item is added or updated in a DynamoDB table at Orchard Rewards, the company wants to send a notification to the customer and update a search index within seconds. The team prefers a serverless design that does not poll the table. Which approach should be used?
- A.A scheduled Lambda function that scans the table every minute
- B.DynamoDB point-in-time recovery with an export to S3
- C.DynamoDB Streams on the table with a Lambda function as the stream consumer
- D.A global secondary index that projects all attributes
Show answer and explanation
Correct answer: C. DynamoDB Streams on the table with a Lambda function as the stream consumer
Why: DynamoDB Streams records item-level changes, and a Lambda event source mapping processes those change records shortly after they occur, without the application polling the table. Scanning every minute is slow and consumes read capacity, point-in-time recovery and exports are for backup and analytics, and a GSI provides an alternate query pattern rather than change events.
More free AWS Solutions Architect Associate (SAA-C03) questions
- IAM explicit deny overrides allow
- VPC Flow Logs for connectivity troubleshooting
- Transit Gateway instead of peering mesh
- Scheduled scaling for predictable peaks
- RDS point-in-time restore
- Route 53 geolocation routing
- Data Lifecycle Manager for EBS snapshots
- Amazon MQ for broker migrations
- Graviton instances for price-performance
- Amazon Inspector vulnerability scanning
- Root user protection best practices