An application on Amazon EC2 writes authentication failures to a local text file. A DevOps engineer must make these records searchable in CloudWatch Logs. Which action meets this requirement?
Show the answer
Correct answerB. Configure the unified CloudWatch agent to collect the file with appropriate IAM permissions.
AWhy not this: CloudTrail management events describe AWS control plane activity, not the contents of local application log files.
BWhy this is right: The agent collects configured local files and uses IAM permissions to publish their records to CloudWatch Logs.
CWhy not this: Detailed monitoring provides more frequent EC2 metrics; it does not collect application log files.
DWhy not this: VPC Flow Logs describe network flows, not application authentication messages.
The unified CloudWatch agent can collect application log files and publish them to CloudWatch Logs. CloudTrail records supported AWS API activity, not arbitrary files written by an application.