I don’t think it’s A, even though StreamViewType matters for what data you get in the stream, it won’t set up the trigger by itself. You still need to configure event source mapping so Lambda will actually poll the DynamoDB stream and invoke your function. B fixes that missing link. Pretty sure that’s what AWS expects here, but open to corrections if I’m missing something subtle.
Q: 11
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?
Options
Discussion
Definitely B. You need to set up an event source mapping so Lambda knows to poll the DynamoDB stream, otherwise it won't trigger. The official AWS developer guide is pretty clear about this step if you want more details.
A is the best choice, Secrets Manager is built for secure secret storage and you can grab the API key at runtime with minimal perf impact. S3 or DynamoDB aren't meant for secrets. Pretty sure official guide and AWS labs cover this.
Be respectful. No spam.
Question 11 of 35