Correct Answer – D
You can use Amazon CloudWatch Logs to monitor, store, and access your log files from Amazon Elastic Compute Cloud (Amazon EC2) instances, AWS CloudTrail, and other sources.
For more information on CloudWatch Logs, please visit the following URL-
https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/WhatIsCloudWatchLogs.html
Refer to page 638 on the below link:
https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/acw-ug.pdf
Note: The question is not about compliance or auditing or tracking any kind of malicious activity or monitoring API calls in your account. If that had been the case, we would have used CloudTrail as it provides info such as who made the request, when the request was made, the request, the response, etc.
In this question, we need cloud watch logs to store and analyze logs from EC2 to find why the instance is frequently restarting.