1. A startup is running a stateless web application on a fleet of EC2 instances behind an Application Load Balancer. Traffic is mostly uniform during business hours but spikes unpredictably for short bursts of 5–10 minutes several times per day. The team wants the lowest possible cost while maintaining consistent performance during spikes. Which EC2 purchasing and scaling strategy BEST meets these requirements?
- A. Use Reserved Instances for the baseline capacity and configure an Auto Scaling group with On-Demand instances to handle spikes.
- B. Use Reserved Instances for the baseline capacity and configure an Auto Scaling group with Spot Instances to handle spikes.✓ Correct
- C. Use a single large On-Demand instance type to absorb all traffic spikes without Auto Scaling.
- D. Use Spot Instances for all capacity and configure an Auto Scaling group with aggressive scale-out policies.
Explanation
Option B is correct. Reserved Instances provide the lowest per-hour cost for predictable baseline capacity, while Spot Instances are up to 90% cheaper than On-Demand and are well-suited for stateless, fault-tolerant workloads that can tolerate interruptions. Because the app is stateless, Spot interruptions don't cause data loss. Option A uses On-Demand for spikes, which is significantly more expensive than Spot for short, bursty periods. Option C ignores cost optimization and creates a single point of failure without elasticity. Option D using Spot-only is risky: if Spot capacity is unavailable during a spike, the application could become unavailable with no stable baseline.