A retail company needs to run a data validation script once per day at midnight. The script typically runs for 8 minutes, processes raw transaction logs from an Amazon S3 bucket, and outputs a summary report. The company wants to minimize costs, pay only for the compute time used, and avoid provisioning or managing any server infrastructure. Which of the following AWS compute services is the most appropriate and cost-effective choice for this workload?
- AAmazon EC2 with On-Demand Instances
- BAmazon Elastic Container Service (Amazon ECS) with an Amazon EC2 launch type
- AWS LambdaCevap
- DAmazon Lightsail
Cevap
AWS Lambda is the most appropriate and cost-effective service for this workload.
AWS Lambda is a serverless compute service that runs code in response to events and automatically manages the underlying compute resources. For a short-running daily task (8 minutes), Lambda is highly cost-effective because you pay only for the compute time consumed, with zero cost when the function is idle. It requires no server provisioning or management.
Adım Adım Çözüm
Anahtar Kavram
Serverless event-driven compute services in AWS
Tahmini Süre:1m 30s