Google Cloud Professional Cloud Developer — Question 273

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 function is consuming the most CPU and memory resources. What should you do?

Answer options

Correct answer: D

Explanation

The correct answer is D because using Cloud Profiler allows you to analyze and visualize CPU and memory usage in your application, making it easier to identify resource-intensive functions. Options A and B involve manual logging and scripting, which are less efficient and not suited for identifying resource usage directly. Option C focuses on latency rather than resource consumption, which does not address the original question regarding CPU and memory utilization.