Service comparisons / AWS CloudTrail vs Amazon CloudWatch vs AWS Config

CloudTrail vs CloudWatch vs AWS Config

CloudTrail records who called which AWS API, CloudWatch watches performance through metrics, logs and alarms, and AWS Config tracks how resources are configured and whether they comply with rules. Which service answers which question.

Last checked against AWS documentation · How we write our content

QuestionAWS CloudTrailAmazon CloudWatchAWS Config
AnswersWho did what, when, and from where?How is it performing, and is anything wrong right now?What did this resource look like, and does it follow our rules?
RecordsAPI calls and console sign-ins (management events; data events if you turn them on)Metrics, logs, traces and alarmsConfiguration changes, kept as a timeline per resource
Keeps data90 days in Event history; longer in a trail to S3 or CloudTrail LakeMetrics up to 15 months; logs as long as you setAs long as you set, in its S3 bucket
Acts on itThrough EventBridge rules on API eventsAlarms trigger SNS, Auto Scaling or EC2 actionsRules flag noncompliance and can run remediation
Example questionWho deleted the S3 bucket?Alert when CPU is above 80% for 10 minutesWas this security group open to the internet last Tuesday?

All three are about seeing what happens in an AWS account, so they often appear together as answer options. Each answers a different question: who, how is it running, and what is it configured as.

How to choose

Exam traps