Bitzu

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

Single choice

Which service records the API calls made in an AWS account, including who made them?

  1. Amazon CloudWatch
  2. AWS CloudTrail
  3. AWS Config
  4. 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.

Select all that apply

Which tasks can Amazon CloudWatch perform?

  1. Tracking CPU utilization of EC2 instances
  2. Raising an alarm when a metric crosses a threshold
  3. Collecting and searching application log files
  4. Identifying which IAM user deleted a bucket
  5. 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.

True or false

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.

Download on the App StoreGet it on Google Play

More CLF-C02 topics in this module