exam questions

Exam AWS Certified Developer - Associate DVA-C02 All Questions

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

Exam AWS Certified Developer - Associate DVA-C02 topic 1 question 514 discussion

A developer has deployed an AWS Lambda function that is subscribed to an Amazon Simple Notification Service (Amazon SNS) topic. The developer must implement a solution to add a record of each Lambda function invocation to an Amazon Simple Queue Service (Amazon SQS) queue.

Which solution will meet this requirement?

  • A. Configure the SQS queue as a dead-letter queue for the Lambda function.
  • B. Create code that uses the AWS SDK to call the SQS SendMessage operation to add the invocation details to the SQS queue. Add the code to the end of the Lambda function.
  • C. Add two asynchronous invocation destinations to the Lambda function: one destination for successful invocations and one destination for failed invocations. Configure the SQS queue as the destination for each type. Create an Amazon CloudWatch alarm based on the DestinationDeliveryFailures metric to catch any message that cannot be delivered.
  • D. Add a single asynchronous invocation destination to the Lambda function to capture successful invocations. Configure the SQS queue as the destination. Create an Amazon CloudWatch alarm based on the DestinationDeliveryFailures metric to catch any message that cannot be delivered.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

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
e886835
1 day, 13 hours ago
Selected Answer: B
using the AWS SDK within the Lambda function code to call SendMessage to SQS, the developer can ensure that the invocation details are logged in the queue.
upvoted 1 times
...
Arad
3 weeks, 4 days ago
Selected Answer: B
B is the correct answer. When using asynchronous invocations, there are three types of potential states: success, failure and retryable failure. this option only logs first 2, not all. A is wrong because it only logs the failure invocations, not all. C is wrong because it only logs success and failure invocations, not all. D is wrong because it logs only successful invocations, not all.
upvoted 1 times
...
YUICH
1 month, 3 weeks ago
Selected Answer: D
Requirements: Lambda function is invoked via Amazon SNS. You need to log each invocation (successful or failed) to an Amazon SQS queue.
upvoted 2 times
GGGApigateway
6 days, 7 hours ago
I see that option D only captures successful invocations, but the question asks for all invocations (both successful and failed). How does D ensure that all invocations are recorded in the SQS queue?
upvoted 1 times
...
...
ShakthiGCP
1 month, 3 weeks ago
Selected Answer: D
One SQS for success is sufficient and when the undelivered message will be monitored via cloudwatch.
upvoted 1 times
...
Dahlia9524
1 month, 4 weeks ago
Selected Answer: C
Lambda Destination supported for both success and failure
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