Google Cloud Professional Cloud Developer — Question 146

You recently deployed a Go application on Google Kubernetes Engine (GKE). The operations team has noticed that the application's CPU usage is high even when there is low production traffic. The operations team has asked you to optimize your application's CPU resource consumption. You want to determine which Go functions consume the largest amount of CPU. What should you do?

Answer options

Correct answer: D

Explanation

The correct answer is D because modifying the Go application to capture profiling data allows for in-depth analysis of CPU usage at the function level, enabling precise optimization. Options A and B provide general insights but do not specifically target CPU function usage, while option C only offers a snapshot of CPU utilization without the detailed function-level analysis needed for optimization.