A company uses Amazon S3 to store log files. The security team notices that some objects are being accessed from an unexpected AWS account. The data engineer needs to identify which specific IAM user or role is accessing the objects. Which AWS service should be used to get this information?
CloudTrail logs API calls and can be used to trace S3 access to specific IAM users or roles.
Why this answer
AWS CloudTrail records API calls including S3 object-level operations. It logs who made the call, from which account, and other details. S3 server access logs provide similar info but are log files themselves, not a queryable service.
Config is for resource configuration tracking. Trusted Advisor gives best practice checks.