“The service that finds threats, the one that looks for vulnerabilities, and the one that keeps records are all named after security, and I mix them up.”
“CloudTrail keeps a record of operations, so I assume it can find suspicious activity too.”
AWS Certified Cloud Practitioner (exam code CLF-C02, CLF below) asks you to choose the detection service by telling apart “suspicious activity (threats),” “software weaknesses (vulnerabilities),” “sensitive data,” and “a record of operations” from the words in the question. The deciding factor is which word in the question points to which service.
This article is Question 23 of a series that explains CLF practice questions one at a time. The author wrote the questions to match the scope of the exam; they are not actual exam questions. Choose your answer first, then read the explanation.
Question
A security officer at a company wants to notice suspicious activity in its AWS account early. Examples of signs are an EC2 instance suddenly launched in a Region the company has never used, and an EC2 instance communicating with a malicious IP address. The company wants to detect such threats continuously without building its own log analysis system. Which AWS service should it use?
- A. Amazon Macie
- B. AWS CloudTrail
- C. Amazon GuardDuty
- D. Amazon Inspector
Once you have chosen your answer, open the section below.
Show the answer (click to open)
Answer: C
Once you enable it, Amazon GuardDuty automatically analyzes CloudTrail management events, VPC Flow Logs, and DNS logs, and continuously detects suspicious activity (threats). You do not have to build a log analysis system yourself.
The answer is C
The correct answer is C.
- Amazon GuardDuty is a service that detects threats
- Once you enable it, it analyzes logs automatically and finds suspicious activity
Let’s look at the options one at a time.
Explanation of each option
A: Macie is for sensitive data in S3 (incorrect)

Amazon Macie is a service that finds sensitive data inside Amazon S3 buckets. As shown in the middle of the diagram, it detects personally identifiable information and similar data with machine learning and pattern matching.
What it looks at is the data stored in S3. It does not detect suspicious activity inside the account.
B: CloudTrail only records (incorrect)

AWS CloudTrail is a service that records API calls. As shown in the middle of the diagram, it keeps a ledger of when, who, and what.
However, it only records. It does not analyze the records to find threats. GuardDuty is the service that uses these records as material to find threats.
C: GuardDuty analyzes logs automatically (correct)

Amazon GuardDuty is a threat detection service. It automatically analyzes the logs on the left of the diagram (CloudTrail management events, VPC Flow Logs, and DNS logs) without the customer preparing anything. Using lists of malicious IP addresses and machine learning, it finds suspicious activity like that on the right of the diagram.
All the customer has to do is enable GuardDuty. You do not have to build a log analysis system yourself.
D: Inspector looks for vulnerabilities (incorrect)

Amazon Inspector is a service that looks for software weaknesses, that is, vulnerabilities. It continuously scans EC2 instances, container images, and Lambda functions. It is meant for finding and fixing, in advance, weak spots that might be used in an attack.
A vulnerability is a weak spot. It does not detect the suspicious activity that is happening now.
How to tell the four services apart
Suspicious activity (a threat) is GuardDuty, a software weakness (a vulnerability) is Inspector, sensitive data in S3 is Macie, and a record of operations is CloudTrail. On the exam, you tell them apart by the words threat, vulnerability, sensitive data, and record.
| What you want to find | Service | What it looks at |
|---|---|---|
| Suspicious activity (threats) | Amazon GuardDuty | CloudTrail management events, VPC Flow Logs, DNS logs |
| Software weaknesses (vulnerabilities) | Amazon Inspector | EC2, container images, Lambda |
| Sensitive data (such as personal information) | Amazon Macie | Inside S3 buckets |
| Keeping a record of operations | AWS CloudTrail | API calls |
Key points
- Continuously detecting suspicious activity (threats) = Amazon GuardDuty
- Once enabled, it automatically analyzes CloudTrail, VPC Flow Logs, and DNS logs
- Vulnerabilities = Inspector, sensitive data in S3 = Macie, record of operations = CloudTrail
The course articles explain in detail the roles of GuardDuty, Inspector, and Macie and when to use which, and how CloudTrail keeps records.
- Lecture 10, Part 8: Detection and investigation services
- Lecture 9, Part 2: AWS CloudTrail
You can read all 14 lectures of AWS Cloud Practitioner Exam Prep in order from its series page.
The CLF-C02 Practice Questions series (100 questions)
All 100 questions with a reading guide: CLF-C02 Practice Questions
In this group (Questions 19–30: The shared responsibility model and security):
- Question 19: Principle of least privilege (IAM policies and SCPs)
- Question 20: Shared responsibility model (what AWS is responsible for with EC2 and S3)
- Question 21: Examples of shared controls (IT controls in the shared responsibility model)
- Question 22: Compliance reports and agreements (AWS Artifact)
- Question 23: Threat detection (Amazon GuardDuty) (this article)
- Question 24: Continuous vulnerability scanning (Amazon Inspector)
- Question 25: Discovering sensitive data in S3 (Amazon Macie)
- Question 26: Encryption at rest for S3 and managing the keys (SSE-KMS and client-side encryption)
- Question 27: Finding out who made a change (AWS CloudTrail)
- Question 28: A list of IAM users’ credentials (credential report)
- Question 29: Granting permissions to an application on EC2 (IAM roles)
- Question 30: Automatic rotation of database passwords (AWS Secrets Manager)
This series is the English edition of 【CLF-C02 試験対策問題】, originally written in Japanese.


コメント