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

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)

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)

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)

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 know | What is recorded | Service |
|---|---|---|
| Who performed an operation, when, and from where | API calls (operations) | AWS CloudTrail |
| How a configuration changed | Resource configuration (before and after) | AWS Config |
| What traffic there was | Traffic going in and out of a network interface | VPC Flow Logs |
| Monitoring numbers and logs | Numbers such as CPU utilization, and logs | Amazon 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):
- 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)
- 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) (this article)
- 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.


コメント