DVA-C03 practice question: Lambda invocation, errors and destinations (2 of 2)
Development with AWS Services A free question from our original DVA-C03 practice exam. Try it, then open the answer to see why each option is right or wrong.
A data team wants one Lambda function to process incoming records in batches, tuning the batch size and the batching window, and to retry failed batches.
Several services could feed the function.
Which TWO of these sources can feed Lambda through an event source mapping, in which Lambda polls the source itself? (Choose two.)
Choose two answers.
AA. Amazon S3 bucket event notifications
BB. Amazon SQS standard or FIFO queues
CC. Amazon SNS topics with a Lambda subscription
DD. Amazon DynamoDB table streams
EE. Amazon API Gateway REST API methods
Show the answer and explanation
Answers: B, D
A. Wrong: S3 pushes each event to Lambda, and the trigger is configured on the bucket. Lambda does not poll the bucket, so there is no event source mapping to tune.
E. Wrong: API Gateway invokes the function directly for each request. There is nothing to poll, and no batching is involved.
Explanation
Lambda polls some sources through event source mappings, including SQS, Kinesis, DynamoDB streams and Amazon MSK. Services such as S3, SNS and API Gateway push events to the function instead, so batch size and batching window do not apply to them.
Want more on Lambda invocation, errors and destinations? The 5 full-length practice sets have 9 more Lambda invocation, errors and destinations questions, 390 in all, none of them in the free exam. One payment of $14.99, no subscription. See the practice sets →