AWS CLF-C02 — CloudWatch, CloudTrail, X-Ray, Health Dashboard, CodeGuru, Trusted Advisor
CloudWatch provides metrics for every AWS service. A metric is a variable to monitor (e.g., CPUUtilization, NetworkIn).
| Monitoring Type | Interval | Cost |
|---|---|---|
| Basic Monitoring | Every 5 minutes | Free |
| Detailed Monitoring | Every 1 minute | Additional cost |
PutMetricData APIEC2 default monitoring = 5 min. Detailed = 1 min (costs more). RAM is NOT a default metric — it must be a custom metric. This is a very common exam question!
Trigger notifications and automated actions based on metric thresholds.
| Action Type | Examples |
|---|---|
| Auto Scaling | Increase or decrease EC2 instances in an ASG |
| EC2 Actions | Stop, terminate, reboot, or recover an EC2 instance |
| SNS Notifications | Send notifications (email, SMS, Lambda trigger, etc.) |
us-east-1)CloudWatch Alarms can trigger 3 types of actions: Auto Scaling, EC2 instance actions, and SNS notifications. Billing alarms help you avoid surprise AWS charges.
Centralized logging service for collecting, monitoring, and analyzing log files from AWS services and applications.
CloudWatch Logs = centralized log collection. The CloudWatch Agent must be installed on EC2 instances to push logs. Logs Insights lets you query logs with SQL-like syntax.
EventBridge is the successor to CloudWatch Events. A serverless event bus for building event-driven applications.
EventBridge = react to AWS events + schedule cron jobs + integrate with SaaS partners. It's the recommended way to build event-driven architectures on AWS (replacing CloudWatch Events).
Provides governance, compliance, and audit for your AWS account. Records every API call made in your account.
| Event Type | Description | Examples |
|---|---|---|
| Management Events | Operations on AWS resources (control plane) | Configuring security (IAM), setting up logging (CloudTrail), creating subnets (VPC). Logged by default. |
| Data Events | Operations on data within resources (data plane) | S3 object-level activity (GetObject, PutObject), Lambda function executions. NOT logged by default (high volume). |
| Insights Events | Detect unusual activity automatically | Bursts of IAM actions, gaps in periodic maintenance, spikes in provisioning. Uses ML to detect anomalies. |
CloudTrail = "Who did what?" Audit trail of API calls. If someone deleted a resource and you need to find out who — check CloudTrail. Enabled by default. Data events cost extra and are not enabled by default.
Distributed tracing service for analyzing and debugging distributed applications (e.g., microservices).
X-Ray = distributed tracing, visual service map, debug microservices. If the question mentions "trace requests across services" or "debug a distributed application," think X-Ray.
health.aws.amazon.com/health/statusService Health = all AWS services, all regions (general). Your Account Health = only YOUR resources, personalized alerts. If the exam says "be notified when an AWS service impacts my resources," think Personal Health Dashboard.
ML-powered service for automated code reviews and application performance recommendations.
CodeGuru Reviewer = automated code reviews (find bugs). CodeGuru Profiler = runtime performance optimization (find expensive code). Both use ML.
An online tool that provides real-time recommendations to help you follow AWS best practices. It inspects your AWS environment at the account level.
| Pillar | What It Checks | Examples |
|---|---|---|
| Cost Optimization | Identify ways to reduce cost | Idle load balancers, unassociated Elastic IPs, low-utilization EC2 instances, Reserved Instance optimization |
| Performance | Improve application performance | High-utilization EC2 instances, CloudFront CDN optimization, overprovisioned EBS |
| Security | Improve security posture | MFA on Root Account, IAM password policy, S3 bucket permissions, security groups with unrestricted access (0.0.0.0/0) |
| Fault Tolerance | Increase availability and redundancy | EBS snapshots, RDS Multi-AZ, Auto Scaling Groups across AZs |
| Service Limits | Check if you're approaching service quotas | VPC, IAM, EBS, RDS limits (warns at 80% of limit) |
| Support Plan | Available Checks |
|---|---|
| Basic & Developer | 7 core checks only: • S3 Bucket Permissions • Security Groups — Specific Ports Unrestricted • IAM Use (at least one IAM user created) • MFA on Root Account • EBS Public Snapshots • RDS Public Snapshots • Service Limits |
| Business & Enterprise | Full set of checks across all 5 pillars + AWS Support API access + ability to enable weekly notifications |
Trusted Advisor = account-level best practice checks (5 pillars). Basic/Developer support = only 7 core checks. Business/Enterprise = ALL checks. If the exam asks "check if MFA is enabled on root" or "identify underutilized resources," think Trusted Advisor.
| Service | Purpose | Think Of It As |
|---|---|---|
| CloudWatch Metrics | Monitor AWS resource metrics | "How is my resource performing?" |
| CloudWatch Alarms | Trigger actions on metric thresholds | "Alert me when CPU > 90%" |
| CloudWatch Logs | Centralized log collection | "What did my application log?" |
| EventBridge | React to events, schedule cron jobs | "When X happens, do Y" |
| CloudTrail | Audit API calls | "Who did what and when?" |
| X-Ray | Distributed tracing | "Where is the bottleneck in my microservices?" |
| Health Dashboard | AWS service status & personal alerts | "Is AWS broken? Does it affect me?" |
| CodeGuru | ML code reviews & performance | "Is my code efficient and bug-free?" |
| Trusted Advisor | Best practice recommendations | "Am I following AWS best practices?" |