“The service that finds vulnerabilities, the one that fixes them, and the one that finds suspicious activity all look like ‘security,’ and I can’t choose.”
“AWS Config also looks at the state of EC2, so I assume it can tell me about vulnerabilities too.”
AWS Certified Cloud Practitioner (exam code CLF-C02, CLF below) asks you to tell apart, by role, the service that scans software for vulnerabilities, the service that fixes the vulnerabilities found, and the services that deal with threats or configuration. The words “vulnerability,” “scan,” and “continuous” in the question are your cue.
This article is Question 24 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 uses applications running on Amazon EC2 instances, as well as container images stored in Amazon ECR and AWS Lambda functions. It wants to know right away if the software in any of them contains a known vulnerability (CVE). It also needs a mechanism that automatically rescans when a new vulnerability is published. Which AWS service should it use?
- A. Amazon GuardDuty
- B. Amazon Inspector
- C. AWS Config
- D. AWS Systems Manager Patch Manager
Once you have chosen your answer, open the section below.
Show the answer (click to open)
Answer: B
Amazon Inspector automatically discovers EC2 instances, container images in ECR, and Lambda functions, and continuously scans them for software vulnerabilities (CVEs). It also rescans automatically when a new vulnerability is published.
The answer is B
The correct answer is B, Amazon Inspector.
- It continuously scans EC2, ECR container images, and Lambda functions for software vulnerabilities
- It also rescans automatically when a new vulnerability is published
Let’s look at the options one at a time.
Explanation of each option
A: GuardDuty detects threats (incorrect)

Amazon GuardDuty is a service that detects suspicious activity inside the account, that is, threats. As shown on the left of the diagram, it analyzes CloudTrail events, VPC Flow Logs, and DNS logs. For example, it reports suspicious traffic and unusual API calls as findings.
It does not scan for software vulnerabilities.
B: Inspector scans continuously (correct)

Amazon Inspector is a vulnerability management service. It automatically discovers the EC2 instances, ECR container images, and Lambda functions on the left of the diagram, and scans them continuously.
What it finds are known software vulnerabilities, called CVEs, and unintended network exposure. As shown at the bottom of the diagram, it rescans automatically when a new vulnerability is published or when a package changes.
C: Config records and evaluates configuration (incorrect)

AWS Config is a service that records the configuration of resources and its changes. It also evaluates whether the recorded configuration follows rules, for example a rule such as “is any S3 bucket made public?”
What it looks at is only configuration. It does not check for vulnerabilities in the software running inside.
D: Patch Manager is the fixing side (incorrect)

Patch Manager is a feature of Systems Manager that automates applying patches to managed nodes such as EC2 instances. It does not scan ECR container images or Lambda functions for vulnerabilities.
As shown at the bottom of the diagram, remember it this way: Inspector finds vulnerabilities, and Patch Manager fixes them by applying patches.
The roles of the four services

Let’s sort the roles of the four services into four words: find, fix, threats, and configuration. Inspector finds vulnerabilities, and Patch Manager fixes them by applying patches. GuardDuty detects threats inside the account, and Config records resource configuration and evaluates it against rules.
If the question contains the words vulnerability or scan, think of Inspector.
Key points
- Vulnerability scanning = Amazon Inspector (EC2, ECR container images, Lambda functions)
- It rescans automatically when a new CVE is published
- Fixing the vulnerabilities found is done by something else, such as Patch Manager
- GuardDuty is for threats, and Config is for configuration
The course articles explain in detail what Inspector covers and when to use it versus GuardDuty, Macie, and others. Patch Manager, which applies patches, is covered in the article on operations management tools.
- Lecture 10, Part 8: Detection and investigation services
- Lecture 9, Part 5: Operations management tools
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) (this article)
- 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.


コメント