Skip to Content

Amazon SAP-C02: Install Amazon CloudWatch agent on EC2 instances using AWS Systems Manager, retrieve resource optimization recommendations to downsize underutilized.

Question

A company uses AWS Organizations to manage its AWS accounts. The company needs a list of all its Amazon EC2 instances that have underutilized CPU or memory usage. The company also needs recommendations for how to downsize these underutilized instances. Which solution will meet these requirements with the LEAST effort?

A. Install a CPU and memory monitoring tool from AWS Marketplace on all the EC2 instances. Store the findings in Amazon S3. Implement a Python script to identify underutilized instances. Reference EC2 instance pricing information for recommendations about downsizing options.
B. Install the Amazon CloudWatch agent on all the EC2 instances by using AWS Systems Manager. Retrieve the resource optimization recommendations from AWS Cost Explorer in the organization’s management account. Use the recommendations to downsize underutilized instances in all accounts of the organization.
C. Install the Amazon CloudWatch agent on all the EC2 instances by using AWS Systems Manager. Retrieve the resource optimization recommendations from AWS Cost Explorer in each account of the organization. Use the recommendations to downsize underutilized instances in all accounts of the organization.
D. Install the Amazon CloudWatch agent on all the EC2 instances by using AWS Systems Manager. Create an AWS Lambda function to extract CPU and memory usage from all the EC2 instances. Store the findings as files in Amazon S3. Use Amazon Athena to find underutilized instances. Reference EC2 instance pricing information for recommendations about downsizing options.

Answer

B. Install the Amazon CloudWatch agent on all the EC2 instances by using AWS Systems Manager. Retrieve the resource optimization recommendations from AWS Cost Explorer in the organization’s management account. Use the recommendations to downsize underutilized instances in all accounts of the organization.

Explanation

The correct answer is B.

This solution meets the requirements with the LEAST effort because it uses the following AWS services:

  • Amazon CloudWatch: This service provides monitoring and observability for AWS resources. The CloudWatch agent can be installed on EC2 instances to collect metrics, such as CPU and memory usage.
  • AWS Cost Explorer: This service provides cost and usage data for AWS resources. The resource optimization recommendations feature can be used to identify underutilized EC2 instances.
  • AWS Systems Manager: This service provides a unified management console and APIs for managing AWS resources. The Systems Manager Automation capabilities can be used to automate the process of retrieving the resource optimization recommendations from Cost Explorer and downsizing underutilized EC2 instances.

The other solutions are more complex and require more manual intervention. For example, solution A requires installing a CPU and memory monitoring tool on all EC2 instances, storing the findings in S3, and then implementing a Python script to identify underutilized instances. Solution C requires retrieving the resource optimization recommendations from Cost Explorer in each account of the organization, which can be a manual and time-consuming process. Solution D requires creating an AWS Lambda function to extract CPU and memory usage from all EC2 instances, storing the findings as files in S3, and then using Amazon Athena to find underutilized instances. This solution is also more complex and requires more manual intervention than solution B.

Therefore, the correct answer is B.

Here are some additional details about the solution:

  • The CloudWatch agent can be installed on EC2 instances using the Systems Manager Automation capabilities. This will automatically collect CPU and memory usage metrics for the instances.
  • The resource optimization recommendations feature in Cost Explorer can be used to identify underutilized EC2 instances. The recommendations will include the instance ID, instance type, and recommended instance type.
  • The Systems Manager Automation capabilities can be used to automate the process of retrieving the resource optimization recommendations from Cost Explorer and downsizing underutilized EC2 instances. This will automatically resize the instances to the recommended instance type.

Reference

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.