exam questions

Exam AWS Certified Developer - Associate DVA-C02 All Questions

View all questions & answers for the AWS Certified Developer - Associate DVA-C02 exam

Exam AWS Certified Developer - Associate DVA-C02 topic 1 question 79 discussion

A developer wants to debug an application by searching and filtering log data. The application logs are stored in Amazon CloudWatch Logs. The developer creates a new metric filter to count exceptions in the application logs. However, no results are returned from the logs.

What is the reason that no filtered results are being returned?

  • A. A setup of the Amazon CloudWatch interface VPC endpoint is required for filtering the CloudWatch Logs in the VPC.
  • B. CloudWatch Logs only publishes metric data for events that happen after the filter is created.
  • C. The log group for CloudWatch Logs should be first streamed to Amazon OpenSearch Service before metric filtering returns the results.
  • D. Metric data points for logs groups can be filtered only after they are exported to an Amazon S3 bucket.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
zodraz
Highly Voted 1 year, 5 months ago
Selected Answer: B
Filters do not retroactively filter data. Filters only publish the metric data points for events that happen after the filter was created. https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/MonitoringLogData.html
upvoted 14 times
...
anandkg
Most Recent 3 weeks, 6 days ago
Selected Answer: B
The other option are not that related
upvoted 1 times
...
sumanshu
4 months, 1 week ago
Selected Answer: B
Metric filters in Amazon CloudWatch Logs only work on new logs generated after the filter is created. If the filter was created, but no logs were generated afterward (or if you're trying to filter older log entries), no metric data points would be produced.
upvoted 1 times
...
65703c1
5 months, 1 week ago
Selected Answer: B
B is the correct answer.
upvoted 1 times
...
SerialiDr
9 months, 3 weeks ago
Selected Answer: B
CloudWatch Logs metric filters apply to new log events only after the filter is created. They do not retroactively analyze or filter log events that were ingested before the creation of the metric filter. Therefore, if the log events in question were ingested before the metric filter was created, they would not trigger the filter or generate metric data.
upvoted 2 times
...
Dushank
1 year, 1 month ago
Selected Answer: B
Metric filters in Amazon CloudWatch Logs are applied only to new log events. If you create a metric filter and are looking to count exceptions, the filter will only apply to log events generated after the metric filter was created. Existing logs are not scanned.
upvoted 4 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago