AWS Certified Solutions Architect – Associate (SAA-C02) — Question 545
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 form Amazon S3.
What should a solutions architect do to process the events form Amazon S3 in a scalable way?
Answer options
- 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 Kubernetes Service (Amazon EKS) before the event runs in Lambda.
- C. Create an SNS subscription that sends the event to Amazon Simple Queue Service (Amazon 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
Explanation
Integrating Amazon SQS between Amazon SNS and AWS Lambda allows for message buffering, deduplication, and scalable asynchronous processing. This fan-out pattern ensures that spikes in S3 events do not overwhelm the Lambda functions, as SQS queues can scale to handle the load and Lambda can poll the messages at a controlled rate. Utilizing Amazon ECS, Amazon EKS, or AWS Server Migration Service for this workflow is architecturally incorrect and adds unnecessary overhead.