Skip to Content

SAP-C02: Optimize EC2 Auto Scaling Group for Cost and Utilization

Learn how to reduce EC2 costs and increase resource utilization for an application deployed on an Auto Scaling group by selecting the optimal instance type based on CPU and memory requirements.

Table of Contents

Question

An application is deployed on Amazon EC2 instances that run in an Auto Scaling group. The Auto Scaling group configuration uses only one type of instance.

CPU and memory utilization metrics show that the instances are underutilized. A solutions architect needs to implement a solution to permanently reduce the EC2 cost and increase the utilization.

Which solution will meet these requirements with the LEAST number of configuration changes in the future?

A. List instance types that have properties that are similar to the properties that the current instances have. Modify the Auto Scaling group’s launch template configuration to use multiple instance types from the list.
B. Use the information about the application’s CPU and memory utilization to select an instance type that matches the requirements. Modify the Auto Scaling group’s configuration by adding the new instance type. Remove the current instance type from the configuration.
C. Use the information about the application’s CPU and memory utilization to specify CPU and memory requirements in a new revision of the Auto Scaling group’s launch template. Remove the current instance type from the configuration.
D. Create a script that selects the appropriate instance types from the AWS Price List Bulk API. Use the selected instance types to create a new revision of the Auto Scaling group’s launch template.

Answer

B. Use the information about the application’s CPU and memory utilization to select an instance type that matches the requirements. Modify the Auto Scaling group’s configuration by adding the new instance type. Remove the current instance type from the configuration.

Explanation

This solution meets the requirements with the least number of configuration changes in the future because it involves a one-time change to the Auto Scaling group configuration. By selecting an instance type that aligns with the application’s resource needs, you can optimize resource utilization and reduce costs without the need for further adjustments unless the application’s requirements change significantly.

Other options involve more complex or ongoing configuration changes:

A. Using multiple instance types introduces additional complexity and potential for inefficiencies if the instances are not appropriately sized for the application’s needs.

C. Specifying CPU and memory requirements may lead to suboptimal instance selection or require frequent adjustments as the application’s needs evolve.

D. Creating a script to select instance types based on the AWS Price List Bulk API adds an extra layer of complexity and maintenance overhead.

By selecting the most appropriate instance type based on the application’s resource utilization and updating the Auto Scaling group configuration, you can achieve cost optimization and increased utilization with minimal ongoing management effort.

Amazon AWS Certified Solutions Architect – Professional SAP-C02 certification exam practice question and answer (Q&A) dump with detail explanation and reference available free, helpful to pass the Amazon AWS Certified Solutions Architect – Professional SAP-C02 exam and earn Amazon AWS Certified Solutions Architect – Professional SAP-C02 certification.