Google Cloud Professional Cloud Developer — Question 247
You are developing an online gaming platform as a microservices application on Google Kubernetes Engine (GKE). Users on social media are complaining about long loading times for certain URL requests to the application. You need to investigate performance bottlenecks in the application and identify which HTTP requests have a significantly high latency span in user requests. What should you do?
Answer options
- A. Configure GKE workload metrics using kubectl. Select all Pods to send their metrics to Cloud Monitoring. Create a custom dashboard of application metrics in Cloud Monitoring to determine performance bottlenecks of your GKE cluster.
- B. Update your microservices to log HTTP request methods and URL paths to STDOUT. Use the logs router to send container logs to Cloud Logging. Create filters in Cloud Logging to evaluate the latency of user requests across different methods and URL paths.
- C. Instrument your microservices by installing the OpenTelemetry tracing package. Update your application code to send traces to Trace for inspection and analysis. Create an analysis report on Trace to analyze user requests.
- D. Install tcpdump on your GKE nodes. Run tcpdump to capture network traffic over an extended period of time to collect data. Analyze the data files using Wireshark to determine the cause of high latency.
Correct answer: C
Explanation
The correct answer is C because using OpenTelemetry allows for detailed tracing of requests, making it easier to identify high latency issues in the microservices. Option A focuses on metrics which may not provide the granular insight needed for HTTP request latency. Option B involves logging but lacks the comprehensive tracing capabilities of OpenTelemetry. Option D is more about capturing network traffic and does not directly address the HTTP request latency problem.