Kubernetes and Cloud Native Associate (KCNA)Cloud Native ArchitectureMedium

A team is developing a new cloud-native application using microservices. They want to implement a robust monitoring solution that provides deep insights into the behavior of individual requests as they traverse multiple services. This includes tracking latency, errors, and the path a request takes through the system. Which observability technique is best suited for this requirement?

  1. AHealth Checks
  2. BMetrics Collection
  3. CLog Aggregation
  4. DDistributed Tracing
Show answer & explanation

Correct answer: D. Distributed Tracing

Distributed tracing is designed to track requests as they flow through multiple services in a microservices architecture, providing a holistic view of the request path, latency, and any errors encountered across services.

Why the other options are wrong

  • A. Health Checks verify the availability and responsiveness of individual services, not the flow of a request through the entire system.
  • B. Metrics Collection gathers numerical data about system performance (e.g., CPU usage, request count), providing aggregates but not per-request insights across services.
  • C. Log Aggregation collects and centralizes logs from various services, useful for debugging but not for tracking a single request's journey.

Distributed Tracing

An observability technique used in microservices architectures to track a single request as it propagates through multiple services, providing a detailed view of the request's journey, latency, and any errors.

  • Tracks individual requests across services.
  • Provides end-to-end visibility.
  • Helps identify performance bottlenecks and errors.
  • Complements logs and metrics.

Memory trick: Observe with Logs, Metrics, and Traces.

More Cloud Native Architecture questions