Topic 1 Question 514
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?
Configure the SQS queue as a dead-letter queue for the Lambda function.
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.
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.
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.
ユーザの投票
コメント(7)
- 正解だと思う選択肢: D
Requirements: Lambda function is invoked via Amazon SNS. You need to log each invocation (successful or failed) to an Amazon SQS queue.
👍 2YUICH2024/12/15 - 正解 だと思う選択肢: 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.
👍 2Arad2025/01/13 - 正解だと思う選択肢: C
Lambda Destination supported for both success and failure
👍 1Dahlia95242024/12/09
シャッフルモード