
Answer-first summary for fast verification
Answer: Metric filters in CloudWatch Logs are only active for events occurring after the filter's creation.
The correct answer is B. Metric filters in Amazon CloudWatch Logs are only applied to new log events that occur after the metric filter's creation. They do not retroactively analyze or filter log events ingested before the creation of the metric filter. Therefore, if the log events being queried were ingested before the metric filter was created, they will not trigger the filter or generate metric data. This is why no results are returned from the logs.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
Why are no results returned from a newly created metric filter in Amazon CloudWatch Logs for an application's log data?
A
A VPC endpoint setup for Amazon CloudWatch interface is necessary for filtering logs within a VPC.
B
Metric filters in CloudWatch Logs are only active for events occurring after the filter's creation.
C
Log groups must be streamed to Amazon OpenSearch Service to enable metric filter results.
D
Metric filters apply exclusively to new log events post-creation of the filter, ignoring existing logs.