What is the difference between black-box and white-box monitoring? [Intermediate]
Answer
Black-box monitoring tests behavior from the outside, like a user or dependency would see it. White-box monitoring uses internal metrics from the system itself. Both are needed: black-box confirms external experience; white-box explains internal causes.
Technical explanation
Black-box checks catch DNS, TLS, routing, load balancer, and end-to-end failures that internal metrics may miss.
White-box metrics show service internals, resource saturation, dependency errors, and code-level behavior.
For paging, black-box or SLO symptom checks are often stronger than infrastructure-only white-box alerts.
Hands-on example
Example: use blackbox_exporter to probe https://app.example.com/health from multiple regions. Use white-box Prometheus metrics to monitor checkout request duration, dependency error rate, and queue depth. If black-box fails but service metrics look fine, check DNS, ingress, CDN, and TLS.
Check how well your resume matches the role with our free resume checker— match score, ATS check, and the skills you're missing.
More Observability interview questions
- What is the Prometheus Operator, and what are ServiceMonitor and PodMonitor? [Intermediate]
- How does Prometheus integrate with Kubernetes service discovery? [Intermediate]
- What is the Splunk data pipeline (input, parsing, indexing, search)? [Intermediate]
- What is the difference between Thanos and Cortex/Mimir at a high level? [Intermediate]
- What is the difference between a Splunk forwarder, indexer, and search head? [Intermediate]
- How does Prometheus storage (TSDB) work, and what is the retention model? [Intermediate]
- What is the difference between a universal and a heavy forwarder? [Intermediate]
- How does Prometheus handle high cardinality, and why is it a problem? [Intermediate]