AWS Certified Solutions Architect Professional SAP-C02 Practice Question
A financial-services company runs Monte Carlo risk simulations overnight in a single AWS Region. The job launches up to 1,000 Linux instances for 6 hours. At least 100 instances must always be running to meet the service-level agreement, but the rest of the workload can tolerate Spot interruptions. The chief architect wants to minimize compute cost, obtain Spot capacity from pools that have the lowest interruption risk, and automatically replace any Spot Instances that receive a rebalance recommendation.
Which solution meets all of these requirements?
Use AWS Batch with a single Spot compute environment that specifies the SPOT_CAPACITY_OPTIMIZED allocation strategy and a desired vCPU count of 1,000. Batch will automatically provision the required capacity and handle any Spot interruptions.
Request an EC2 Spot Fleet for 1,000 instances across all Availability Zones using the lowest-price allocation strategy. Set OnDemandTargetCapacity to 100 and rely on a Lambda function to relaunch tasks if Spot Instances are interrupted.
Create an EC2 Auto Scaling group that uses a launch template for the simulation instances. Configure a mixed instances policy with OnDemandBaseCapacity set to 100, OnDemandPercentageAboveBaseCapacity set to 0, and SpotAllocationStrategy set to capacity-optimized. Enable Capacity Rebalancing for the group.
Deploy the workload in an EC2 Auto Scaling group that launches only Spot Instances with the lowest-price allocation strategy. Configure Capacity Rebalancing so the group starts new Spot Instances when interruptions occur.
A mixed-instances EC2 Auto Scaling group can combine On-Demand and Spot capacity in one fleet. Setting OnDemandBaseCapacity to 100 guarantees that the first 100 instances that launch-and any time the group scales-are On-Demand, so the SLA is always met. Setting OnDemandPercentageAboveBaseCapacity to 0 forces every additional instance to be Spot, maximizing cost savings. Using the capacity-optimized SpotAllocationStrategy directs the request to pools with the greatest spare capacity, which have the lowest probability of interruption. Enabling Capacity Rebalancing instructs the Auto Scaling group to launch replacement Spot Instances proactively when Amazon EC2 sends a rebalance recommendation, maintaining capacity even during interruptions. The other options either do not guarantee the 100-instance baseline, choose a lowest-price strategy with a higher interruption risk, or rely on external scripts rather than automated rebalance replacement.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is the purpose of the 'capacity-optimized' SpotAllocationStrategy in EC2 Auto Scaling?
Open an interactive chat with Bash
How does enabling Capacity Rebalancing in an EC2 Auto Scaling group improve stability?
Open an interactive chat with Bash
What is the difference between OnDemandBaseCapacity and OnDemandPercentageAboveBaseCapacity in a mixed instances policy?
Open an interactive chat with Bash
AWS Certified Solutions Architect Professional SAP-C02
Design Solutions for Organizational Complexity
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
IT & Cybersecurity Package Join Premium for Full Access