Q38 — AWS SAP-C02 Ch.2

Question 38 of 75 | ← Chapter 2

Q188. A company is running a compute workload by using Amazon EC2 Spot Instances that are in an Auto Scaling group. The launch template uses two placement groups and a single instance type. Recently, a monitoring system reported Auto Scaling instance launch failures that correlated with longer wait times for system users. The company needs to improve the overall reliability of the workload. Which solution will meet this requirement?

Correct Answer: B. Create a new launch template version that uses attribute-based instance type selection. Configure the Auto Scaling group to use the new launch template version.

Explanation

Option B is the best solution to meet the requirement of improving the overall reliability of the workload. Creating a new launch template version that uses attribute-based instance type selection allows the Auto Scaling group to select an instance type based on availability and cost, increasing the likelihood of finding available Spot Instances to launch without causing delays or failures. Option A, replacing the launch template with a launch configuration to use attribute-based instance type selection, is not a valid option as launch configurations do not support attribute-based instance selection. Option C, updating the launch template Auto Scaling group to increase the number of placement groups, can help improve the resilience of the workload by spreading instances across multiple placement groups, but it may not necessarily improve overall reliability in the event of instance launch failures. Option D, updating the launch template to use a larger instance type, does not address the underlying issue of instance launch failures due to availability or capacity issues in the Spot Instance market. Additionally, using a larger instance type may increase costs and may not be necessary for the workload's resource requirements. Overall, Option B provides the most effective solution by allowing the Auto Scaling group to select an instance type based on availability and cost, improving the reliability of the workload by reducing the likelihood of launching instances in an unavailable or limited capacity market.