A company's security team needs to receive near-real-time notifications whenever an IAM user in their AWS account performs an action that violates a defined baseline of expected behavior. Examples include launching an Amazon EC2 instance in an unauthorized AWS Region or modifying a security group to allow public SSH access from the internet. The solution must analyze continuous streams of AWS API activity to identify suspicious patterns and known malicious IP addresses. Which AWS service should the security team use?
Correct. Amazon GuardDuty uses threat intelligence and machine learning to analyze continuous streams of AWS API activity (via CloudTrail), VPC Flow Logs, and DNS logs. It detects suspicious patterns, unauthorized behavior, and known malicious IP addresses, and can send near-real-time alerts.
Why this answer
Amazon GuardDuty is a threat detection service that continuously monitors AWS API activity, including CloudTrail management events, VPC Flow Logs, and DNS logs, to identify suspicious patterns and known malicious IP addresses. It uses machine learning and integrated threat intelligence to detect anomalous behavior such as launching EC2 instances in unauthorized regions or modifying security groups for public SSH access, and can deliver near-real-time notifications via Amazon EventBridge or SNS. This makes it the correct choice for analyzing continuous streams of API activity and alerting on violations of a defined baseline.
Exam trap
The trap here is that candidates often confuse AWS CloudTrail's logging capability with GuardDuty's threat detection, assuming that simply recording API calls is sufficient for near-real-time security analysis, but CloudTrail lacks the built-in machine learning and threat intelligence needed to identify suspicious patterns or malicious IPs automatically.
Why the other options are wrong
AWS CloudTrail records API activity but does not analyze streams for suspicious patterns or known malicious IP addresses in near-real-time; it lacks built-in threat detection and anomaly identification.
AWS Config is a service for evaluating resource configurations against desired policies, not for analyzing continuous streams of API activity or identifying malicious IP addresses. It does not provide near-real-time threat detection based on API behavior.
Amazon Inspector is a vulnerability management service that scans for software vulnerabilities and unintended network exposure, not for analyzing real-time API activity streams to detect anomalous user behavior or known malicious IP addresses.
When would these options actually be correct?
A question asking for a service that provides a record of all API calls for auditing, compliance, or security analysis, without requiring real-time threat detection or behavioral analysis, would make CloudTrail correct.
AWS Config would be correct if the question asked for a service to continuously monitor and evaluate changes to AWS resource configurations (e.g., security group rules) against compliance rules, and trigger notifications when configurations drift from defined baselines.
A question asking: 'Which AWS service can automatically assess applications for vulnerabilities or deviations from best practices, such as open ports to the internet or insecure software versions?' would make Amazon Inspector the correct answer.
Why candidates pick the wrong answer
Candidates know CloudTrail logs API activity, so they may mistakenly think it can be used directly for threat detection, overlooking that it requires additional services like GuardDuty to analyze the logs for suspicious behavior.
Candidates may confuse AWS Config's ability to detect configuration changes (like modified security groups) with the need for real-time threat detection, overlooking that GuardDuty is specifically designed for analyzing API activity and threat intelligence.
Candidates may confuse 'security assessment' with 'threat detection' and think Inspector's vulnerability scanning includes monitoring API behavior, or they may misremember Inspector's capabilities as broader than they actually are.