AWS Certified Solutions Architect Professional · Free Practice Question Medium
Question 23
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?
- A Use an Amazon Simple Queue Service (Amazon SQS) queue to store events and invoke the Lambda function.
- B Use an Amazon Simple Notification Service (Amazon SNS) topic to store events and Invoke the Lambda function.
- C Use an AWS Step Functions state machine to pass events to the Lambda function.
- D Use an Amazon EventBridge rule to pass events to the Lambda function.
Reveal correct answer
Correct answer: A
Explanation
To address the inconsistent response times and increased error rates caused by synchronous calls to third-party services, the company should decouple these calls. The best solution is to use an Amazon Simple Queue Service (Amazon SQS) queue to store events and invoke the AWS Lambda function. This approach ensures that all calls are eventually completed by processing them asynchronously, thereby improving application performance and reliability.Discussion
Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.
You must be logged in to post a comment.
