AWS Certified Developer Associate (#5)

A Developer wants access to make the log data of an application running on an EC2 instance available to systems administrators. Which of the following enables monitoring of this metric in Amazon CloudWatch?

Retrieve the log data from CloudWatch using the
API call
Retrieve the log data from AWS CloudTrail using the
API call.
Launch a new EC2 instance, configure Amazon CloudWatch Events, and then install the application.
Install the Amazon CloudWatch Logs agent on the EC2 instance that the application is running on.