CompTIA Cloud+ (CV0-004)OperationsHard

A cloud architect is reviewing the performance of a newly deployed RESTful API service. The service is composed of several serverless functions. Users are reporting occasional slow responses, but individual function logs show fast execution times. The architect suspects that the latency is accumulating between the function calls or due to external dependencies. Which monitoring approach would be most effective in identifying the source of this cumulative latency?

  1. ASetting up network performance monitoring between the client and the API Gateway.
  2. BImplementing a distributed tracing solution to visualize request flow.
  3. CCollecting detailed CPU and memory metrics for each serverless function.
  4. DAggregating all function logs into a central logging platform.
Show answer & explanation

Correct answer: B. Implementing a distributed tracing solution to visualize request flow.

Distributed tracing is designed to track requests as they flow through multiple services and components in a distributed system, providing a visual representation of each step and its latency, which is crucial for identifying bottlenecks between serverless function calls or external dependencies.

Why the other options are wrong

  • A. Network performance monitoring between the client and API Gateway would show external network latency, but not the internal latency *within* the serverless API's components.
  • C. CPU and memory metrics are important for individual function performance but won't show latency *between* functions or external calls.
  • D. Aggregating logs helps with debugging errors and understanding individual function behavior, but it doesn't inherently provide a timeline or visualization of a single request's journey across services.

Distributed Tracing

A methodology for monitoring requests as they propagate through a distributed system, providing visibility into the performance of each service call and identifying latency bottlenecks.

  • Tracks a single request across multiple microservices or serverless functions.
  • Visualizes the end-to-end flow and timing of operations.
  • Essential for troubleshooting performance in complex, distributed architectures.

Memory trick: Tracing tracks the paths, revealing where the time passes.

More Operations questions