AWS Certified Security – Specialty — Question 148

During a manual review of system logs from an Amazon Linux EC2 instance, a Security Engineer noticed that there are sudo commands that were never properly alerted or reported on the Amazon CloudWatch Logs agent.
Why were there no alerts on the sudo commands?

Answer options

Correct answer: B

Explanation

The correct answer is B because if the IAM instance profile is not configured correctly, the CloudWatch Logs agent will lack the necessary permissions to send logs to CloudWatch. Option A is incorrect as it pertains to outbound traffic restrictions, which do not directly relate to IAM permissions. Option C is wrong since the status setting does not impact the ability to send logs based on permissions, and option D is not applicable as the agent can be configured to work with or without a proxy.