Question

Difficulty: MediumAWS Compute Services

A company needs to run a daily data processing task that takes approximately 25 minutes to complete. The task requires a custom Linux environment with specific packages installed. The company wants to minimize operational overhead and only pay for the compute time used, without managing the underlying virtual servers. Which AWS compute service best meets these requirements?

  1. A
    AWS Lambda
  2. AWS FargateAnswer
  3. C
    Amazon Elastic Compute Cloud (Amazon EC2)
  4. D
    Amazon Lightsail

Answer

AWS Fargate is the most appropriate service because it provides serverless container execution for custom environments and supports tasks running longer than the 15-minute Lambda limit.
AWS Fargate is correct because it is a serverless compute engine for containers that allows packaged applications with specific custom dependencies to run without provisioning or managing virtual machines. Since it is serverless, there is no server management overhead, and billing is based on resource usage during the 25-minute execution. It is not subject to the 15-minute execution limit of other serverless options.

Step-by-Step Solution

1
Analyze the execution duration constraint.
The task runs for 25 minutes, which rules out AWS Lambda due to its 15-minute maximum execution timeout.
AWS Lambda cannot run functions for more than 15 minutes.
2
Evaluate administrative and management overhead.
Amazon EC2 and Amazon Lightsail require provisioning and managing operating systems (patching, scaling, etc.), which fails the requirement of minimizing operational overhead.
Serverless options are preferred to eliminate server management tasks.
3
Assess environment customization and serverless properties.
AWS Fargate runs containers (allowing custom Linux packaging) serverlessly, charging only for the running time of the container.
Fargate provides containerized serverless compute with no 15-minute execution limit.

Key Concept

Selecting appropriate AWS compute services based on runtime constraints, management overhead, and environment customization requirements.
Rate this question