Monitoring and Logging

A service has CloudWatch alarms named HighErrorRate and DeploymentInProgress. Operators need an SNS notification when HighErrorRate is in ALARM only if DeploymentInProgress is not in ALARM, without changing either alarm's thresholds; which configuration meets this requirement?

Show the answer

Correct answerC. Create a composite alarm using ALARM(HighErrorRate) AND NOT ALARM(DeploymentInProgress); attach SNS only to it.

AWhy not this: Matching subjects do not combine alarm states or suppress notifications during deployments.

BWhy not this: The OR expression can trigger merely because the deployment alarm is not in ALARM.

CWhy this is right: The AND expression requires high errors and excludes periods when the deployment alarm is in ALARM.

DWhy not this: SNS subscription filters cannot query the current state of a separate CloudWatch alarm.

A composite alarm evaluates Boolean expressions over other alarm states, allowing error notifications only when the deployment alarm is not in ALARM. An OR expression would also notify when no deployment is active, even without a high error rate.