Google Cloud Professional Cloud Developer — Question 175

You are monitoring a web application that is written in Go and deployed in Google Kubernetes Engine. You notice an increase in CPU and memory utilization. You need to determine which source code is consuming the most CPU and memory resources. What should you do?

Answer options

Correct answer: B

Explanation

The correct answer is B because the Cloud Profiler provides detailed insights into CPU and memory usage, allowing you to visualize performance bottlenecks through a flame graph. Option A focuses on debugging but does not provide a comprehensive overview of resource consumption. Option C is about tracing rather than profiling, which does not directly address CPU and memory usage. Option D relies on log analysis, which is less effective for pinpointing precise resource utilization compared to profiling tools.