
Ultimate access to all questions.
Deep dive into the quiz with AI chat providers.
We prepare a focused prompt with your quiz and certificate details so each AI can offer a more tailored, in-depth explanation.
A company has a highly dynamic batch processing job that uses many Amazon EC2 instances to complete it. The job is stateless in nature, can be started and stopped at any given time with no negative impact, and typically takes upwards of 60 minutes total to complete. The company has asked a solutions architect to design a scalable and cost-effective solution that meets the requirements of the job.
What should the solutions architect recommend?
A
Implement EC2 Spot Instances.
B
Purchase EC2 Reserved Instances.
C
Implement EC2 On-Demand Instances.
D
Implement the processing on AWS Lambda.
Explanation:
Correct Answer: A. Implement EC2 Spot Instances.
Why Spot Instances are the best choice:
Cost-effectiveness: Spot Instances offer up to 90% discount compared to On-Demand Instances, making them the most cost-effective option for batch processing workloads.
Stateless nature: The job is described as "stateless in nature" and can be "started and stopped at any given time with no negative impact." This is a perfect match for Spot Instances, which can be interrupted with little notice.
Batch processing characteristics: The job takes "upwards of 60 minutes total to complete" and is "highly dynamic," meaning it doesn't run continuously. Spot Instances are ideal for fault-tolerant, flexible workloads like batch processing.
Scalability: Spot Instances can be used with Auto Scaling groups to scale the batch processing job up and down based on demand.
Why other options are not optimal:
B. Purchase EC2 Reserved Instances: Reserved Instances require a 1- or 3-year commitment and are best for predictable, steady-state workloads. This batch job is "highly dynamic" and doesn't run continuously, making Reserved Instances cost-ineffective.
C. Implement EC2 On-Demand Instances: While On-Demand Instances provide flexibility, they are significantly more expensive than Spot Instances for this type of workload. The job's fault-tolerant nature makes the cost savings of Spot Instances more compelling.
D. Implement the processing on AWS Lambda: Lambda has a 15-minute execution timeout, and the job takes "upwards of 60 minutes total to complete," exceeding Lambda's limits. Lambda is better suited for short-running, event-driven functions rather than long-running batch processing jobs.
Additional considerations: