QuestionQ31

VerifiedMonitoring and Logging

A company intends to use Amazon CloudWatch to monitor its Amazon EC2 instances. The company must stop EC2 instances when the average NetworkPacketsIn metric is less than 5 for at least 3 hours within a 12-hour time window. The company must evaluate the metric every hour. The EC2 instances must keep running if NetworkPacketsIn metric data is missing during the evaluation period.

A DevOps engineer creates a CloudWatch alarm for the NetworkPacketsIn metric. The DevOps engineer sets a threshold value of 5 and an evaluation period of 1 hour.

Which additional set of actions should the DevOps engineer take to meet these requirements?

Explanation

A CloudWatch M-out-of-N alarm enters the ALARM state when the configured number of datapoints to alarm are breaching within the configured evaluation periods. Three hourly breaches in a 12-hour interval therefore requires 3 datapoints to alarm out of 12 evaluation periods. Treating missing data as not breaching prevents absent metric data from triggering the alarm. A CloudWatch alarm on an EC2 per-instance metric can perform a direct EC2 stop action when it enters the ALARM state.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!