Soru

Zorluk: OrtaAWS Compute Services

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?

  1. A
    Amazon EC2 with On-Demand Instances
  2. B
    Amazon Elastic Container Service (Amazon ECS) with an Amazon EC2 launch type
  3. AWS LambdaCevap
  4. D
    Amazon 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

1
Identify the resource requirements and operational constraints of the workload.
The workload runs once daily for 8 minutes (short-lived, periodic), needs to process files in Amazon S3, and requires zero ongoing server management.
Knowing the workload runtime and management constraints helps filter out persistent or high-maintenance compute options.
2
Compare the candidate AWS compute services based on operational overhead and billing granularity.
Amazon EC2 and Amazon Lightsail charge for running virtual machines even when idle, while Amazon ECS on EC2 requires cluster instance management. AWS Lambda runs only when triggered and is serverless.
This identifies the service that satisfies both the serverless requirement and the cost-minimization goal.

Anahtar Kavram

Serverless event-driven compute services in AWS
Tahmini Süre:1m 30s
Bu soruyu puanla