AWS Certified Developer – Associate — Question 241
A developer is monitoring an application that runs on an Amazon EC2 instance. The developer has configured a custom Amazon CloudWatch metric with data granularity of 1 second. If any issues occur, the developer wants to be notified within 30 seconds by Amazon Simple Notification Service (Amazon SNS).
What should the developer do to meet this requirement?
Answer options
- A. Configure a high-resolution CloudWatch alarm.
- B. Set up a custom CloudWatch dashboard.
- C. Use Amazon CloudWatch Logs Insights.
- D. Change to a default CloudWatch metric.
Correct answer: A
Explanation
The correct answer is A, as a high-resolution CloudWatch alarm can trigger actions based on metrics with a granularity of 1 second and send notifications via Amazon SNS within the desired timeframe. Option B, a custom dashboard, does not provide notifications; option C, CloudWatch Logs Insights, is for querying logs, not for setting alarms; and option D, changing to a default metric, would not support the required granularity or notification requirements.