CLF-C02 ยท Shared responsibility, compliance and governance
CloudWatch, CloudTrail, Config and IAM access reports
Amazon CloudWatch for metrics and alarms, AWS CloudTrail for API activity, AWS Config for resource configuration history and rules, and IAM access reports.
Key points
- Amazon CloudWatch: metrics, logs and alarms ("how is it performing?").
- AWS CloudTrail: records API activity ("who did what, and when?"); event history keeps 90 days of management events free, a trail or event data store keeps longer.
- AWS Config: resource configurations over time, checked against rules ("what did it look like, is it compliant?").
- IAM access reports: credential status, unused permissions.
Source: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/view-cloudtrail-events.html
Practice questions
Which service records the API calls made in an AWS account, including who made them?
- Amazon CloudWatch
- AWS CloudTrail
- AWS Config
- Amazon Inspector
Show answer
Answer: B. AWS CloudTrail
AWS CloudTrail records API activity from the console, CLI and SDKs, including the identity that made each call. CloudWatch focuses on metrics and alarms, Config on resource configuration, and Inspector on vulnerability scanning.
Which tasks can Amazon CloudWatch perform?
- Tracking CPU utilization of EC2 instances
- Raising an alarm when a metric crosses a threshold
- Collecting and searching application log files
- Identifying which IAM user deleted a bucket
- Providing AWS SOC 2 audit reports
Show answer
Answer: A. Tracking CPU utilization of EC2 instances, B. Raising an alarm when a metric crosses a threshold, C. Collecting and searching application log files
CloudWatch collects metrics such as CPU utilization, stores and searches application logs, and triggers alarms when a metric crosses a threshold. Recording who called an API is CloudTrail's job, and compliance reports come from AWS Artifact.
CloudTrail event history keeps every management event in the account indefinitely, so creating a trail is never necessary.
Show answer
Answer: False
False. Event history covers only the past 90 days of management events in a Region. For a longer, ongoing record you create a trail or a CloudTrail Lake event data store.
Practice 8 questions on this topic in Bitzu
Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.
