All jobs / Backend developer / Deployment Basics
Backend developer interview question · 3–5 years
The interviewer asks: “A request touches four services. How do you see the whole path?” Strongest answer?
The strongest answer
Propagate W3C trace context (traceparent) on every outbound call and queue message, sample consistently, and view one trace. I don't invent a new id per hop.
Why it works
Exactly. One trace id, parent spans, baggage if you must. That's what the APM is for.
What a good answer covers
- One trace id across hops.
- W3C traceparent on HTTP and messages.
- Don't join by timestamp.
- Don't put access tokens on the bus.
Answers that fall short
- Close, but not the strongest: Each service logs its own UUID; I'll join on timestamps.
Clock-join across four hosts is folklore. You'll never be sure. - Weak: Turn on debug logging in all four for an hour.
Hour-long debug in prod is cost, noise and PII. Use traces; raise sampling on the failing route if needed. - Red flag: Copy the user's JWT into every message so I can grep the user.
JWTs in queues expand the blast radius of a leaked broker. Pass a trace id and a subject, not the credential.
Who gets asked this
More Deployment Basics questions
- 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?”…
- The interviewer asks: “How do you know failover works?” Strongest answer?
- What is the difference between a region and an availability zone?