4.2.1 Logging vs Monitoring vs Observability

Differences Between Logging, Monitoring, and Observability

LoggingMonitoringObservability
WhatRecord events/actionsTrack metrics over timeUnderstand system state
WhenReactive (after issue)Proactive (detect issues)Both
ToolsCloudWatch LogsCloudWatch Metrics/AlarmsLogs + Metrics + Traces
Question“What happened?”“Is it working?”“Why is this happening?”

Three Pillars of Observability

1. Logs → What happened (detailed events)
2. Metrics → How is it performing (numbers over time)
3. Traces → Where is the bottleneck (request flow)
PillarAWS ServiceMô tả
LogsCloudWatch LogsApplication events, errors
MetricsCloudWatch MetricsLatency, error rate, throughput
TracesX-RayEnd-to-end request path

Exam Tip: Observability = Logs + Metrics + Traces combined. Logging = reactive. Monitoring = proactive. Observability = understand WHY issues happen.