DAS-C01 · Question #33
A software company hosts an application on AWS, and new features are released weekly. As part of the application testing process, a solution must be developed that analyzes logs from each Amazon EC2…
The correct answer is C. Use the Amazon Kinesis Producer Library (KPL) agent on Amazon EC2 to collect and send data. Using the Amazon Kinesis Producer Library (KPL) agent on EC2 to collect logs and send them to Amazon Kinesis Data Streams provides a highly available, near-real-time log streaming pipeline. KPL handles batching, compression, and retry logic for reliable delivery. Kinesis Data…
Question
A software company hosts an application on AWS, and new features are released weekly. As part of the application testing process, a solution must be developed that analyzes logs from each Amazon EC2 instance to ensure that the application is working as expected after each deployment. The collection and analysis solution should be highly available with the ability to display new information with minimal delays. Which method should the company use to collect and analyze the logs?
Options
- AEnable detailed monitoring on Amazon EC2, use Amazon CloudWatch agent to store logs in
- BUse the Amazon Kinesis Producer Library (KPL) agent on Amazon EC2 to collect and send data
- CUse the Amazon Kinesis Producer Library (KPL) agent on Amazon EC2 to collect and send data
- DUse Amazon CloudWatch subscriptions to get access to a real-time feed of logs and have the
How the community answered
(44 responses)- A7% (3)
- B5% (2)
- C80% (35)
- D9% (4)
Explanation
Using the Amazon Kinesis Producer Library (KPL) agent on EC2 to collect logs and send them to Amazon Kinesis Data Streams provides a highly available, near-real-time log streaming pipeline. KPL handles batching, compression, and retry logic for reliable delivery. Kinesis Data Streams enables downstream consumers (such as Amazon Kinesis Data Analytics or AWS Lambda) to process and display log data with minimal latency. CloudWatch detailed monitoring (option A) is better suited for metrics than log content analysis. CloudWatch subscriptions (option D) add complexity for cross-instance aggregation. KPL with Kinesis Data Streams is the most scalable and low-latency solution for this multi-EC2 log analysis use case.
Topics
Community Discussion
No community discussion yet for this question.