[CLF-C02 Practice Questions Q27] Finding Out Who Made a Change (AWS CloudTrail)

CLF-C02 Practice Questions Q27 Finding Out Who Made a Change (AWS CloudTrail) Certification

“CloudTrail, Config, Flow Logs, and CloudWatch all look like ‘recording’ services, and I can’t tell them apart in a question.”
“I thought that if AWS Config shows that a setting changed, it would also show who changed it.”

AWS Certified Cloud Practitioner (exam code CLF-C02, CLF below) often asks you to tell operations, configuration, traffic, and numbers apart by what a service records. From words in the question such as “who, when, and from where,” you choose which service’s records you need.

This article is Question 27 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

At a company, a rule that allows SSH connections from all IP addresses (0.0.0.0/0) was added to a production security group without anyone noticing. The company wants to find out who made this change, when, and from which IP address. Which AWS service should it use?

  • A. VPC Flow Logs
  • B. Amazon CloudWatch metrics
  • C. AWS Config
  • D. AWS CloudTrail

Once you have chosen your answer, open the section below.

Show the answer (click to open)

Answer: D

AWS CloudTrail is a service that records AWS operations (API calls). For each operation, it keeps a record of who did what, when, and from which IP address.


The answer is D

The correct answer is D.

AWS CloudTrail is a service that records API calls, that is, AWS operations. It shows who did what, when, and from which IP address. Let’s look at the options one at a time.


Explanation of each option

A: Flow Logs record traffic (incorrect)

On the left is VPC Flow Logs (records traffic information). In the middle, what it records is "traffic in and out": inbound and outbound traffic through a network interface, and a table of source, destination, port, and result (port 22 is ACCEPT, port 3389 is REJECT, and so on). On the right, against "Who, When, From which IP address," a cross: "A record of traffic. Does not record the change to the settings"

VPC Flow Logs record information about traffic going in and out of a network interface. As in the middle of the diagram, this includes the source and destination IP addresses, the port, and whether the traffic was allowed.

What it records is traffic. It does not record the operation that changed the security group.

B: Metrics record numbers (incorrect)

On the left are Amazon CloudWatch metrics (records numbers and graphs them). In the middle, what it records is "numbers (metrics)": a line graph of CPU utilization from 10:00 to 12:00, highest at around 11:00. On the right, against "Who, When, From which IP address," a cross: "A record of numbers. Does not show who made the change"

Amazon CloudWatch metrics record numbers, such as CPU utilization, over time. As in the middle of the diagram, you graph them and use them to monitor the state of resources.

Because they are records of numbers, they do not show who performed an operation.

C: Config records configuration changes (incorrect)

On the left is AWS Config (records changes to resource configurations). In the middle, what it records is "configuration changes": before the change, SSH: office IP; after, the office IP plus SSH: 0.0.0.0/0 in red, and "Shows what changed." To find who changed it, combine with CloudTrail records. On the right, a cross: "A record of configuration changes. Who made them is in CloudTrail"

AWS Config records how a resource’s configuration changed, before and after. As in the middle of the diagram, it shows that a rule allowing SSH was added.

However, the record of who called the API is in CloudTrail. To find who made the change, you combine it with CloudTrail records.

D: CloudTrail records operations (correct)

An IAM user, etc. makes an API call that adds SSH: 0.0.0.0/0 to the production security group, and AWS CloudTrail records it. The event (one per action) shows Who: IAM user dev-taro, When: 2026-10-24 23:14, From: source IP address 203.0.113.25, What: AuthorizeSecurityGroupIngress (the API that adds a rule). Below, event history is on without any setup and shows the past 90 days of management events free; to keep records longer than 90 days, create a trail and store it in S3

AWS CloudTrail records API calls made from the console, the CLI, and SDKs. As on the right of the diagram, it keeps who did what, when, and from where for each operation. Here, you look for the record of the operation that added the rule to the security group.

CloudTrail is enabled without any setup. In event history, you can view management events from the past 90 days at no charge. To keep records longer than 90 days, you create a trail and store the records in S3.


Choosing by what is recorded

Here are the four services organized by what they record. On the exam, tell them apart by the words operations, configuration, traffic, and numbers.

What you want to knowWhat is recordedService
Who performed an operation, when, and from whereAPI calls (operations)AWS CloudTrail
How a configuration changedResource configuration (before and after)AWS Config
What traffic there wasTraffic going in and out of a network interfaceVPC Flow Logs
Monitoring numbers and logsNumbers such as CPU utilization, and logsAmazon CloudWatch

Key points

  • Who performed an operation, when, and from where = AWS CloudTrail
  • Enabled without any setup. Event history shows management events from the past 90 days
  • Configuration changes = Config, traffic = VPC Flow Logs, monitoring numbers = CloudWatch

The course articles explain in detail how to keep CloudTrail records and how to choose among CloudTrail, Config, and CloudWatch.

  • Lecture 9, Part 2: AWS CloudTrail
  • Lecture 9, Part 3: AWS Config and telling the three apart, in the “How CloudTrail and Config differ” section

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