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?
- A. Include a correlation (request) id generated at the edge, passed along on every call and written into every log line
- B. Log at DEBUG level everywhere
- C. Synchronise the clocks of all servers
- 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.
Practise more Software Engineering, Git and Cloud Basics questionsSoftware Engineering, Git and Cloud Basics: notes and key points
More Software Engineering, Git and Cloud Basics questions
- A team builds a hiring form. QA notices the form can be submitted with all fields blank; developers say 'validation is the back-end's…
- A client can fund only 120 person-months. Using basic COCOMO for a semi-detached project (Effort = 3.0 x KLOC^1.12), what is the largest…
- For the function below, what is its cyclomatic complexity, and how many times is a[i] + a[j] == target evaluated for findpair([1, 2, 3, 4…
- For the same findpair function (two nested for loops, an if that returns (i, j) when a pair matches, and return None after the loops)…
- A Value Object is modelled as a frozen dataclass. What does this print? python from dataclasses import dataclass, FrozenInstanceError…
- This Singleton caches its instance in new. What does it print? python class Settings: instance = None def new(cls, args): if cls.instance…