A smart agriculture company collects telemetry data from thousands of soil sensors. The sensors upload data hourly, but during storm events, they transmit readings every minute, causing sudden traffic spikes. To prevent old sensor readings from overwriting newer updates, the telemetry data must be processed in the exact order it was captured. Additionally, a complex analytics job needs to process historical data once a day, taking approximately 30 minutes to complete. The company wants a serverless, cost-effective solution with no idle resource costs.
Which combination of services should a solutions architect recommend to meet these requirements? (Select TWO.)
- Configure an Amazon SQS FIFO queue to buffer the telemetry data and trigger an AWS Lambda function for processing.Answer
- Use Amazon EventBridge to schedule an AWS Fargate task to run the daily analytics job.Answer
- CConfigure an Amazon SQS standard queue to buffer the telemetry data and trigger an AWS Lambda function for processing.
- DConfigure an AWS Lambda function to run the daily analytics job once per day.
- EProvision an Amazon DynamoDB table in provisioned capacity mode sized for peak storm traffic to store the telemetry data.
Answer
The correct combination of services is configuring an Amazon SQS FIFO queue to buffer telemetry data and triggering an AWS Lambda function for processing, along with using Amazon EventBridge to schedule an AWS Fargate task to run the daily analytics job.
The correct solution uses an Amazon SQS FIFO queue to ensure telemetry data is processed in the exact chronological order it was received, coupled with AWS Lambda to handle unpredictable incoming spikes serverlessly. For the daily analytics job, AWS Fargate is scheduled using Amazon EventBridge. Because the job runs for 30 minutes, it exceeds AWS Lambda's 15-minute timeout constraint. AWS Fargate is serverless, charges only for the duration of the execution, and avoids any idle server costs.
Step-by-Step Solution
Key Concept
Selecting serverless services based on execution limits (AWS Fargate for >15 minute jobs) and ordering requirements (Amazon SQS FIFO queues) to design cost-efficient architectures that scale to zero.