Google Cloud Professional Cloud DevOps Engineer — Question 1
You support a Node.js application running on Google Kubernetes Engine (GKE) in production. The application makes several HTTP requests to dependent applications. You want to anticipate which dependent applications might cause performance issues. What should you do?
Answer options
- A. Instrument all applications with Stackdriver Profiler.
- B. Instrument all applications with Stackdriver Trace and review inter-service HTTP requests.
- C. Use Stackdriver Debugger to review the execution of logic within each application to instrument all applications.
- D. Modify the Node.js application to log HTTP request and response times to dependent applications. Use Stackdriver Logging to find dependent applications that are performing poorly.
Correct answer: B
Explanation
The correct answer is B because Stackdriver Trace provides insights into request latencies and allows for the analysis of inter-service calls, which is crucial for identifying performance bottlenecks. Options A and C focus on profiling and debugging, which do not directly address performance issues related to HTTP requests. Option D, while useful, requires manual logging and may not provide the comprehensive view that Stackdriver Trace offers.