Interview Prep/Real-World Interview/Monitoring, incidents & measuring success

How did you handle logging in your project?

BeginnerBehavioralMonitoring, incidents & measuring success
Answer

Good answer looks like → "Apps logged structured JSON to stdout with a request ID and trace ID in every line. A DaemonSet agent shipped logs to Loki, labelled by namespace, app and pod. We kept 14 days hot and 90 days in S3. Debug logging was off by default and could be enabled per service via a config flag."

Follow-ups to expect → How did you avoid high-cardinality labels in Loki? How did you keep PII out of logs?

Red flags → Logs written to files inside containers.

All Real-World Interview questions Roadmap: Interview readiness

More on Monitoring, incidents & measuring success