A developer is writing a short, event-driven script that processes user profile images immediately after they are uploaded. The script runs for less than a minute and executes occasionally throughout the day. The developer wants to execute this code without provisioning or managing any virtual servers. Which AWS service is the most appropriate choice for this task?
- AAmazon EC2
- BAmazon Lightsail
- AWS LambdaAnswer
- DAmazon EC2 Auto Scaling
Answer
AWS Lambda is the most appropriate service for executing event-driven scripts without provisioning or managing virtual servers.
AWS Lambda is a serverless, event-driven compute service that executes code in response to triggers (such as image uploads) and automatically manages the underlying compute resources. This eliminates the need to provision or manage virtual servers, matching the scenario requirements perfectly.
Step-by-Step Solution
Key Concept
Selecting serverless compute services based on operational and execution characteristics.