CertKeen

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?

  1. A.A scheduled Lambda function that scans the table every minute
  2. B.DynamoDB point-in-time recovery with an export to S3
  3. C.DynamoDB Streams on the table with a Lambda function as the stream consumer
  4. 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