Some API requests traverse many microservices and take unusually long. How do you determine which service contributes the most latency for those requests?
Choose an answer
Tap an option to check your answer.
Correct answer: Instrument your application with Stackdriver Trace to break down request latency per microservice.
Why this is the answer
Stackdriver Trace (now Cloud Trace) is designed for distributed tracing, allowing you to visualize the end-to-end path of a request through multiple microservices. By instrumenting your application, Trace automatically collects and displays latency data for each service involved in a request, pinpointing bottlenecks. Setting timeouts might fail requests faster but doesn't identify the source of latency. Sending custom metrics to Monitoring could show overall latency but wouldn't break it down per service without significant custom effort. Looking for insights in Monitoring might indicate high latency periods but won't inherently reveal which specific service is the culprit in a multi-service request.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed