What is CloudWatch, and what is the difference between metrics, logs, and alarms?
AWS · Intermediate level
Answer
CloudWatch provides metrics, logs, dashboards, and alarms. Metrics are numeric time series, logs are event records, and alarms evaluate metric conditions to trigger notifications or automation.
Technical explanation
Metrics tell you symptoms and trends; logs give context; alarms must be actionable and tied to user impact.
Observability should answer symptoms, cause, scope, and owner: metrics show trends and alerts, logs provide context, traces connect calls, and audit logs attribute changes.
Alert only on actionable conditions such as user impact, fast SLO burn, saturation, unhealthy capacity, or security-sensitive changes.
Centralize retention and access policies so operational debugging and audit investigations are possible without exposing sensitive logs unnecessarily.
Hands-on example
1. Enable the relevant telemetry source: CloudWatch metrics/logs, CloudTrail, Config, ALB logs, VPC Flow Logs, or application structured logs.
2. Create a dashboard and one actionable alarm tied to user impact or security risk.
3. Trigger a controlled change or failure and verify that the signal appears with enough context to identify owner and root cause.
4. Document the query, dashboard link, alarm routing, and runbook action.
Check how well your resume matches the role with our free resume checker— match score, ATS check, and the skills you're missing.
More AWS interview questions
- What is the difference between CloudWatch Logs and CloudTrail?
- How does the AWS VPC CNI assign pod networking on EKS?
- What are managed node groups versus self-managed nodes versus Fargate on EKS?
- What is Amazon EKS, and what does AWS manage versus what you manage?
- What is the difference between a CNAME and an Alias record in Route 53?
- How do you trigger a Lambda function - name several event sources.
- What is ElastiCache, and what is the difference between Redis and Memcached on it?
- Explain DynamoDB partition keys, sort keys, and the importance of access patterns.