Volume 6 · Chapter 12 — Observability and Operations
Volume Summary and Interview Rapid-Fire
12.1 What This Volume Covered
This volume covered seeing into and operating running systems: the observability fundamentals of metrics, logs, and traces; CloudWatch metrics and dashboards; centralized structured logging; alarms and effective alerting; distributed tracing with X-Ray; and the operational practices of SLOs, incident response, runbooks, and blameless postmortems. The unifying themes are that you can’t operate what you can’t see, that the three pillars correlated (by a shared trace/correlation ID) turn “something’s wrong” into root cause quickly, that alerting must be meaningful and actionable to avoid fatigue, and that reliability is a discipline built on measurable objectives and blameless learning. The rest of this chapter consolidates the essentials.
12.2 Rapid-Fire Interview Questions
Name the three pillars of observability and what each answers.
Metrics (numeric over time - “is something wrong?” plus trends and alerts), logs (event detail - “what happened?”), and traces (a request across services - “where did it slow or fail?”). You need all three, correlated, to diagnose quickly.
Monitoring vs observability?
Monitoring watches known indicators with predefined alerts (known failure modes). Observability is richer instrumentation letting you explore and diagnose unanticipated problems. You need both - fast alerts on known issues, depth to investigate the unknown.
Why percentiles over averages for latency?
Averages hide the tail - a 100ms average can conceal 5% of users at 3 seconds. p95/p99 latency shows what your slowest users actually experience, which is usually what matters. Track errors as a rate, not a raw count, too.
Infrastructure vs application metrics?
Infrastructure metrics (CPU, connections, queue depth) show resource health; application/business metrics (payment success rate, TPS) show user-facing health. A service can look fine on infrastructure while failing users - instrument both.
Why structured logging with correlation IDs?
Structured (JSON) logs are queryable by field, unlike free text; correlation IDs let you follow one request across all services’ logs. Centralized, structured, correlated logs turn incident investigation into a precise query instead of a manual hunt.
What causes alert fatigue and how do you prevent it?
Too many noisy, non-actionable alerts, so people ignore them and real issues get missed. Prevent it by alerting only on meaningful, actionable user-facing symptoms, tuning thresholds/durations, consolidating, and pruning alerts nobody acts on.
What should you alert on?
User-facing symptoms that indicate real impact - elevated error rate, high latency percentiles, a drop in a business metric like payment success rate - not every low-level cause like high CPU. Alerts should be urgent and actionable.
What does distributed tracing add over metrics and logs?
It follows one request across all services, pinpointing which service or downstream call was slow or failed - the “where” that metrics and logs can’t localize easily in a distributed system. X-Ray provides traces and a service-dependency map.
What is an error budget?
The allowable unreliability implied by an SLO - if the SLO is 99.9% success, the 0.1% is the budget for failures. Within budget, ship features; burning it, focus on stability. It makes the velocity-vs-reliability trade-off objective.
Why blameless postmortems?
Because when people aren’t blamed they’re honest, surfacing the true systemic causes so you can fix them; a blame culture hides information and lets failures recur. Good postmortems produce action items that continuously improve reliability.
12.3 Closing
Observability and operations are where a system’s real-world reliability is won or lost: the instrumentation to see inside, the alerting to respond, and the operational discipline to learn and improve. These practices tie together everything built in earlier volumes - compute, data, networking - by making it observable and operable, and they set up the next volume, which assembles these pieces into the design of resilient microservices and systems on AWS.