Topic 1 Question 329
A company has multiple Amazon EC2 instances that run a resource-intensive application in a development environment. A SysOps administrator is implementing a solution to stop these EC2 instances when they are not in use.
Which solution will meet this requirement?
Assess AWS CloudTrail logs to verify that there is no EC2 API activity. Invoke an AWS Lambda function to stop the EC2 instances.
Create an Amazon CloudWatch alarm to stop the EC2 instances when the average CPU utilization is lower than 5% for a 30-minute period.
Create an Amazon CloudWatch metric to stop the EC2 instances when the VolumeReadBytes metric is lower than 500 for a 30-minute period.
Use AWS Config to invoke an AWS Lambda function to stop the EC2 instances based on resource configuration changes.
ユーザの投票
コメント(1)
- 正解だと思う選択肢: B
Option B, creating an Amazon CloudWatch alarm based on CPU utilization, is a suitable solution for stopping EC2 instances when they are not in use. Here's how it works:
Create a CloudWatch alarm: Set up a CloudWatch alarm with the desired configuration, specifying the metric to monitor (CPU utilization) and the threshold to trigger the alarm (average CPU utilization lower than 5% for a 30-minute period).
Define the action: Configure the alarm to stop the EC2 instances when the threshold is breached. This can be done by specifying an Amazon EC2 action to stop the instances associated with the alarm.
By implementing this solution, the EC2 instances will be automatically stopped when their average CPU utilization falls below 5% for a continuous 30-minute period. This indicates that the instances are not being actively utilized and can be safely stopped to save costs and resources.
👍 4Pete9872023/06/30
シャッフルモード