CS FundamentalsHardProduct-company SRE interview

Logs from 40 service instances arrive in a central store. Support needs to find every log line for one customer request that crossed 5 services. What simple practice makes this possible?

  1. A. Include a correlation (request) id generated at the edge, passed along on every call and written into every log line
  2. B. Log at DEBUG level everywhere
  3. C. Synchronise the clocks of all servers
  4. D. Give each service its own log file name

Correct answer: A. Include a correlation (request) id generated at the edge, passed along on every call and written into every log line

A correlation id ties together lines from different services for one request, so a single search returns the whole story; distributed tracing builds on the same idea.

More Software Engineering, Git and Cloud Basics questions

Exams that ask this topic