A company is building a batch processing solution for genetic sequencing data. The application requires direct access to GPU hardware, a customized Linux kernel with specific compliance patches, and runs jobs that can take up to 4 hours to complete. The workload is highly unpredictable, and the company wants to minimize costs by ensuring resources are only active during processing. Which AWS compute option best meets these requirements?
- AAWS Lambda functions triggered by Amazon S3 events
- Amazon EC2 instances in an Auto Scaling group utilizing Spot InstancesAnswer
- CAWS Fargate tasks running on Amazon ECS
- DAmazon Lightsail container services with pre-configured stacks
Answer
Amazon EC2 instances in an Auto Scaling group utilizing Spot Instances
Amazon EC2 is the correct choice because it provides virtual machines where the customer has full root access, enabling the use of custom kernels and direct GPU mapping. Since the job runs for 4 hours, it exceeds Lambda's limits. EC2 Auto Scaling allows the group to scale to zero instances to minimize costs, and Spot Instances offer deep discounts suitable for batch jobs.
Step-by-Step Solution
Key Concept
AWS Compute Service Selection based on compliance, hardware access, execution duration, and cost optimization