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 169 discussion

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

A company needs an event-management platform to accept registrations for an upcoming event. The platform must perform a single invocation of an existing AWS Lambda function 10 minutes after a user completes a new account registration.

Which solution will meet these requirements?

  • A. Add an item to an Amazon DynamoDB table. Set the item TTL to 10 minutes. Invoke the Lambda function when the TTL expires.
  • B. Create an ongoing Amazon EventBridge (Amazon CloudWatch Events) rule with a rate expression of 600 seconds. Create a rule/target to invoke the Lambda function.
  • C. Send a message to an Amazon Simple Queue Service (Amazon SQS) delay queue. Set the queue to 600 seconds. Configure the Lambda function with the queue as an event source.
  • D. Put a record in Amazon Kinesis Data Streams. Configure the Lambda function to use the data stream as an event source. Define the shard iterator AT_TIMESTAMP setting to 10 minutes.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

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
bakamon
Highly Voted 2 years, 1 month ago
Selected Answer: C
Option B is not the best solution for this use case because it involves creating an ongoing Amazon EventBridge (Amazon CloudWatch Events) rule with a rate expression of 600 seconds. This means that the rule would trigger the Lambda function every 600 seconds (10 minutes) regardless of whether a new account registration has occurred or not. In contrast, Option C allows you to trigger the Lambda function specifically 10 minutes after a new account registration by sending a message to an Amazon Simple Queue Service (Amazon SQS) delay queue and setting the queue to 600 seconds. This way, the Lambda function is only invoked when a new account registration occurs, and not on an ongoing basis. This is why Option C is a better solution for this use case.
upvoted 7 times
...
rcaliandro
Most Recent 2 years, 1 month ago
Selected Answer: B
In my opinion is B because we need event-driven policy that can be configured with CloudWatch Events
upvoted 1 times
...
Fco_Javier
2 years, 4 months ago
Selected Answer: C
I think they are asking about the orchestration with the messages (they use the word "event" to mislead, because that`s the business of the company). Message timers let you specify an initial invisibility period for a message added to a queue (between 0 seconds and 15 minutes). https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-message-timers.html
upvoted 1 times
...
Fco_Javier
2 years, 4 months ago
I think they are asking about the orchestration with the messages (they use the word "event" to mislead, because that`s the business of the company). Message timers let you specify an initial invisibility period for a message added to a queue (between 0 seconds and 15 minutes). https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-message-timers.html
upvoted 1 times
...
qiaoli
2 years, 4 months ago
Selected Answer: C
with B the lambda function will be called at certain time intervals, in this case. it will be every 10 mins. And the user registration event is not in play in this mechanism. the requirement requires an event-driven mechanism with a certain delay. so it's C.
upvoted 2 times
...
captainpike
2 years, 5 months ago
Selected Answer: B
IMO, SQS would complicate things a lot: Lambda has to read from the SQS. I am going with B
upvoted 1 times
...
IANNNNNN
2 years, 5 months ago
Selected Answer: C
*signle invocation* - C scheduled - B
upvoted 2 times
...
MMaquis
2 years, 5 months ago
Selected Answer: B
it's B, not C because using SQS delay queue would also introduce a 10-minute delay, but it involves an extra step of sending a message to SQS and using it as an event source for the Lambda function.
upvoted 2 times
...
ezeik
2 years, 6 months ago
Selected Answer: C
C, bz rate expression is for scheduled events.
upvoted 1 times
...
pancman
2 years, 6 months ago
Selected Answer: B
B for sure - EventBridge. It is not C because the purpose of delay queues in SQS is totally different. Their use case is when your consumer application needs additional time to process messages. Although they might still work in this case, it would be a temporary and hacky kind of solution. And imagine the delay requirement changing in the future and now you need to invoke the lambda function 20 minutes later, then the delay queue won't work as its maximum delay is limited to 15 mins.
upvoted 1 times
...
ccna_imperathor
2 years, 6 months ago
Selected Answer: B
B is better for this use case
upvoted 1 times
...
kvt
2 years, 8 months ago
Any idea why not A?
upvoted 2 times
tieyua
2 years, 7 months ago
You can't invoke lambda from TTL, need DynamoDb Stream first
upvoted 1 times
Dipak25
1 year, 8 months ago
As they didn't mention DynamoDB streams so we can't assume there is no streams correct?
upvoted 1 times
...
...
...
SBoksh
2 years, 8 months ago
Selected Answer: C
delay queue to hide the message for first 10 mins
upvoted 2 times
...
michaldavid
2 years, 8 months ago
Selected Answer: C
I'd say C
upvoted 2 times
...
lrom
2 years, 8 months ago
Selected Answer: C
https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-delay-queues.html
upvoted 2 times
...
k1kavi1
2 years, 8 months ago
Selected Answer: B
https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-run-lambda-schedule.html
upvoted 1 times
k1kavi1
2 years, 8 months ago
C is correct
upvoted 2 times
...
gaddour_med
2 years, 6 months ago
single invocation
upvoted 1 times
...
...
dark_cherrymon
2 years, 9 months ago
Selected Answer: C
cccccccc
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 ...