AWS Certified DevOps Engineer – Professional — Question 101

A mobile application running on eight Amazon EC2 instances is relying on a third-party API endpoint. The third-party service has a high failure rate because of limited capacity which is expected to be resolved in a few weeks.

In the meantime, the mobile application developers have added a retry mechanism and are logging failed API requests. A DevOps engineer must automate the monitoring of application logs and count the specific error messages, if there are more than 10 errors within a 1-minute window the system must issue an alert.

How can the requirements be met with MINIMAL management overhead?

Answer options

Correct answer: C

Explanation

Option C is correct because it directly uses the CloudWatch agent and metric filters to automate the log monitoring with minimal management, tracking application errors efficiently. Options A and B involve unnecessary complexity with metric filters or EventBridge that are not as streamlined. Option D requires custom scripting and cron jobs, which adds significant management overhead compared to using built-in CloudWatch capabilities.