A school district wants to send automated text alerts to parents whenever local emergency alerts are issued. The script that sends the alerts runs sporadically, takes less than a minute to complete, and must scale instantly to handle thousands of concurrent alerts. The district wants to minimize operational overhead by not managing any servers and paying only for the duration of the script's execution. Which AWS service is best suited for this requirement?
- AAmazon Elastic Compute Cloud (Amazon EC2)
- AWS LambdaAnswer
- CAmazon Lightsail
- DAWS Elastic Beanstalk
Answer
AWS Lambda
AWS Lambda is the most suitable service because it is an event-driven, serverless compute service. It runs code only when triggered (such as by an emergency alert), scales automatically to handle thousands of concurrent requests, requires no server administration, and charges only for the exact duration of the code execution.
Step-by-Step Solution
Key Concept
Serverless compute execution with AWS Lambda