SRE & Observability (50 Qs)•Part 1: Basic & Foundational Concepts (Junior / Entry-Level)
What are the Three Pillars of Observability (Metrics, Logs, Traces)?
junior LevelCode Examplesre-observabilityBasic
In Simple Words:
- Metrics: Numeric, aggregated, time-series data measured over intervals (e.g. CPU usage, request rate). Cheap to store, fast to query, ideal for alerting dashboards.
- Logs: Timestamped, discrete event records (often structured JSON). Rich in contextual detail, but expensive to store and search at high scale.
- Distributed Tracing: Records the end-to-end journey of a single request across multiple microservices via a unique
trace_id. Identifies the exact microservice causing latency.
text
The 3 Pillars of Observability:
┌──────────────┬────────────────────────────┬─────────────────────────────┐
│ Pillar │ Format │ Primary Value │
├──────────────┼────────────────────────────┼─────────────────────────────┤
│ Metrics │ Numeric Time-Series │ Alerting & Trend Dashboards │
│ Logs │ Structured JSON Text │ Root-Cause Deep Debugging │
│ Traces │ Spans with Call Hierarchy │ Cross-Service Bottlenecks │
└──────────────┴────────────────────────────┴─────────────────────────────┘