Soru

Zorluk: OrtaAWS Compute Services

A logistics company needs to run a short database cleanup script every hour. The script takes approximately two minutes to execute. The company wants to implement this solution with the lowest possible operational overhead and pay only for the exact duration that the script runs.

Which AWS compute service should the company use to meet these requirements?

  1. A
    Amazon Elastic Container Service (Amazon ECS) on Amazon EC2 instances
  2. AWS LambdaCevap
  3. C
    Amazon EC2
  4. D
    AWS Lightsail

Cevap

AWS Lambda
AWS Lambda is a serverless compute service that runs code in response to triggers and manages the underlying resources. It charges only for the active run time of the script, satisfying the requirements of lowest operational overhead and paying only for the duration the script runs.

Adım Adım Çözüm

1
Analyze the workload requirements: hourly execution, short duration (2 minutes), low operational overhead, and a pay-per-use billing model.
Identified that the workload is short-lived, scheduled, and requires a serverless model to minimize management and costs.
This helps filter out Infrastructure as a Service (IaaS) options that require continuous running costs and guest OS management.
2
Compare the suited compute services (Lambda, EC2, ECS on EC2, Lightsail) against the identified criteria.
Determined that AWS Lambda requires zero host administration and bills only for runtime, while the other options require managing underlying VMs or paying for idle time.
To select the specific AWS service that perfectly matches the operational and cost constraints.

Anahtar Kavram

Selecting the appropriate AWS compute service based on integration, scale, operational overhead, and cost model.
Bu soruyu puanla