InterviewHubPRO
Section Overview
Q50

Question 50 of 65

Part 4: Storage, Content Delivery & Databases (36 - 50)

77%
AWS Cloud Architecture•Part 4: Storage, Content Delivery & Databases (36 - 50)

DynamoDB Streams.

In Simple Words: A 24-hour time-ordered changelog of item modifications (INSERT, MODIFY, REMOVE). Automatically triggers AWS Lambda functions for event-driven workflows (e.g., sending notification emails or updating search indices).

typescript
// Lambda processing DynamoDB Stream records:
export const handler = async (event: any) => {
  for (const record of event.Records) {
    if (record.eventName === 'INSERT') {
      const newItem = record.dynamodb.NewImage;
      console.log('New item created:', newItem.PK.S);
    }
  }
};