What should the developer do to ensure that the Spot Fleet is configured for cost optimization?
Deploy a capacityOptimized allocation strategy for provisioning Spot Instances.
Ensure instance capacity by specifying the desired target capacity and how much of that capacity must be On-Demand.
Use the lowestPrice allocation strategy with InstancePoolsToUseCount in the Spot Fleet request.
Launch instances up to the Spot Fleet target capacity or the maximum acceptable payment amount.
Explanations:
The capacityOptimized allocation strategy focuses on ensuring that the Spot Instances are launched from pools with lower interruption rates, but it does not directly optimize cost. It helps with capacity reliability, not cost efficiency.
This option focuses on ensuring desired target capacity and the ratio of On-Demand to Spot Instances but does not inherently optimize costs. It only controls capacity allocation.
The lowestPrice allocation strategy with InstancePoolsToUseCount optimizes cost by selecting the least expensive Spot Instances across available pools, which is key for cost optimization in Spot Fleet requests.
This option describes launching instances to meet target capacity or a maximum payment threshold, but it doesn’t directly focus on cost optimization. It may lead to higher costs without specific cost-effective strategies.