Interview AWS

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.

Preparing for an interview?

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

← All AWS questions