Which EC2 purchase model mix for unpredictable SQS load?
A company runs a production application on a fleet of Amazon EC2 instances. The application reads the data from an Amazon SQS queue and processes the messages in parallel. The message volume is unpredictable and often has intermittent traffic. This application should continually process messages without any downtime. Which solution meets these requirements MOST cost-effectively?
Community Insight
The question tests cost-optimized compute sizing for a queue-buffered fleet; the trap is reading 'without any downtime' as a ban on Spot Instances when SQS's retry/visibility behavior already makes the pipeline interruption-tolerant.
For an SQS-driven EC2 worker fleet with unpredictable, intermittent message volume, the most cost-effective design is Reserved Instances covering the steady baseline plus Spot Instances absorbing the bursts. Because SQS durably buffers messages, worker interruptions do not create message loss or application downtime, so Spot capacity satisfies the availability requirement.
Option D (Reserved + On-Demand) is the most-voted wrong answer: learners equate 'no downtime' with 'never use Spot' and pay the On-Demand premium for burst capacity, ignoring that interrupted workers simply return messages to the queue and that the RI baseline keeps processing alive.
Community Discussion (168 comments)
Comments & Corrections
No comments yet — spotted an error or have a note? Share it below.
Expert Analysis
Why the Answer Is Correct
Reserved Instances cover the always-on baseline at the lowest predictable rate, while Spot Instances — typically 60–90% cheaper than On-Demand — absorb the unpredictable spikes, which is exactly the AWS cost-optimization pattern for elastic, queue-backed worker fleets. The "continually process messages without any downtime" clause is satisfied by the architecture as a whole: Amazon SQS durably stores messages, so when a Spot worker is interrupted its in-flight message becomes visible again and is retried by another instance, and the RI-based baseline keeps draining the queue throughout the burst. AWS guidance for SQS/Event-Driven Lambda-and-EC2 architectures explicitly recommends Reserved Instances for steady state and Spot for the variable portion, so C meets both the cost and availability requirements.Why the Other Options Are Wrong
A, Spot only, offers no guaranteed baseline: Spot capacity can be reclaimed and spot supply is not assured at the maximum capacity point, so a price spike plus capacity shortage could stall processing. B, Reserved only provisioned for maximum capacity, guarantees the requirement but is grossly wasteful — the peak instances sit idle during the frequent intermittent low-traffic periods, defeating the "MOST cost-effectively" constraint. D adds On-Demand for the burst, which does provide interruption-free capacity but at a large price premium; it is not wrong on availability grounds, yet it is dominated by Spot on cost because the SQS buffer already makes the fleet interruption-tolerant, which is why D loses on the cost axis rather than the downtime axis. Options A and B also illustrate MrSaint's point that cost-effectiveness means the cheapest option that still satisfies every requirement, not simply the cheapest option overall.Community Comment Notes
Several voters, including Alex1atd and Charumathi, argue that "without any downtime" kills Spot and therefore D is right; taer and jatric make the same claim, with jatric writing "Dude without downtime - spot instances might interrupt the processing." That reasoning over-reads the phrase: an interruption of one worker is not downtime of the application, since SQS re-delivers the message to another worker and the RI baseline keeps running. HayLLlHuK parses the wording the way AWS intends, noting "without any downtime" maps to Reserved Instances for baseline and "MOST cost-effectively" maps to Spot for additional capacity, and MrSaint's reading that cost-effectiveness requires the cheapest solution that still meets all requirements points the same way once the queue's buffering behavior is factored in.Official Reference
Exam Strategy
On SAA-C03 cost questions, always split capacity into a predictable baseline (Reserved/Savings Plans) and an elastic burst tier, then pick the cheapest burst tier that the workload's failure semantics can tolerate — SQS/SNS/Kinesis buffering means Spot is usually acceptable. Watch for 'MOST cost-effectively' as the tiebreaker that rules out all-Reserved or all-On-Demand designs.
Frequently Asked Questions
Why is Reserved + On-Demand (option D) not the most cost-effective choice?
On-Demand burst capacity costs far more than Spot, and because the queue already absorbs interruption, the extra reliability is unneeded — so D is dominated on cost by C.
Related Analysis
Practice All SAA-C03 Questions
Access 120 questions with complete answers and detailed explanations.
View Full SAA-C03 Practice Test →