Soru

Zorluk: ZorAWS Compute Services

A financial services company needs to run a daily data reconciliation batch job. The job is packaged as a container image, takes approximately 18 minutes to complete, and requires 2 vCPUs and 4 GB of memory. The workload is highly unpredictable in terms of when the source files arrive, but it must start immediately upon file upload. The company wants to minimize operational overhead and avoid paying for any idle compute resources. Which AWS compute service or configuration should the company select to meet these requirements?

  1. Amazon Elastic Container Service (Amazon ECS) with AWS FargateCevap
  2. B
    AWS Lambda
  3. C
    Amazon Elastic Container Service (Amazon ECS) with Amazon EC2 instances, relying on AWS to manage the operating system patching
  4. D
    Amazon Lightsail container service

Cevap

Amazon Elastic Container Service (Amazon ECS) with AWS Fargate
The correct option is the container service with a serverless launch type. This service allows running containerized applications without provisioning or managing virtual machines, eliminating administrative tasks like OS patching. Since it has no 15-minute runtime limitation, it easily supports the 18-minute workload while billing only for the precise vCPU and memory resources consumed during execution.

Adım Adım Çözüm

1
Analyze the workload requirements and constraints.
The workload is containerized, requires 2 vCPUs and 4 GB of memory, runs for 18 minutes, is triggered by unpredictable file uploads, and requires minimal operational overhead with no payment for idle resources.
Identifying these parameters helps filter out AWS compute services that do not support containerization, have short execution limits, or require server management.
2
Evaluate serverless options against the execution time limit.
AWS Lambda is ruled out because its maximum execution duration is 15 minutes, whereas this workload takes 18 minutes.
AWS Lambda is serverless but has strict runtime constraints that make it unsuitable for longer-running batch jobs.
3
Evaluate the remaining options based on operational overhead and pricing structure.
Amazon EC2 introduces operational overhead (OS patching and scaling management). Amazon Lightsail charges a flat monthly fee, leading to idle costs. Amazon ECS with AWS Fargate runs containers serverlessly, supports runs longer than 15 minutes, and bills only for active container runtime.
Comparing management responsibilities and cost efficiency identifies the solution that best fits the company's constraints.

Anahtar Kavram

Selecting appropriate AWS compute services based on operational overhead, runtime limits, and cost optimization
Bu soruyu puanla