Skip to content
Sharp

Distributed Resilience · interview question

In the context of distributed tracing, what role does MDC (Mapped Diagnostic Context) play?

Multiple choiceMediumchapter-18-curatedpremiumdistributed-resiliencedistributed-tracing
Choose one answer
Answer and explanation

Correct answer

B. It stores contextual information like trace ID for logging

Why

MDC is used to store contextual information, such as the trace ID, which is essential for logging the journey of a request across services. This ensures that logs from different services can be correlated to a single request.

Test yourself on Distributed Resilience

A free test with instant, explained results. No account needed.

Start free test
All Distributed Resilience questions →