All jobs / DevOps / SRE / cloud / Observability
DevOps / SRE / cloud interview question · 3–5 years
After a deploy, the Grafana dashboards time out and Prometheus runs out of memory. A developer added `user_id` as a label on the request counter.
What happened, and what is the rule?
The strongest answer
Every distinct label value is its own time series, so a user id made one series per user; labels are for bounded dimensions — route, status, region — and ids belong in logs and traces, linked by exemplars
Why it works
Right — cardinality is the cost model of a time-series database. Bounded labels, unbounded ids elsewhere.
What a good answer covers
- Each label value is a series.
- Labels: bounded dimensions only.
- Ids go to logs and traces.
- Watch series count after deploys.
Answers that fall short
- Close, but not the strongest: Prometheus needs more memory; scale the server and keep the label because it is useful
Memory buys hours; cardinality grows with users, and you are paying per series to answer a question metrics should not answer. - Weak: Grafana is slow because too many people opened the dashboard at once
The dashboards time out because each query fans out over millions of series, not because of viewers. - Red flag: Drop metrics for that service entirely until someone has time to look
Going blind on a production service to avoid a one-line fix worries any interviewer.
Who gets asked this
More Observability questions
- What must a new service get on day one from the platform?
- The server pings. Users still cannot log in. What was missing?
- When do you use a metric instead of a log line?
- Describe the parts of an ELK or OpenSearch logging stack and what each does.
- What do you mean by observability in this interview?
- On-call cannot find the one failing request in a sea of lines. What do you standardise?
- You page on CPU > 80%. Users are fine. What do you change?
- How does Prometheus collect metrics, and why does a thirty-second batch job show none?