Topic 1 Question 100
A company is running an application in the AWS Cloud. Recent application metrics show inconsistent response times and a significant increase in error rates. Calls to third-party services are causing the delays. Currently, the application calls third-party services synchronously by directly invoking an AWS Lambda function.
A solutions architect needs to decouple the third-party service calls and ensure that all the calls are eventually completed.
Which solution will meet these requirements?
Use an Amazon Simple Queue Service (Amazon SQS) queue to store events and invoke the Lambda function.
Use an AWS Step Functions state machine to pass events to the Lambda function.
Use an Amazon EventBridge rule to pass events to the Lambda function.
Use an Amazon Simple Notification Service (Amazon SNS) topic to store events and Invoke the Lambda function.
ユーザの投票
コメント(8)
- 正解だと思う選択肢: A
The correct answer is A. Using an Amazon Simple Queue Service (SQS) queue to store events and invoke the Lambda function is a good solution to decouple the third-party service calls and ensure that all the calls are eventually completed. SQS is a fully managed, reliable, and highly scalable message queuing service that allows applications to send, store, and receive messages between distributed components. By sending the third-party service calls to an SQS queue, it allows the application to continue processing without waiting for the third-party services to respond, which can result in faster response times and lower error rates.
👍 2masetromain2023/01/15 - 正解だと思う選択肢: A
The application needs to pass the initiative to the next step. That means the application does not wait the response from the Lambda function, it should have the responsibility only to call the Lambda function. To do so, the application only throw the job information to Amazon SQS queue and finish. After that, AWS Lambda function can pull the job information from SQS queue and start processing actively. https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html
👍 2Untamables2023/01/28 - 正解だと思う選択肢: A
SQS ---> Lambda is the correct option
👍 2c73bf382023/02/22
シャッフルモード