Answer – A
The AWS Documentation mentions the following
########
Monitor Multiple File Directories and Write to Multiple Streams
By specifying multiple flow configuration settings, you can configure the agent to monitor multiple file directories and send data to multiple streams. In the following configuration example, the agent monitors two file directories and sends data to an Kinesis stream and a Kinesis Data Firehose delivery stream respectively. Note that you can specify different endpoints for Kinesis Data Streams and Kinesis Data Firehose so that your Kinesis stream and Kinesis Data Firehose delivery stream don’t need to be in the same region.
{
"cloudwatch.emitMetrics": true,
"kinesis.endpoint": "https://your/kinesis/endpoint",
"firehose.endpoint": "https://your/firehose/endpoint",
"flows": [
{
"filePattern": "/tmp/app1.log*",
"kinesisStream": "yourkinesisstream"
},
{
"filePattern": "/tmp/app2.log*",
"deliveryStream": "yourfirehosedeliverystream"
}
]
}
########
Option B is incorrect since the KCL will be used to read data from the streams and not the files
Option C is incorrect since this is used on the consumer side
Option D is incorrect since there is no mention on how long it would be required to maintain the records
For more information on using the Kinesis agent, please refer to the below URL
https://docs.aws.amazon.com/streams/latest/dev/writing-with-agents.html