Distributed Resilience · interview question
Why is Mapped Diagnostic Context (MDC) important for logging in a distributed tracing setup?
Multiple choiceMediumchapter-18-curatedpremiumdistributed-resiliencedistributed-tracing
Answer and explanation
Correct answer
C. It maintains context data across threads for consistent logging.
Why
MDC allows context-specific data, such as a correlation ID, to be passed along with log records, ensuring that logs from different parts of a distributed system can be correlated effectively.
Test yourself on Distributed Resilience
A free test with instant, explained results. No account needed.
More Distributed Resilience questions
- Which problem might occur if correlation IDs are not propagated consistently across all services in a distributed…
- How would you explain a common approach to implementing retries in a microservices-based Java application in an…
- What could be a consequence of setting a very high threshold for failure in a circuit breaker?
- Which of the following best describes the 'Database-per-Service' pattern in a microservices architecture?
- How would you explain a potential risk when not implementing exponential backoff during retries in microservices in an…
- How does distributed tracing assist in the performance optimization of a microservice architecture?