Q33 — AWS SAA-C03 Ch.6
Question 33 of 65 | ← Chapter 6
Q398. A development team is creating an event-based application that uses AWS Lambda functions. Events will be generated when files are added to an Amazon S3 bucket. The development team currently has Amazon Simple Notification Service (Amazon SNS) configured as the event target from Amazon S3. What should a solution architect do to process the events from Amazon S3 in a scalable why?
- A. Create an SNS subscription that processes the event in Amazon Elastic Container Service (Amazon ECS) before the event runs in Lambda.
- B. Create an SNS subscription that processes the event in Amazon Elastic Kubermetes Service (Amazon EKS) before the event runs in Lambda.
- C. Create on SNS subscription that sends the event to AWS Server Migration Service (AWS SQS).Configure the SQS queue to trigger a Lambda function. ✓
- D. Create an SNS subscription that sends the event to AWS Server Migration Service (AWS SMS).Configure the Lambda function to poll from the SMS event
Correct Answer: C. Create on SNS subscription that sends the event to AWS Server Migration Service (AWS SQS).Configure the SQS queue to trigger a Lambda function.
Explanation
To process events from Amazon S3 in a scalable way, you can create an SNS subscription that sends the event to an AWS SQS queue. Then, you can configure the SQS queue to trigger a Lambda function. This allows for decoupling of the event producer (S3) and the event consumer (Lambda), providing scalability and fault tolerance. The Lambda function can then process the events from the SQS queue in a scalable manner.