All jobs / Backend developer / Deployment Basics
Backend developer interview question · 1–3 years
The interviewer asks: “A user says checkout failed at 16:02. How do you find it in logs?” Strongest answer?
The strongest answer
A request / correlation id on every log line and in the error body I showed them. I search that id, not “checkout” around 16:02.
Why it works
Exactly. Propagate the id from the gateway through services. That's the difference between 30 seconds and an afternoon.
What a good answer covers
- Put a request id on logs and errors.
- Search the id, not the clock.
- Don't debug-log the world.
- Never log payment secrets.
Answers that fall short
- Close, but not the strongest: I grep for the user's email in the info logs.
Email in every line is PII sprawl and still collides. Correlation id is the join key. - Weak: I ask them to reproduce it with debug logging turned on globally.
Global debug in prod is a cost and leak storm. Reproduce with a flag on that id if you must. - Red flag: I log the full request including card number so support can replay.
Card data in logs is a PCI / privacy incident. Tokenise; never journal PANs.
Who gets asked this
More Deployment Basics questions
- The interviewer asks: “How do you observe a production service?” Strongest answer?
- The interviewer asks: “A request touches four services. How do you see the whole path?” Strongest answer?
- The interviewer asks: “Kubernetes sent SIGTERM. What does your process do?” Strongest answer?
- The interviewer asks: “We want 99.9% availability. What does that change in the team?” Strongest answer?
- The interviewer asks: “Production is down. Who does what in the first fifteen minutes?” Strongest answer?
- The interviewer asks: “A new ranking feature is burning CPU in production. What do you want already built?”…
- The interviewer (as hiring manager) asks: “How do you interview for on-call readiness?” Strongest answer?
- The interviewer asks: “The last outage was fixed by one person who “just knew.” What do you change?”…