AWS Certified Security – Specialty (SCS-C02) — Question 101

A security engineer wants to forward custom application-security logs from an Amazon EC2 instance to Amazon CloudWatch. The security engineer installs the CloudWatch agent on the EC2 instance and adds the path of the logs to the CloudWatch configuration file.

However, CloudWatch does not receive the logs. The security engineer verifies that the awslogs service is running on the EC2 instance.

What should the security engineer do next to resolve the issue?

Answer options

Correct answer: D

Explanation

The correct answer is D because attaching the CloudWatchAgentServerPolicy to the EC2 instance role grants the necessary permissions for the CloudWatch agent to send logs to CloudWatch. The other options suggest using different services or modifying trust policies that are not relevant to the issue of log ingestion with CloudWatch.