A solutions architect is designing a batch processing workload that runs for 4 hours every night. The workload can be interrupted and resumed without data loss. Cost optimization is a primary requirement for this deployment.
Trap 1: Use Amazon EC2 Reserved Instances to cover the nightly batch…
Reserved Instances are designed for continuous workloads running 24/7 to maximize hourly savings. Because this workload only runs for 4 hours per night, paying for idle capacity during the remaining 20 hours makes Reserved Instances financially inefficient.
Trap 2: Provision Amazon EC2 On-Demand Instances and terminate them…
On-Demand instances bill per second while running and offer no discount, and manual termination via Lambda adds no cost benefit over automatic lifecycle management. They are tempting when workloads cannot tolerate interruption, but this batch job explicitly can be interrupted and resumed.
Trap 3: Purchase Amazon EC2 Dedicated Hosts to run the nightly batch…
Dedicated Hosts bill per host for the full allocation period regardless of instance usage, defeating cost optimisation for a 4-hour interruptible job. They are tempting when licensing or compliance demands physical server isolation and tenancy visibility.
- A
Use Amazon EC2 Reserved Instances to cover the nightly batch processing requirements over a one-year term.
Why it fails: Reserved Instances are designed for continuous workloads running 24/7 to maximize hourly savings. Because this workload only runs for 4 hours per night, paying for idle capacity during the remaining 20 hours makes Reserved Instances financially inefficient.
- B
Provision Amazon EC2 On-Demand Instances and terminate them manually through an AWS Lambda script after completion.
Why it fails: On-Demand instances bill per second while running and offer no discount, and manual termination via Lambda adds no cost benefit over automatic lifecycle management. They are tempting when workloads cannot tolerate interruption, but this batch job explicitly can be interrupted and resumed.
- C
Configure an Auto Scaling group using Amazon EC2 Spot Instances with an appropriate instance diversification strategy.
Spot Instances bill at up to 90% below On-Demand rates and suit interruptible, resumable workloads. Diversifying across instance types and Availability Zones reduces the chance of simultaneous two-minute interruption notices, satisfying the cost-optimisation requirement while tolerating the nightly four-hour job being reclaimed.
- D
Purchase Amazon EC2 Dedicated Hosts to run the nightly batch processing instances securely and predictably.
Why it fails: Dedicated Hosts bill per host for the full allocation period regardless of instance usage, defeating cost optimisation for a 4-hour interruptible job. They are tempting when licensing or compliance demands physical server isolation and tenancy visibility.