Question 550
During a security and availability review at a digital payments provider, the DevOps team discovers that an alarm fires repeatedly for isolated benign errors because its evaluation window is too narrow. The affected workload supports transaction authorization and reconciliation; availability and integrity are both required for financial settlement. Which automation approach BEST satisfies this operational requirement?
Explanation
Correct Answer
Correct. Create CloudWatch Logs metric filters for meaningful application events and configure thresholds, evaluation periods and notification actions aligned with service impact. The reported condition is that an alarm fires repeatedly for isolated benign errors because its evaluation window is too narrow. The design addresses the corresponding exposure: Silent errors and poorly tuned thresholds can miss serious incidents or create so much noise that alerts are ignored. Its effectiveness must be demonstrated by this result: Injected matching and nonmatching log messages produce the expected metric counts and trigger only the configured alarm condition and notification.
Incorrect Answers
Configure CloudWatch Logs group retention and the required subscription or export architecture so operational logs are collected and retained appropriately. This observation would miss the actual log metric filters and cloudwatch alarms fault.
Instrument supported application components for AWS X-Ray traces and propagate trace context to locate cross-service latency or error contributors. That evidence would not isolate log metric filters and cloudwatch alarms.
Deploy the Amazon CloudWatch Agent on managed EC2 instances with appropriate instance role permissions to collect memory, disk and selected application logs. The decisive diagnostic evidence must instead cover log metric filters and cloudwatch alarms.