SOA-C02 Exam QuestionsBrowse all questions from this exam

SOA-C02 Exam - Question 242


An errant process is known to use an entire processor and run at 100%. A SysOps administrator wants to automate restarting an Amazon EC2 instance when the problem occurs for more than 2 minutes.

How can this be accomplished?

Show Answer
Correct Answer: B

To accomplish the task of restarting an EC2 instance when an errant process runs at 100% for more than 2 minutes, you need to create an Amazon CloudWatch alarm for the EC2 instance with detailed monitoring. Detailed monitoring provides metrics at 1-minute intervals, allowing you to set up an alarm that triggers after 2 consecutive datapoints (each 1 minute apart) indicate high CPU usage. Once the alarm is triggered, you can add an action to automatically restart the instance. Basic monitoring, which provides 5-minute interval metrics, would not allow precise control for a 2-minute threshold, hence detailed monitoring is necessary.

Discussion

3 comments
Sign in to comment
anderriOption: B
Feb 16, 2023

Basic monitoring is 5 minutes interval Detailed monitoring is 1 minute interval https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch-metrics-basic-detailed.html

jipark
Aug 18, 2023

High Resolution is 30 secs.

johnson_chaoOption: B
Apr 1, 2024

Ans is B ref : https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-cloudwatch-new.html

10cc6baOption: B
Jul 15, 2024

B 100%