DOP-C02 Monitoring and Logging Practice Question
An organization wants to ensure that all API calls made in their AWS account are logged for security analysis. Which AWS service should be enabled to meet this requirement?
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
AWS CloudTrail
(AWS CloudTrail) is correct because it records all API calls made in the AWS account, providing a log of actions for security analysis. Option B (AWS Config) is incorrect because it tracks resource configuration changes, not API calls. Option C (Amazon CloudWatch Logs) is incorrect because it stores logs from various sources but does not natively capture API calls; CloudTrail is the service designed for that purpose. Option D (VPC Flow Logs) is incorrect because it captures IP traffic information for network interfaces, not API calls.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
AWS CloudTrail
Why this is correct
CloudTrail records API activity for governance and audit.
- ✗
AWS Config
Why it's wrong here
AWS Config records resource configuration changes and evaluates compliance against rules, but it does not capture API call logs; it lacks the ability to record data-plane or management-plane API events. This option is tempting because Config can track who made a change via the configuration timeline, leading one to assume it logs all API calls. It would be correct if the requirement were to audit resource configuration drift over time, not to log every API invocation.
- ✗
Amazon CloudWatch Logs
Why it's wrong here
CloudWatch Logs stores application and system logs, not API calls.
- ✗
VPC Flow Logs
Why it's wrong here
VPC Flow Logs capture IP traffic, not API calls.
Go deeper
Related to this question
About these practice questions
One of 1,013 original DOP-C02 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This DOP-C02 practice question is part of Courseiva's free Amazon Web Services certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the DOP-C02 exam.