ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 103 - DVA-C02 discussion

Report
Export

A developer has been asked to create an AWS Lambda function that is invoked 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 15 still not being invoked.

Which option would enable DynamoDB table updates to invoke the Lambda function?

A.
Change the StreamViewType parameter value to NEW_AND_OLOJMAGES for the DynamoDB table.
Answers
A.
Change the StreamViewType parameter value to NEW_AND_OLOJMAGES for the DynamoDB table.
B.
Configure event source mapping for the Lambda function.
Answers
B.
Configure event source mapping for the Lambda function.
C.
Map an Amazon Simple Notification Service (Amazon SNS) topic to the DynamoDB streams.
Answers
C.
Map an Amazon Simple Notification Service (Amazon SNS) topic to the DynamoDB streams.
D.
Increase the maximum runtime (timeout) setting of the Lambda function.
Answers
D.
Increase the maximum runtime (timeout) setting of the Lambda function.
Suggested answer: B

Explanation:

This solution allows the Lambda function to be invoked by the DynamoDB stream whenever updates are made to items in the DynamoDB table. Event source mapping is a feature of Lambda that enables a function to be triggered by an event source, such as a DynamoDB stream, an Amazon Kinesis stream, or an Amazon Simple Queue Service (SQS) queue. The developer can configure event source mapping for the Lambda function using the AWS Management Console, the AWS CLI, or the AWS SDKs. Changing the StreamViewType parameter value to NEW_AND_OLD_IMAGES for the DynamoDB table will not affect the invocation of the Lambda function, but only change the information that is written to the stream record. Mapping an Amazon Simple Notification Service (Amazon SNS) topic to the DynamoDB stream will not invoke the Lambda function directly, but require an additional subscription from the Lambda function to the SNS topic. Increasing the maximum runtime (timeout) setting of the Lambda function will not affect the invocation of the Lambda function, but only change how long the function can run before it is terminated.

Reference: [Using AWS Lambda with Amazon DynamoDB], [Using AWS Lambda with Amazon SNS]

asked 16/09/2024
Sergey Ushakov
33 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first