AWS Certified Developer Associate DVA-C01 – Question160

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?

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

Correct Answer: D