Question
A cloud engineer is troubleshooting an application that consumes multiple third-party REST APIs. The application is randomly experiencing high latency. Which of the following would best help determine the source of the latency?
- A. Configuring centralized logging to analyze HTTP requests
- B. Running a flow log on the network to analyze the packets
- C. Configuring an API gateway to track all incoming requests
- D. Enabling tracing to detect HTTP response times and codes Correct
Explanation
Distributed tracing records the timing and status code of each outbound HTTP call, so the engineer can see which third-party API is responding slowly when latency spikes. Centralized logging of requests rarely captures per-call timing across services. Flow logs record packet metadata, not application response times, and an API gateway tracking incoming requests does not measure the outbound calls to third-party APIs.