Skip to Content

Monitoring & Governance

Monitoring, auditing and compliance on AWS, the difference between CloudWatch, CloudTrail and AWS Config, a load balancer example, and the map of this group.

Three questions, three services

Running workloads on AWS means answering three kinds of question:

  • Monitoring: is it healthy and fast? Is something about to break?
  • Auditing: who did what, and when?
  • Compliance: is every resource configured the way the organization's rules say?

CloudWatch answers how resources are performing, with metrics, logs, alarms, dashboards and events; CloudTrail answers who did what and when, recording every API call in the account; AWS Config answers what changed and whether resources are compliant, with configuration history and rules CloudWatch answers how resources are performing, with metrics, logs, alarms, dashboards and events; CloudTrail answers who did what and when, recording every API call in the account; AWS Config answers what changed and whether resources are compliant, with configuration history and rules

Performance, activity and configuration.
  • CloudWatch:
    • performance monitoring (metrics, CPU, network…) and dashboards;
    • events and alerting;
    • log aggregation and analysis.
  • CloudTrail:
    • records API calls made within the account by everyone;
    • trails can be defined for specific resources;
    • a global service.
  • AWS Config:
    • records configuration changes;
    • evaluates resources against compliance rules;
    • gives a timeline of changes and compliance.

Example: an Elastic Load Balancer

  • CloudWatch:
    • monitor the incoming connections metric;
    • visualize error codes as a percentage over time;
    • build a dashboard of the load balancer's performance.
  • Config:
    • track the security group rules of the load balancer;
    • track its configuration changes;
    • make sure an SSL certificate is always assigned to it (a compliance rule).
  • CloudTrail:
    • track who made changes to the load balancer, with which API calls.

In this group

EventBridge (formerly CloudWatch Events) is in the Application Integration group.

Exam tips

  • "Monitor performance", "metrics", "alarm when CPU is high", "logs" → CloudWatch.
  • "Who deleted the resource?", "audit API calls" → CloudTrail.
  • "Is the resource compliant?", "track configuration changes over time" → AWS Config.

Common traps

  • "CloudTrail shows CPU usage." CloudTrail records API calls; metrics are in CloudWatch.
  • "Config blocks non-compliant changes." Config detects and reports (and can remediate); it doesn't prevent. To prevent, use IAM or SCPs.

AWS documentation

On this page

Open notes

Spotted a mistake?

These notes are open source. Suggest a fix, or star the repo if they helped you.

Suggest an edit

For AI agents: llms.txt · llms-full.txt