AWS Certified Developer – Associate (DVA-C02) — Question 386
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
High-resolution CloudWatch alarms support periods of 10 seconds or 30 seconds, enabling rapid evaluation and notification via Amazon SNS within the required 30-second window for high-granularity metrics. Standard alarms have a minimum resolution of 60 seconds, which is too slow for this requirement. Custom dashboards, Logs Insights, and default metrics do not provide the necessary sub-minute alerting capability.