AWS Certified Developer – Associate — Question 5

A Developer has been asked to create an AWS Lambda function that is triggered any time updates are made to items in an Amazon DynamoDB table. The function has been created, and appropriate permissions have been added to the Lambda execution role. Amazon DynamoDB streams have been enabled for the table, but the function is still not being triggered.
Which option would enable DynamoDB table updates to trigger the Lambda function?

Answer options

Correct answer: B

Explanation

The correct answer is B because configuring event source mapping is essential for linking the DynamoDB stream to the Lambda function, enabling the function to respond to changes. Option A is incorrect as changing the StreamViewType does not directly set up the trigger. Option C is also wrong since mapping an SNS topic does not facilitate triggering the Lambda function from DynamoDB updates. Option D is irrelevant as increasing the timeout does not impact the triggering mechanism.