AWS Certified SysOps Administrator - Associate: Monitor EC2 Instances CPU Utilization | Easiest and Cost-efficient Method

Monitor EC2 Instances CPU Utilization

Question

Your company has a set of EC2 Instances.

The monitoring department needs to get dashboard metrics for the CPU utilization of the Instances at one-minute intervals.

You need to comply with this requirement in the easiest and cost-efficient way possible.

Which of the following steps would you implement? Choose 2 answers from the options given below.

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

Answer - B and C.

The AWS Documentation mentions the following.

Amazon EC2 sends metrics to Amazon CloudWatch.

You can use the AWS Management Console, the AWS CLI, or an API to list the metrics that Amazon EC2 sends to CloudWatch.

By default, each data point covers the previous 5 minutes of activity, for instance.

If you've enabled detailed monitoring, each data point covers the previous 1 minute of activity.

Amazon CloudWatch dashboards are customizable home pages in the CloudWatch console that you can use to monitor your resources in a single view, even those resources that are spread across different Regions.

You can use CloudWatch dashboards to create customized views of the metrics and alarms for your AWS resources.

Option A is incorrect since this will not meet the requirement of 1-minute interval logging of metrics.

Option D is incorrect since this is only used for API-based logging.

For more information on Cloudwatch metrics, please refer to the below URL-

https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/viewing_metrics_with_cloudwatch.html

For more information on Cloudwatch dashboards, please refer to the below URL.

https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Dashboards.html

To comply with the monitoring department's requirement of obtaining dashboard metrics for the CPU utilization of the EC2 Instances at one-minute intervals in the easiest and cost-efficient way possible, you can take the following steps:

  1. Enable detailed monitoring for the EC2 Instances: AWS CloudWatch provides two types of monitoring for EC2 instances - basic monitoring and detailed monitoring. Basic monitoring is enabled by default and provides metrics such as CPU utilization, data transfer, and disk I/O at a 5-minute interval. However, detailed monitoring provides the same metrics at a 1-minute interval. Detailed monitoring is charged at a higher rate than basic monitoring, but for the monitoring department's requirement, you need to enable it.

  2. Create a dashboard in CloudWatch: After enabling detailed monitoring for EC2 instances, you can create a custom dashboard in AWS CloudWatch to view the metrics at a glance. The dashboard can include metrics such as CPU utilization, network activity, and disk I/O, and you can set it up to refresh at a specified interval.

Therefore, the correct answers are B and C. By enabling detailed monitoring for EC2 instances, you can obtain CPU utilization metrics at a one-minute interval, and creating a dashboard in CloudWatch allows you to view the metrics easily and in real-time.

Option A, enabling basic monitoring, is not sufficient for the monitoring department's requirement. Option D, creating a dashboard in CloudTrail, is not relevant to monitoring CPU utilization metrics for EC2 instances as CloudTrail is used for auditing and compliance purposes.