AWS Certified Security – Specialty — Question 372

A security engineer is configuring a mechanism to send an alert when three or more failed sign-in attempts to the AWS Management Console occur during a 5-minute period. The security engineer creates a trail in AWS CloudTrail to assist in this work.

Which solution will meet these requirements?

Answer options

Correct answer: B

Explanation

Sending CloudTrail logs to Amazon CloudWatch Logs allows you to create a metric filter to detect specific patterns, such as ConsoleLogin events with a "Failed authentication" errorMessage, and trigger a CloudWatch alarm if the threshold of 3 is met within 5 minutes. CloudTrail Insights cannot be configured with custom threshold alarms for specific login errors, and Amazon Athena is a query service that does not natively support real-time threshold-based alerting. IAM Access Analyzer is used to identify external resource sharing and does not monitor console login events.