Question

Difficulty: EasyCloudWatch Metrics and Alarms

An organization monitors an application's transaction rate using a custom Amazon CloudWatch metric. During off-peak hours, the application stops sending data to CloudWatch when there are no transactions. A SysOps Administrator needs to configure a CloudWatch alarm so that it remains in its current state during these periods without transitioning to another state. Which configuration option for treating missing data should the administrator select to achieve this?

  1. Ignore (maintain the current alarm state)Answer
  2. B
    Enable detailed monitoring for the custom metric to generate empty data points
  3. C
    Create an Amazon EventBridge rule to automatically publish a default value of zero when the alarm status changes
  4. D
    Increase the Auto Scaling group cooldown period to prevent the alarm from evaluation during off-peak hours

Answer

Configure the CloudWatch alarm to treat missing data as 'ignore' (maintain the current alarm state).
The correct option correctly identifies the 'ignore' setting (maintain the current alarm state) for handling missing data. This option ensures that CloudWatch does not change the alarm state or trigger actions when no new metric data points are received.

Step-by-Step Solution

1
Identify that the problem is caused by the absence of custom metric data during periods of low activity.
The application does not publish metrics when there are no transactions.
When no data is sent, CloudWatch alarms default to transitioning into an INSUFFICIENT_DATA state.
2
Evaluate CloudWatch alarm settings for handling missing data points.
Identify 'ignore' as the option that prevents state transitions when data is missing.
Choosing 'ignore' ensures that the alarm maintains its last evaluated state during periods of missing data.
3
Select the 'ignore' option (maintain current alarm state) to prevent the alarm from transitioning to INSUFFICIENT_DATA or triggering false alarms.
The alarm is successfully configured to maintain its current state during periods of inactivity.
This configuration directly addresses the requirement without needing external scripts or modifying scaling parameters.

Key Concept

Treatment of missing data in CloudWatch Alarms
Rate this question