A security engineer needs to generate an alert when three or more failed AWS Management Console sign-in attempts occur within a 5-minute window. A CloudTrail trail is already in place. Which solution will meet these requirements?
Choose an answer
Tap an option to check your answer.
Correct answer: Send CloudTrail events to Amazon CloudWatch Logs. Create a metric filter for the log group with eventName=ConsoleLogin and errorMessage="Failed authentication". Create a CloudWatch alarm with a threshold of 3 and a 5-minute period..
Why this is the answer
The correct solution involves streaming CloudTrail logs to CloudWatch Logs, then using a CloudWatch Logs metric filter to extract the specific failed login events. A CloudWatch alarm can then be configured on this metric filter, triggering when the count of failed logins exceeds the threshold (3) within the specified period (5 minutes). This is a standard and effective method for real-time alerting on log patterns. Incorrect options: CloudTrail Insights detects unusual activity, but it's not designed for specific, threshold-based alerting on individual events like failed logins. Using Amazon Athena for this purpose would involve batch querying, which is not suitable for real-time alerting within a 5-minute window. Athena is better for ad-hoc analysis. IAM Access Analyzer focuses on analyzing resource policies and access, not on monitoring real-time login attempts or generating alerts based on failed authentication counts.
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