exam questions

Exam AWS Certified Developer Associate All Questions

View all questions & answers for the AWS Certified Developer Associate exam

Exam AWS Certified Developer Associate topic 1 question 35 discussion

Exam question from Amazon's AWS Certified Developer Associate
Question #: 35
Topic #: 1
[All AWS Certified Developer Associate Questions]

A Developer has been asked to create an AWS Lambda function that is triggered 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 is still not being triggered.
Which option would enable DynamoDB table updates to trigger the Lambda function?

  • A. Change the StreamViewType parameter value to NEW_AND_OLD_IMAGES for the DynamoDB table
  • B. Configure event source mapping for the Lambda function
  • C. Map an Amazon SNS topic to the DynamoDB streams
  • D. Increase the maximum execution time (timeout) setting of the Lambda function
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
YashBindlish
Highly Voted 3 years, 7 months ago
Correct Answer is "B"
upvoted 27 times
newbie2019
3 years, 7 months ago
Create an event source mapping to tell Lambda to send records from your stream to a Lambda function. You can create multiple event source mappings to process the same data with multiple Lambda functions, or process items from multiple streams with a single function.
upvoted 19 times
Pavan_Nagineni
3 years, 5 months ago
Yes , simply this is synchronous invocation to poll for the streams. Sync - Kinesis Streams/Dynamo DB Streams/SQS/ALB [Lamda has to poll with event source mappers] Async - S3 event/Cloudwatch even/SNSt triggers [lamda will be triggered by services] B. Configure event source mapping for the Lambda function
upvoted 6 times
Huy
3 years, 5 months ago
Dont understand what you are saying. Check this pls https://acloud.guru/forums/aws-cda-2018/discussion/-MAeecIlPK6-VmdONvqa/what%20is%20the%20difference%20between%20asynchronous%20Invocation%20and%20Event%20source%20Mapping
upvoted 3 times
...
...
...
...
dp8719823
Highly Voted 2 years, 1 month ago
Selected Answer: B
Option B is correct. Explanation: To process stream records in a DynamoDB table, you can create an AWS Lambda function and configure an event source mapping to the stream. This allows your Lambda function to be invoked whenever there are changes to the table. Enabling DynamoDB streams alone is not enough to trigger the Lambda function. You also need to create an event source mapping. Option A is incorrect because the StreamViewType parameter is used to determine the information included in the stream records. Option C is incorrect because mapping an SNS topic to DynamoDB streams would not trigger the Lambda function. Option D is incorrect because increasing the maximum execution time (timeout) setting of the Lambda function would not enable DynamoDB table updates to trigger the Lambda function.
upvoted 6 times
...
sumanshu
Most Recent 4 months, 1 week ago
Selected Answer: B
B) Correct - You need to explicitly configure an event source mapping between the DynamoDB stream and the Lambda function. This tells AWS Lambda to listen to the changes in the DynamoDB stream and invoke the Lambda function when a change occurs in the table.
upvoted 1 times
sumanshu
4 months, 1 week ago
A) Eliminated - This setting controls which data is included in the DynamoDB stream (new item, old item, or both)
upvoted 1 times
sumanshu
4 months, 1 week ago
D) Eliminated - The problem is not about the Lambda function's timeout but about the Lambda function not being triggered at all
upvoted 1 times
sumanshu
4 months, 1 week ago
C) Eliminated - While you can integrate DynamoDB Streams with SNS, this is not necessary for Lambda to be triggered. Lambda can directly be triggered by DynamoDB Streams without needing SNS in between. This option adds unnecessary complexity.
upvoted 1 times
...
...
...
...
blondy_chess
12 months ago
Selected Answer: B
Correct Answer is "B"
upvoted 1 times
...
AsmaZoheb
1 year, 3 months ago
Selected Answer: B
i think so B
upvoted 1 times
...
sara_exam_topics
1 year, 6 months ago
Selected Answer: B
Option A (Changing the StreamViewType) is not the correct approach because the StreamViewType parameter value specifies the information included in the stream records (e.g., new and/or old images of the items), but it does not configure the Lambda trigger.
upvoted 1 times
...
TJ1901
1 year, 8 months ago
B looks correct
upvoted 1 times
...
moonhope
2 years ago
B https://amazon-dynamodb-labs.com/design-patterns/ex8streams.html
upvoted 1 times
...
Dominicwild12
2 years, 2 months ago
Selected Answer: B
To enable DynamoDB table updates to trigger a Lambda function, you need to create an event source mapping for the Lambda function. So the correct option here would be: B. Configure event source mapping for the Lambda function Enabling DynamoDB streams is a prerequisite for setting up the event source mapping. The event source mapping enables the Lambda function to read data from the stream, which triggers the function.
upvoted 3 times
...
Jay1299
2 years, 2 months ago
A is Correct! When the question itself says DynamoDB streams is enabled and Trigger is also set then by default in the Lambda console even if you cannot see DynamoDB as the Trigger, it will be enabled!! Hence New_And_Old_Images is the correct option because if 'update' item changes are made in DynamoDB table will not be fetched in Lambda hence New_And_Old_Images to be considered
upvoted 2 times
...
fabriciollf
2 years, 4 months ago
Selected Answer: B
B is the correct answer
upvoted 2 times
...
dark_cherrymon
2 years, 5 months ago
Selected Answer: B
it's not A because that would return old stuff as well and they want only new updates
upvoted 2 times
dark_cherrymon
2 years, 5 months ago
i made an error, past data won't be sent, merly the new stuff will have the old stuff next to it. answer is still B.
upvoted 1 times
dark_cherrymon
2 years, 5 months ago
"Configuring a stream as an event source Create an event source mapping to tell Lambda to send records from your stream to a Lambda function." https://docs.aws.amazon.com/lambda/latest/dg/with-ddb.html
upvoted 1 times
...
...
...
icebox0e
2 years, 7 months ago
Selected Answer: B
Correct Answer is "B"
upvoted 2 times
...
sak1996
3 years ago
B is correct.
upvoted 2 times
...
UdayOgra
3 years, 3 months ago
Selected Answer: B
B: More details here https://docs.aws.amazon.com/lambda/latest/dg/with-ddb.html
upvoted 4 times
...
narenkd
3 years, 5 months ago
Correct Answer is "B"
upvoted 1 times
...
VAG1595
3 years, 5 months ago
Answer: B
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago