Bird
0
0

Given this trace data snippet for a request through three microservices, what is the total time spent processing the request?

medium📝 Analysis Q13 of 15
Microservices - Monitoring and Observability
Given this trace data snippet for a request through three microservices, what is the total time spent processing the request?
{
  "traceId": "abc123",
  "spans": [
    {"service": "A", "duration_ms": 50},
    {"service": "B", "duration_ms": 30},
    {"service": "C", "duration_ms": 20}
  ]
}
A100 ms
B50 ms
C30 ms
D20 ms
Step-by-Step Solution
Solution:
  1. Step 1: Understand trace spans and durations

    Each span shows time spent in a service. Total time is sum if services are sequential.
  2. Step 2: Sum durations of all spans

    50 ms + 30 ms + 20 ms = 100 ms total processing time.
  3. Final Answer:

    100 ms -> Option A
  4. Quick Check:

    Sum spans durations = 100 ms [OK]
Quick Trick: Add all span durations for total trace time [OK]
Common Mistakes:
MISTAKES
  • Taking only the longest span as total time
  • Ignoring some spans in calculation
  • Confusing traceId with duration

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Microservices Quizzes