Bird
0
0

In a microservice chain, if Service A calls Service B and passes a Correlation ID, which of the following is the expected behavior in Service B's logs?

medium📝 Analysis Q5 of 15
Microservices - Monitoring and Observability
In a microservice chain, if Service A calls Service B and passes a Correlation ID, which of the following is the expected behavior in Service B's logs?
AService B logs the Correlation ID only if the request is successful
BService B generates a new Correlation ID and logs it
CService B logs include the same Correlation ID received from Service A
DService B logs no Correlation ID
Step-by-Step Solution
Solution:
  1. Step 1: Understand Correlation ID propagation

    Correlation IDs are passed along services to maintain traceability of the same request.
  2. Step 2: Identify logging behavior in downstream services

    Service B should log the same Correlation ID it received to keep the trace consistent.
  3. Final Answer:

    Service B logs include the same Correlation ID received from Service A -> Option C
  4. Quick Check:

    Correlation ID propagation = Same ID logged [OK]
Quick Trick: Downstream services log received Correlation ID [OK]
Common Mistakes:
MISTAKES
  • Thinking each service generates a new ID
  • Assuming logs omit Correlation IDs
  • Believing logging depends on request success

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Microservices Quizzes