A company needs to run a database backup script every night at 2:00 AM. The script takes about 2 minutes to execute, and the company wants to minimize costs by only paying for the exact compute time used during execution, without maintaining any running servers. Which AWS compute service is best suited to meet this requirement?
- AWS LambdaCevap
- BAmazon EC2
- CAmazon ECS
- DAmazon Lightsail
Cevap
AWS Lambda is the most appropriate service because it runs code in response to events and charges only for the compute time consumed, making it cost-effective for short, scheduled scripts without the need to manage servers.
AWS Lambda is the correct choice because it is a serverless compute service that executes code in response to event triggers, such as a scheduled Amazon CloudWatch event. It scales automatically and charges only for the milliseconds of compute time used during execution, eliminating the cost of idle server time.
Adım Adım Çözüm
Anahtar Kavram
AWS Compute Services
Tahmini Süre:45s