DVA-C02 · Question #88
A company runs an application on AWS. The company deployed the application on Amazon EC2 instances. The application stores data on Amazon Aurora. The application recently logged multiple application-s
The correct answer is C. Use Amazon CloudWatch Logs to create a metric filter that has a filter pattern for. CloudWatch Logs can use filter expressions. For example, find a specific IP inside of a log Or count occurrences of "ERROR" in your logs - Metric filters can be used to trigger CloudWatch
Question
A company runs an application on AWS. The company deployed the application on Amazon EC2 instances. The application stores data on Amazon Aurora. The application recently logged multiple application-specific custom DECRYP_ERROR errors to Amazon CloudWatch logs. The company did not detect the issue until the automated tests that run every 30 minutes failed. A developer must implement a solution that will monitor for the custom errors and alert a development team in real time when these errors occur in the production environment. Which solution will meet these requirements with the LEAST operational overhead?
Options
- AConfigure the application to create a custom metric and to push the metric to CloudWatch. Create
- BCreate an AWS Lambda function to run every 5 minutes to scan the CloudWatch logs for the
- CUse Amazon CloudWatch Logs to create a metric filter that has a filter pattern for
- DInstall the CloudWatch unified agent on the EC2 instance. Configure the application to generate a
How the community answered
(38 responses)- A8% (3)
- B18% (7)
- C71% (27)
- D3% (1)
Explanation
CloudWatch Logs can use filter expressions. For example, find a specific IP inside of a log Or count occurrences of "ERROR" in your logs - Metric filters can be used to trigger CloudWatch
Community Discussion
No community discussion yet for this question.