Training / Certifications / AWS Cloud Practitioner / Detect: GuardDuty, Inspector, Macie and More

AWS Cloud Practitioner (CLF-C02) · Lesson 14 of 26

Detect: GuardDuty, Inspector, Macie and More

Identify the AWS services that detect threats (Amazon GuardDuty), vulnerabilities (Amazon Inspector) and sensitive data (Amazon Macie), and describe how AWS Security Hub, Amazon Detective and AWS Trusted Advisor help collect findings, investigate them and check accounts against best practices.

Domain 2: Security and Compliance (30%)Task 2.2, 2.4About 5:30CaptionsStatic view for reduced motion
Lesson 14: Detect: GuardDuty, Inspector, Macie and More Illustrative example: names and values are samples 1. Detect problemsThreats: Amazon GuardDutyVulnerabilities: Amazon InspectorSensitive data: Amazon Macie2. Collect and investigateOne view: AWS Security HubRoot cause: Amazon DetectiveChecks: AWS Trusted AdvisorDomain 2, Tasks 2.2 and 2.4: securing resources, finding issuesGuardDutysuspicious activityInspectorvulnerabilitiesMaciesensitive data in S3AWS Security Hubone prioritized viewAmazon Detectivewhy did it happen?Sensors raise findings; Security Hub gathers them; Detective digs inCloudTrail eventsVPC Flow LogsDNS logsAmazon GuardDutythreat intelligence+ machine learningFindingsStolen credentials in useCrypto-mining on EC2Calls to malicious IPsMalware in workloadsOn in one step: no agents needed for the core log sourcesFindings go to the console and Amazon EventBridgeGuardDuty = suspicious activity in your accounts and workloadsEC2 instancesECR container imagesLambda functionsAmazon Inspectorscans continuouslyrescans on changeFindingPackage with a knownvulnerability (CVE)Port open to the internetRisk score + fixInspector = known software vulnerabilities andunintended network exposure in your workloadsS3 bucketorders.csvexport-2026.jsonlogo.pngAmazon Maciemachine learning+ pattern matchingSensitive data foundorders.csv: credit card numbersexport-2026.json: names, addressesPublic access block offMacie = discovers sensitive data such as PII in Amazon S3and flags bucket changes that weaken securityQuestion it answersLooks atAmazon GuardDutyIs someone attacking us right now?Logs and activityAmazon InspectorAre our workloads vulnerable?EC2, ECR images, LambdaAmazon MacieWhere is our sensitive data?Objects in Amazon S3Threats: GuardDuty. Weaknesses: Inspector.Sensitive data: MacieGuardDutyInspectorMaciePartner toolsAWS Security Hubcollects and correlatesfindings across accountsand RegionsPosture checksSecurity Hub CSPMcompares settings tostandards such asAWS FoundationalSecurity Best Practices,CIS and PCI DSSSecurity Hub = one place to see and prioritize findings,and check against best-practice standardsA GuardDuty findingUnusual API callsfrom role StoreAppat 03:12IP addressRoleEC2 instanceAPI callsAccountbehavior graphDetective builds a behavior graph from CloudTrail, VPC Flow Logsand GuardDuty findings to show the root causeCost optimizationPerformanceSecurityFault toleranceService limitsOperational excellenceSecurity checks, for example:MFA on the root user?Security group ports open to all?S3 bucket permissions too open?Which checks you getBasic, Developer: core security+ service limits checksBusiness Support+ and up: allTrusted Advisor = best-practice recommendations,not a threat detectorIf the question says……think“Detect compromised credentials or crypto-mining”Amazon GuardDuty“Scan EC2 or container images for CVEs”Amazon Inspector“Find PII or card numbers in S3 buckets”Amazon Macie“One dashboard for all security findings”AWS Security Hub“Investigate the root cause of a finding”Amazon Detective“Check MFA on root, open ports, idle resources”AWS Trusted Advisor“Block the attack, not just detect it”WAF, Shield, firewallsDetectGuardDuty: threats in logsand activityInspector: vulnerabilities inEC2, ECR images and LambdaMacie: sensitive data in S3Collect and investigateSecurity Hub: one view offindings + posture checksDetective: root causeTrusted Advisor: best-practicechecks in six categoriesSensors find it, Security Hub shows it,Detective explains it

Tip: turn your phone sideways or use full screen for larger labels.

Captions match the narration word for word. Press Space to play or pause and the arrow keys to change scenes.

Learning objective

Identify the AWS services that detect threats (Amazon GuardDuty), vulnerabilities (Amazon Inspector) and sensitive data (Amazon Macie), and describe how AWS Security Hub, Amazon Detective and AWS Trusted Advisor help collect findings, investigate them and check accounts against best practices.

Exam mapping

Domain 2: Security and Compliance (30%). Task statement 2.2, 2.4 in the official exam guide.

Key takeaways

  • Amazon GuardDuty is a threat detection service: it analyzes CloudTrail management events, VPC Flow Logs and DNS logs (and more with protection plans) using threat intelligence and machine learning, and reports findings such as compromised credentials or crypto-mining.
  • Amazon Inspector is automated vulnerability management: it discovers and continuously scans EC2 instances, container images in Amazon ECR and Lambda functions for known software vulnerabilities (CVEs) and unintended network exposure.
  • Amazon Macie uses machine learning and pattern matching to discover sensitive data (PII, financial data, credentials) in Amazon S3, and flags bucket setting changes that reduce security, such as disabling S3 Block Public Access.
  • AWS Security Hub collects and correlates findings from GuardDuty, Inspector, Macie and partner tools across accounts and Regions; Security Hub CSPM checks settings against standards such as AWS Foundational Security Best Practices, CIS and PCI DSS.
  • Amazon Detective builds a behavior graph from CloudTrail, VPC Flow Logs and GuardDuty findings to investigate the root cause of a finding.
  • AWS Trusted Advisor gives best-practice recommendations in six categories (cost optimization, performance, security, fault tolerance, service limits, operational excellence); all accounts get core security and service limit checks, Business Support+ and higher get all checks.

Exam tips

How the exam asks about this

Questions describe a situation and expect you to recognize the concept behind it.

If the question mentions…Think
Intelligent threat detection using CloudTrail, VPC Flow Logs and DNS logsAmazon GuardDuty
Automated scanning of EC2 instances, container images or Lambda functions for software vulnerabilitiesAmazon Inspector
Discover and protect personally identifiable information stored in Amazon S3Amazon Macie
Central view of security findings and compliance checks across accountsAWS Security Hub
Analyze and visualize security data to find the root cause of suspicious activityAmazon Detective
Recommendations on security groups, root MFA, cost and service limitsAWS Trusted Advisor

Common traps

  • Inspector vs. GuardDuty: Inspector finds vulnerabilities in your software (weaknesses that could be exploited); GuardDuty finds suspicious activity (someone may be exploiting something now).
  • Macie is about sensitive data in Amazon S3, not about threats to EC2 instances or vulnerabilities. 'PII in S3 buckets' means Macie.
  • Security Hub collects and prioritizes findings; it doesn't replace GuardDuty, Inspector or Macie, which generate many of those findings. Detective investigates findings after the fact.
  • Detection services report problems; they don't block traffic. Questions about stopping SQL injection or DDoS point to AWS WAF or AWS Shield.

Practice

Exam-style questions

Answer each one before you open the explanation.

Question 1. A security team wants to be alerted if an EC2 instance starts communicating with IP addresses known to be used for crypto-mining. Which AWS service provides this detection?

  1. Amazon Inspector
  2. Amazon Macie
  3. Amazon GuardDuty
  4. AWS Trusted Advisor
Show answer

C. Amazon GuardDuty. GuardDuty analyzes VPC Flow Logs, DNS logs and CloudTrail events with threat intelligence and machine learning, and reports findings such as crypto-mining or communication with malicious IP addresses. Inspector is tempting because it also produces EC2 findings, but it looks for software vulnerabilities and network exposure, not active malicious behavior. Macie looks for sensitive data in S3, and Trusted Advisor gives best-practice recommendations.

Question 2. A company must automatically scan its container images in Amazon ECR and its AWS Lambda functions for known software vulnerabilities. Which service should it use?

  1. Amazon Inspector
  2. Amazon GuardDuty
  3. Amazon Detective
  4. AWS Shield Advanced
Show answer

A. Amazon Inspector. Amazon Inspector discovers and continuously scans EC2 instances, ECR container images and Lambda functions for known vulnerabilities (CVEs) and unintended network exposure. GuardDuty is tempting because it also monitors workloads, but it detects suspicious activity rather than vulnerable software packages. Detective investigates findings, and Shield Advanced protects against DDoS.

Question 3. A retailer is concerned that files containing customer names and credit card numbers may have been uploaded to its Amazon S3 buckets. Which service can discover this data?

  1. AWS Security Hub
  2. Amazon Inspector
  3. AWS Firewall Manager
  4. Amazon Macie
  5. AWS Config
Show answer

D. Amazon Macie. Amazon Macie uses machine learning and pattern matching to discover sensitive data such as PII and financial information in S3 objects. Security Hub is tempting because it can show Macie's findings, but it doesn't scan object contents itself. Inspector scans workloads for vulnerabilities, Firewall Manager manages firewall rules, and Config records resource configurations.

Question 4. Which services help a company find security issues or recommendations in its AWS environment? (Select TWO.)

  1. AWS Trusted Advisor
  2. AWS Shield Standard
  3. AWS Security Hub
  4. AWS Certificate Manager
  5. AWS WAF
Show answer

A. AWS Trusted Advisor and C. AWS Security Hub. Trusted Advisor checks accounts against best practices, including security checks such as root MFA and open security group ports, and Security Hub collects findings and checks settings against security standards. Shield Standard and WAF are tempting because they're security services, but they block attacks rather than identify issues for you to fix. ACM manages TLS certificates.

Question 5. GuardDuty reports unusual API calls from an IAM role. A security analyst wants to see which IP addresses and resources were involved over time to find the root cause. Which service is designed for this investigation?

  1. AWS Trusted Advisor
  2. Amazon Detective
  3. Amazon Macie
  4. AWS Firewall Manager
Show answer

B. Amazon Detective. Amazon Detective uses CloudTrail logs, VPC Flow Logs and GuardDuty findings to build a behavior graph that shows how roles, IP addresses and resources interacted over time, so analysts can find the root cause. Trusted Advisor is tempting because it reports security issues, but it gives best-practice recommendations rather than investigating specific activity. Macie discovers sensitive data, and Firewall Manager manages rules.

Transcript

Lesson transcript

The full narration, scene by scene. The captions file contains the same text with timings.

Scene 1 · 0:00

Lesson 14: Detect threats. Welcome back to Domain 2. Last time we built walls around the store with Shield, WAF and firewalls. But no wall is perfect, so today we add alarms. First, three detection services: Amazon GuardDuty for threats, Amazon Inspector for vulnerabilities, and Amazon Macie for sensitive data. Second, how findings are collected and investigated, with AWS Security Hub and Amazon Detective, plus the security checks in AWS Trusted Advisor.

Scene 2 · 0:30

The security control room. Picture a control room. Three sensors watch different things: GuardDuty watches activity, Inspector watches software, and Macie watches data. Each one reports problems as findings. Security Hub is the big screen on the wall, where all findings land in one prioritized view. And when a finding needs a closer look, Detective is the magnifying glass that shows what really happened. Let's meet each one.

Scene 3 · 0:58

Amazon GuardDuty. Amazon GuardDuty is a threat detection service. Once you turn it on, it analyzes CloudTrail management events, VPC Flow Logs and DNS logs, with no agents to install for those sources. It uses threat intelligence, such as lists of malicious IP addresses, and machine learning to spot trouble: stolen credentials in use, crypto-mining on an EC2 instance, or a server talking to a known bad address. Findings also go to Amazon EventBridge for automated responses.

Scene 4 · 1:30

Amazon Inspector. Amazon Inspector looks for weaknesses before anyone uses them. It automatically discovers EC2 instances, container images in Amazon ECR, and Lambda functions, and scans them for known software vulnerabilities, called CVEs, and for unintended network exposure, like a port open to the internet. It rescans when something changes, such as a new package or a newly published CVE. Each finding includes a risk score and how to fix it.

Scene 5 · 2:00

Amazon Macie. Amazon Macie protects sensitive data in Amazon S3. It uses machine learning and pattern matching to find personally identifiable information, financial data such as card numbers, and credentials inside your objects. Say a developer exports orders to a CSV file in a bucket: Macie reports that the file holds card numbers. Macie also monitors your buckets' security, and flags changes that weaken it, such as turning off the block on public access.

Scene 6 · 2:32

Three sensors, three questions. The exam loves to mix these three up, so tie each one to a question. GuardDuty answers: is someone attacking us right now? It reads logs and activity. Inspector answers: are our workloads vulnerable? It scans EC2 instances, container images and Lambda functions. Macie answers: where is our sensitive data? It examines objects in S3. Threats, weaknesses, sensitive data: GuardDuty, Inspector, Macie.

Scene 7 · 2:59

AWS Security Hub. With several sensors, findings pile up in different consoles. AWS Security Hub brings them together. It collects findings from GuardDuty, Inspector, Macie and partner tools across your accounts and Regions, and correlates them, so a public resource with a critical vulnerability rises to the top. Its posture checks, now called Security Hub CSPM, compare your settings with standards such as AWS Foundational Security Best Practices, CIS and PCI DSS.

Scene 8 · 3:29

Amazon Detective. A finding says something is wrong, but not why. Amazon Detective helps you investigate. It automatically pulls in CloudTrail logs, VPC Flow Logs and GuardDuty findings, and uses machine learning to build a behavior graph: which role made the calls, from which IP address, touching which instances, and when. You can see whether the activity is unusual for that role, and trace the root cause without writing your own queries.

Scene 9 · 3:59

AWS Trusted Advisor. AWS Trusted Advisor isn't a threat detector; it's an automated advisor. It checks your account against best practices in six categories: cost optimization, performance, security, fault tolerance, service limits and operational excellence. Security checks include MFA on the root user, security group ports open to everyone, and S3 bucket permissions. Every account gets the core security and service limit checks; Business Support plus and higher plans get the full set.

Scene 10 · 4:30

How the exam asks about this. Here's how the exam asks about this. Detect compromised credentials or crypto-mining: GuardDuty. Scan EC2 instances or container images for vulnerabilities: Inspector. Find personal data or card numbers in S3: Macie. One dashboard for all security findings: Security Hub. Investigate the root cause of a finding: Detective. Check MFA on the root user or open ports: Trusted Advisor. And if a question asks to block an attack, think WAF, Shield or firewalls, not detection.

Scene 11 · 5:02

Recap: detect threats. To recap: GuardDuty detects threats from logs and activity, Inspector finds vulnerabilities in EC2, container images and Lambda, and Macie discovers sensitive data in S3. Security Hub gathers their findings in one place and checks your posture against standards, Detective investigates the root cause, and Trusted Advisor recommends best practices. Next, we'll see who did what and prove compliance, with CloudTrail, Config and AWS Artifact.

Download captions (WebVTT)

Sources and accuracy

Checked against AWS documentation and the official CLF-C02 exam guide on October 18, 2026. AWS changes often, so confirm details in the current documentation. Diagrams and numbers in the animation are illustrative.

This free course is independent and isn't affiliated with or endorsed by Amazon Web Services. AWS and AWS Certified Cloud Practitioner are trademarks of Amazon.com, Inc. or its affiliates.

Preparing a team for AWS certification?

I run hands-on AWS training for teams, from Cloud Practitioner basics to architecture, built around your own environment.