A company needs to run a short data processing script each time a new file is uploaded to Amazon S3. The script executes in less than a minute, and the company wants to pay only for the exact duration of the script's execution without provisioning or managing virtual servers. Which AWS service should the company use to meet these requirements?
- AAmazon EC2
- BAmazon ECS
- AWS LambdaCevap
- DAWS Lightsail
Cevap
AWS Lambda
AWS Lambda is the correct choice because it is a serverless, event-driven compute service. It runs code in response to triggers like Amazon S3 file uploads and charges only for the exact duration of the execution, eliminating the need to provision or manage servers.
Adım Adım Çözüm
Anahtar Kavram
AWS Lambda is an event-driven, serverless compute service that runs code without provisioning or managing servers, billing only for compute time consumed.