SAP-C02 Study Assistant

SAP-C02 Question 100

Lambda SQS SNS EventBridge Step Functions

Question

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?

Options

A. Use an Amazon Simple Queue Service (Amazon SQS) queue to store events and invoke the Lambda function.

B. Use an AWS Step Functions state machine to pass events to the Lambda function.

C. Use an Amazon EventBridge rule to pass events to the Lambda function.

D. Use an Amazon Simple Notification Service (Amazon SNS) topic to store events and Invoke the Lambda function.

Answer

A

Explanation

Correct answer: A Explanation: The best answer is A. Correct option: A. Use an Amazon Simple Queue Service (Amazon SQS) queue to store events and invoke the Lambda function. Why this is correct: This option most directly...

Log in to view the full explanation