AWS Certified Solutions Architect – Professional — Question 909
A company has a legacy application running on servers on premises. To increase the application's reliability, the company wants to gain actionable insights using application logs. A Solutions Architect has been given following requirements for the solution:
✑ Aggregate logs using AWS.
✑ Automate log analysis for errors.
✑ Notify the Operations team when errors go beyond a specified threshold.
What solution meets the requirements?
Answer options
- A. Install Amazon Kinesis Agent on servers, send logs to Amazon Kinesis Data Streams and use Amazon Kinesis Data Analytics to identify errors, create an Amazon CloudWatch alarm to notify the Operations team of errors
- B. Install an AWS X-Ray agent on servers, send logs to AWS Lambda and analyze them to identify errors, use Amazon CloudWatch Events to notify the Operations team of errors.
- C. Install Logstash on servers, send logs to Amazon S3 and use Amazon Athena to identify errors, use sendmail to notify the Operations team of errors.
- D. Install the Amazon CloudWatch agent on servers, send logs to Amazon CloudWatch Logs and use metric filters to identify errors, create a CloudWatch alarm to notify the Operations team of errors.
Correct answer: D
Explanation
Installing the Amazon CloudWatch agent on-premises is a standard and efficient way to stream logs directly to Amazon CloudWatch Logs. Once in CloudWatch Logs, metric filters can scan the incoming log data for specific error patterns and turn them into numerical metrics. These metrics can then trigger a CloudWatch alarm to notify the Operations team when thresholds are breached, making option D the most straightforward and native AWS solution.