Which option would enable DynamoDB table updates to invoke 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 Simple Notification Service (Amazon SNS) topic to the DynamoDB streams.
Increase the maximum runtime (timeout) setting of the Lambda function.
Explanations:
Changing the StreamViewType to NEW_AND_OLD_IMAGES allows the stream to include both the new and old images of the item, but it does not directly invoke the Lambda function. The stream must still be configured to trigger the Lambda function.
Configuring event source mapping for the Lambda function is essential for linking the DynamoDB stream to the Lambda function. This mapping allows the Lambda function to be invoked automatically when there are updates to items in the DynamoDB table.
Mapping an Amazon SNS topic to the DynamoDB streams is not necessary for invoking the Lambda function directly from the stream. Lambda can be triggered directly by the DynamoDB stream without the need for an SNS topic.
Increasing the maximum runtime (timeout) setting of the Lambda function does not affect whether the function is invoked. It only determines how long the function can run before timing out, which is unrelated to the event source configuration.