Which option would enable DynamoDB table updates to trigger the Lambda function?
Change the StreamViewType parameter value to NEW_AND_OLD_IMAGES for the DynamoDB table
Configure event source mapping for the Lambda function
Map an Amazon SNS topic to the DynamoDB streams
Increase the maximum execution time (timeout) setting of the Lambda function
Explanations:
TheStreamViewTypeparameter defines the data returned by the stream (e.g., NEW_IMAGE, OLD_IMAGE). Changing this would not directly enable Lambda to be triggered.
Event source mapping connects DynamoDB Streams to the Lambda function. This is the correct configuration for triggering Lambda on table updates.
Mapping an SNS topic to DynamoDB Streams is unnecessary. Lambda can be triggered directly from DynamoDB Streams without SNS.
Increasing the timeout does not address the issue of Lambda not being triggered. Event source mapping is the solution.