[CLF-C02 Practice Questions Q24] Continuous Vulnerability Scanning (Amazon Inspector)

CLF-C02 Practice Questions Q24 Continuous Vulnerability Scanning (Amazon Inspector) Certification

“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)

On the left, "Logs to analyze" lists CloudTrail events, VPC Flow Logs, and DNS logs, with arrows converging on Amazon GuardDuty. To its right, the findings are "Suspicious activity (threats)," for example suspicious traffic and unusual API calls. The box on the far right is "Threat detection": it watches for suspicious activity in the account, and analyzes logs and reports threats as findings. At the end, a cross mark on "Does not scan for software vulnerabilities"

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)

On the left, "Discovered automatically" lists EC2 instances, ECR container images, and Lambda functions, with arrows converging on Amazon Inspector (scans continuously). The findings on the right are software vulnerabilities (CVEs) and unintended network exposure. The box at the bottom shows the triggers for automatic rescans, a new CVE is published and a package changes, with an arrow leading back to Inspector

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)

On the left, "Looks at: configuration" lists EC2 instances, S3 buckets, and IAM policies, with arrows converging on AWS Config. On the right it splits into "Records" (when and how configurations changed) and "Rule evaluation" (compliant / noncompliant, e.g., is any S3 bucket made public?). The box on the far right is "Record and evaluate": it records resource configurations and their changes, and evaluates whether they follow the rules. At the end, a cross mark on "Does not check software vulnerabilities inside"

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)

In the top row, on the left, Systems Manager Patch Manager applies patches through an arrow to three managed nodes (EC2 instances, etc.). The gray box on the right has cross marks on ECR container images and Lambda functions and says "Not scanned." The bottom row is "Division of roles": from the red box on the left, "Find: Amazon Inspector," an arrow leads to the green box on the right, "Fix: Patch Manager"

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

Four boxes. Top left, red, "Find": Amazon Inspector continuously scans for software vulnerabilities (CVEs). Top right, green, "Fix": Systems Manager Patch Manager applies patches to managed nodes. Bottom left, orange, "Threats": Amazon GuardDuty detects suspicious activity in the account. Bottom right, blue, "Configuration": AWS Config records resource configuration and evaluates it against rules

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):

This series is the English edition of 【CLF-C02 試験対策問題】, originally written in Japanese.

コメント

Copied title and URL