etc. needs to be captured for applying machine learning and analytics. But may not be needed on immediate basis. Which of the following is an ideal solution for the given requirement to capture both types of events
logs?
1. You will be using CloudWatch Logs for that
2. You will be using CloudTrail API logs and save data in S3 bucket.
3. You will be using Kinesis Producer and Consumer Library.
4. To capture ERROR logs you will be using PutRecords API method and you will be using Kinesis Producer Library and for capturing other logs.
5. To capture ERROR logs you will be using GetRecords API method and you will be using Kinesis Producer Library and for capturing other logs.
Correct Answer : 4 Exp : In this question two important aspect as below.
ERROR Event: Needs to be capture immediately and reported to developer or support team.
INFO and other Events: No need to capture immediately, because it is used for analyzing the data. Some delay is fine.
If you need data immediately then it require synchronous call and for other you can use asynchronous call. In the Kinesis Producer Library there is a function which sends data asynchronously and that is fine for the
INFO messages. But to receive critical message synchronously we can use PutRecords API.
4