A company enforces strict S3 access policies using IAM roles for internal teams. The company needs to be notified when a user violates the data access policy, and each alert must include the username of the violator. Which solution satisfies these requirements?
Choose an answer
Tap an option to check your answer.
Correct answer: Use AWS CloudTrail to track object-level events for the S3 bucket. Forward events to Amazon CloudWatch to set up CloudWatch alarms..
Why this is the answer
The correct solution is to use AWS CloudTrail because it records API calls and related events, including user identity, which is crucial for identifying the violator. By tracking object-level events for the S3 bucket, CloudTrail captures who attempted to access the data. Forwarding these events to Amazon CloudWatch allows you to create alarms based on specific access policy violations, and these alarms can include the username from the CloudTrail logs. AWS Config rules primarily assess compliance of resource configurations, not individual user actions or violations, so it wouldn't capture the specific user. Amazon CloudWatch metrics gather performance data, not detailed user access information. Amazon S3 server access logs record requests made to S3 buckets, including the requester's IP, but CloudTrail provides a more direct and reliable way to capture the IAM user identity associated with API calls, making it superior for identifying policy violators.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed