
Ultimate access to all questions.
A company has deployed an application on AWS, with logs streamed to Amazon CloudWatch. The requirement is to alert the development team via email whenever 'ERROR' is logged. With the SNS topic already set up for team subscription, what configuration step in CloudWatch should the developer perform next?
A
Create a metric filter in the selected log group for 'ERROR' and link it to an alarm that triggers the SNS topic when the metric exceeds 1.
B
Utilize CloudWatch Logs Insights to create a metric query for 'ERROR' and set an alarm for the metric to alert the SNS topic when it hits 1 or more.
C
Establish an SNS subscription filter for 'ERROR' within the selected log group, directing notifications to the SNS topic.
D
Formulate a CloudWatch alarm with 'ERROR' as a filter, using the correct log group, to alert the SNS topic upon occurrence.