Google Cloud Professional Cloud DevOps Engineer — Question 158
As a Site Reliability Engineer, you support an application written in Go that runs on Google Kubernetes Engine (GKE) in production. After releasing a new version of the application, you notice the application runs for about 15 minutes and then restarts. You decide to add Cloud Profiler to your application and now notice that the heap usage grows constantly until the application restarts. What should you do?
Answer options
- A. Increase the CPU limit in the application deployment.
- B. Add high memory compute nodes to the cluster.
- C. Increase the memory limit in the application deployment.
- D. Add Cloud Trace to the application, and redeploy.
Correct answer: C
Explanation
The correct option is to increase the memory limit in the application deployment because the constant growth in heap usage indicates that the application is running out of memory, leading to restarts. Increasing the CPU limit or adding high memory nodes may not address the immediate memory issue, and adding Cloud Trace does not resolve the underlying problem of memory exhaustion.