SCS-C02 Amazon GuardDuty Practice Question
A company has a requirement to detect and alert on anomalous IAM user behavior, such as a user logging in from an unusual geographic location. The company uses AWS Organizations and has multiple accounts. Which services should the company use to meet this requirement? (Choose two.)
⚠ Common exam trap
The trap is that candidates often choose only GuardDuty or mistakenly include IAM Access Analyzer. The correct pair is GuardDuty for detection and CloudTrail for logging the events that GuardDuty analyzes. CloudTrail alone does not detect anomalies, but it is necessary for providing the data.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Amazon GuardDuty
Amazon GuardDuty (C) is correct because it uses machine learning to detect anomalous IAM user behavior, such as logins from unusual geographic locations, across multiple accounts when integrated with AWS Organizations. AWS CloudTrail (E) is correct because it records all IAM user sign-in events and API calls, providing the raw data that GuardDuty analyzes. CloudTrail is essential for capturing the logs that enable GuardDuty to detect anomalies. IAM Access Analyzer (D) is incorrect because it focuses on resource policies and unintended external access, not user behavior anomalies like unusual login locations.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Amazon CloudWatch Logs
Why it's wrong here
Amazon CloudWatch Logs is designed to ingest, store, and search log data from applications and AWS services, but it has no built-in machine learning model specifically trained to identify anomalous IAM sign-in behavior. You could use CloudWatch Logs Insights to query CloudTrail events after sending them there, but any alerting would rely on manually defined metric filters or static threshold rules, such as counting denied API calls. It cannot natively detect behavioral deviations like a login from an unusual geographic region without extensive custom logic.
- ✗
AWS Config
Why it's wrong here
AWS Config continuously records and evaluates changes to AWS resource configurations, such as security group rule modifications or whether an S3 bucket is publicly accessible. It has no visibility into IAM user sign-in events or the contextual sequence of API calls made by a principal, because its data model is based on resource state rather than user activity. Its compliance rules are designed to enforce infrastructure standards, not to identify anomalous login locations or unusual IAM user actions, so it cannot produce the needed alerts.
- ✓
Amazon GuardDuty
Why this is correct
Amazon GuardDuty is a managed threat detection service that continuously analyzes CloudTrail event logs, VPC Flow Logs, and DNS query logs using machine learning models and integrated threat intelligence to identify anomalous IAM behavior. It establishes a baseline of normal user activity and generates findings when it detects deviations, such as a logon from a known malicious IP, an unusual geolocation sign-in, or API calls made from a compromised credential. GuardDuty is purpose-built to alert on these anomalies and can automatically send findings to Amazon EventBridge for response.
- ✗
IAM Access Analyzer
Why it's wrong here
IAM Access Analyzer is a policy-analysis tool that scans resource-based policies, such as S3 bucket policies, KMS key policies, and IAM role trust policies, to identify resources shared with an entity outside your AWS account. It does not monitor IAM user authentication events, source IP addresses, or API call patterns, and it does not apply threat intelligence or establish behavioral baselines for user activity. Its purpose is to reduce unintended external access to resources through policy analysis, not to detect anomalous IAM user behavior.
- ✓
AWS CloudTrail
Why this is correct
AWS CloudTrail provides the authoritative audit trail of every IAM user sign-in event and API call made in an AWS account, capturing details such as the user identity, source IP address, user agent, and event timestamp. This raw telemetry is the underlying data source that enables detection of anomalies such as logins from unusual locations or impossible travel patterns. While CloudTrail alone does not perform anomaly detection, its event records are essential for any service or custom solution that monitors identity-based activity.
Go deeper
Related to this question
About these practice questions
Courseiva writes every SCS-C02 question from scratch — 376 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This SCS-C02 practice question is part of Courseiva's free Amazon Web Services certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the SCS-C02 exam.