AWS Cloud Practitioner — Lab 07 of 08

Lab 07 — CloudWatch Monitoring & Alerts

Build CloudWatch dashboards, create metric and billing alarms, and explore log groups.

Beginner+~$0 Free Tier1–2 Hours

Lab Overview

Amazon CloudWatch is AWS's unified observability service. Build a dashboard, create metric alarms with SNS email notifications, explore log groups from Lambda, and set up a billing alarm.

ServicePurposeFree Tier
Amazon CloudWatchDashboards, metrics, alarms, and log management10 custom metrics + 10 alarms free
Amazon SNSSends email/SMS when alarms trigger1M notifications/mo free
AWS BillingCost and usage metrics for billing alarmsAlways free

Step-by-Step Instructions

1
Amazon CloudWatch
Create a Dashboard
  1. Search for CloudWatch and click it
  2. Left sidebar: Dashboards → Create dashboard
  3. Name: MyLabDashboard → Create dashboard
  4. Add widget → Line → Metrics → select a service → pick a metric → Create widget
  5. Click Save dashboard
2
Amazon SNS
Create a Notification Topic
  1. Search for SNS and click it
  2. Topics → Create topic → Type: Standard → Name: CloudWatch-Alerts → Create topic
  3. Create subscription → Protocol: Email → enter your email → Create subscription
  4. Click the confirmation link in your inbox
3
Amazon CloudWatch
Create a CPU Alarm
  1. CloudWatch → Alarms → Create alarm → Select metric
  2. EC2 → Per-Instance Metrics → CPUUtilization → Select metric
  3. Condition: Greater than → value: 80
  4. Notification: In alarm → select CloudWatch-Alerts topic
  5. Alarm name: High-CPU-Alarm → Create alarm
4
AWS Billing
Create a Billing Alarm
WARNING: Enable billing alerts first: AWS Console → account name → Billing and Cost Management → Billing preferences → enable CloudWatch billing alerts
  1. CloudWatch → Alarms → Create alarm → Select metric → Billing → Total Estimated Charge
  2. Select EstimatedCharges (USD) → Select metric
  3. Condition: Greater than → value: 10
  4. Notification: select CloudWatch-Alerts
  5. Alarm name: Monthly-Billing-Alarm → Create alarm
TIP: Set the threshold to $1 or $5 while learning to get early warning.
5
Amazon CloudWatch
Explore Log Groups
  1. CloudWatch → Log groups
  2. Find /aws/lambda/ContactFormHandler (if you completed Lab 03)
  3. Click a log stream to see every Lambda execution with timestamps
  4. Each START, END, and REPORT line shows duration and memory usage

Verification Checklist

What You Learned

Lab Cleanup

IMPORTANT: Delete these resources when finished.
#ResourceHow to Delete
1CloudWatch AlarmsCloudWatch → Alarms → select both → Delete
2CloudWatch DashboardCloudWatch → Dashboards → MyLabDashboard → Delete
3SNS SubscriptionSNS → Subscriptions → select → Delete
4SNS TopicSNS → Topics → CloudWatch-Alerts → Delete
NOTE: Keep the billing alarm if you want ongoing cost protection — it costs nothing.