“I heard GuardDuty protects S3 too, so I feel it should find the personal information inside S3 as well.”
“Detective and Inspector both sound like ‘services that investigate,’ and I can’t tell what each one investigates.”
AWS Certified Cloud Practitioner (exam code CLF-C02, CLF below) asks you to tell apart the service that finds sensitive data inside S3 files from the services for threats, vulnerabilities, and investigating causes. The dividing line is whether it “inspects the contents of files” or “looks at activity and logs.”
This article is Question 25 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 company stores application forms received from customers as files in several Amazon S3 buckets. It wants to automatically check every day how many of the files contain personal information such as names, addresses, and passport numbers, and to get the results as a list. Which AWS service should it use?
- A. Amazon Macie
- B. Amazon Detective
- C. Amazon GuardDuty
- D. Amazon Inspector
Once you have chosen your answer, open the section below.
Show the answer (click to open)
Answer: A
Amazon Macie is a service that finds sensitive data, such as personal information, in data stored in S3 by using machine learning and pattern matching. When you enable automated sensitive data discovery, it evaluates your buckets every day, selects files and inspects their contents, and lists the findings.
The answer is A
The correct answer is A.
- Amazon Macie is a service that finds sensitive data such as personal information in data stored in S3
Let’s look at the options one at a time.
Explanation of each option
A: Macie detects sensitive data in S3 (correct)

Amazon Macie is a data security service that finds sensitive data in S3 by using machine learning and pattern matching. When you enable automated sensitive data discovery, it evaluates your buckets every day and selects files to inspect their contents.
Passport numbers, credit card numbers, and the like can be found with the managed data identifiers that Macie provides. What it finds is listed as findings, as shown on the right of the diagram.
B: Detective investigates causes (incorrect)

Amazon Detective is a service that investigates the causes of security findings. As shown in the middle of the diagram, it builds behavior graphs from material such as CloudTrail, VPC Flow Logs, and GuardDuty findings. You use them to trace back what happened.
It is not a service for finding personal information inside files.
C: GuardDuty detects suspicious activity (incorrect)

Amazon GuardDuty is a service that detects suspicious activity inside the account, that is, threats. It can find suspicious access to S3. However, it does not check whether files contain personal information.
GuardDuty looks at how data is accessed, and Macie looks at what is inside the files.
D: Inspector looks for vulnerabilities (incorrect)

Amazon Inspector is a service that scans for software weaknesses, that is, vulnerabilities. As shown in the middle of the diagram, its targets are EC2 instances, container images, and Lambda functions.
It does not inspect the contents of data stored in S3.
Choose by what you want to find
Sensitive data in S3 (for example, personal information) is Macie, suspicious activity (threats) is GuardDuty, software weaknesses (vulnerabilities) is Inspector, and investigating the cause of findings is Detective. On the exam, you tell them apart by the words sensitive data, threat, vulnerability, and investigation.
| What you want to find | Service | What it looks at |
|---|---|---|
| Sensitive data (such as personal information) | Amazon Macie | Files inside S3 buckets |
| Suspicious activity (threats) | Amazon GuardDuty | CloudTrail management events, VPC Flow Logs, DNS logs |
| Software weaknesses (vulnerabilities) | Amazon Inspector | EC2, container images, Lambda |
| Investigating the cause of findings | Amazon Detective | CloudTrail, VPC Flow Logs, GuardDuty findings |
Key points
- Finding personal information (sensitive data) in S3 = Amazon Macie
- Automated sensitive data discovery evaluates buckets every day and inspects the contents of files
- Threats = GuardDuty, vulnerabilities = Inspector, investigating causes = Detective
The course article explains in detail the roles of Macie, GuardDuty, Inspector, and Detective and when to use which.
- Lecture 10, Part 8: Detection and investigation services
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)
- Question 24: Continuous vulnerability scanning (Amazon Inspector)
- Question 25: Discovering sensitive data in S3 (Amazon Macie) (this article)
- 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.


コメント