What is the MOST cost-effective way to run this workload?
Run the application on On-Demand EC2 instances. Run the jobs on Spot Instances with a specified duration.
Run the application on Reserved Instance EC2 instances. Run the jobs on AWS Lambda.
Run the application on On-Demand EC2 instances. Run the jobs on On-Demand EC2 instances.
Run the application on Reserved Instance EC2 instances. Run the jobs on Spot Instances with a specified duration.
Explanations:
While Spot Instances can offer lower pricing, they are not ideal for jobs that cannot be interrupted. Spot Instances can be terminated with little notice, making them unsuitable for a job that takes 75 to 110 minutes and cannot be interrupted.
AWS Lambda is designed for short-duration tasks, with a maximum execution time of 15 minutes. Since the jobs take 75 to 110 minutes, Lambda is not suitable for this workload.
Running both the application and jobs on On-Demand EC2 instances is more expensive compared to other options. On-Demand instances incur higher costs, especially for long-running tasks.
Using Reserved Instances for the application provides cost savings for long-term usage. Running the jobs on Spot Instances with a specified duration offers cost savings while ensuring the job runs without interruptions as long as the duration is guaranteed. Spot Instances with a specified duration are a better option for non-interruptible tasks.