SOA-C02 Cost and Performance Optimization Practice Question
A company runs a web application on EC2 instances behind an ALB. They want to optimize costs for variable traffic patterns while maintaining high availability. Which solution is MOST cost-effective?
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Use a mix of On-Demand and Spot Instances in an Auto Scaling group with a target tracking scaling policy.
The most cost-effective because it combines On-Demand Instances for baseline capacity and Spot Instances for burstable traffic, leveraging lower Spot prices while maintaining high availability through Auto Scaling with a target tracking policy. Option A is wrong because Dedicated Hosts are expensive and provide no cost benefit for variable traffic. Option C is wrong because Reserved Instances require a 1- or 3-year commitment and are not suitable for variable traffic; they are better for steady-state workloads. Option D is wrong because using only On-Demand Instances is more expensive than using a mix that includes Spot Instances.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Use Dedicated Hosts to run the application and share resources across multiple accounts.
Why it's wrong here
Dedicated Hosts are physically isolated servers for your exclusive use, typically required for server-bound software licenses such as Windows Server with specific licensing agreements. They incur an hourly cost regardless of whether the instance is utilized, and they do not provide any inherent mechanism for sharing resources across multiple AWS accounts or for automatically adjusting capacity to match variable web traffic. Sharing across accounts is better achieved with AWS Resource Access Manager or VPC sharing — not by spending on Dedicated Hosts.
- ✓
Use a mix of On-Demand and Spot Instances in an Auto Scaling group with a target tracking scaling policy.
Why this is correct
A mixed-instance Auto Scaling group with On-Demand and Spot Instances is cost-optimal because Spot Instances are available for up to 90% lower hourly price, and the target tracking scaling policy automatically adjusts the desired capacity based on a selected metric such as average CPU utilization, maintaining a baseline with On-Demand while absorbing traffic spikes with Spot. The ASG's capacity rebalancing feature monitors Spot interruption warnings and proactively launches replacement instances, making this an ideal, resilient and inexpensive solution for a fault-tolerant web tier.
- ✗
Purchase Reserved Instances for the expected baseline capacity and use On-Demand for spikes.
Why it's wrong here
Reserved Instances provide significant discounts over On-Demand but require a 1- or 3-year commitment to specific instance attributes, making them suitable only for steady-state, predictable workloads with constant usage. For a web application with variable traffic, predicting the exact baseline capacity is difficult; over-purchasing RIs wastes spending and under-purchasing defeats the purpose, and they cannot elastically scale up or down in response to load, so they are less flexible than a dynamically-adjusted Auto Scaling group with Spot capacity.
- ✗
Use only On-Demand EC2 Instances with an Auto Scaling group to handle variable traffic.
Why it's wrong here
While an Auto Scaling group with only On-Demand Instances will correctly handle variable traffic by adding and removing instances based on load, it ignores a key cost-optimization opportunity: the application is fault-tolerant and can easily run a substantial portion of its workload on Spot Instances at a fraction of the price. The target tracking policy works equally well with mixed instance types, but selecting only On-Demand means every single instance is procured at full list price, making the architecture unnecessarily expensive. A cost-effective design must use the lowest-priced purchasing options that still meet performance and availability requirements, and On-Demand-only capacity does not maximize the savings available from Spot.
Go deeper
Related to this question
About these practice questions
One of 1,169 original SOA-C02 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This SOA-C02 practice question is part of Courseiva's free Amazon Web Services certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the SOA-C02 exam.