Professional Cloud DevOps Engineer Exam QuestionsBrowse all questions from this exam

Professional Cloud DevOps Engineer Exam - Question 154


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?

Show Answer
Correct Answer: AC

Given that the application heap usage grows constantly until the application restarts, it is evident that the issue relates to memory consumption. The appropriate action is to increase the memory limit in the application deployment configuration. By doing this, you provide the application with more memory resources, potentially preventing it from reaching the point where it exhausts its memory and restarts. This approach directly addresses the memory usage problem, unlike options A and B which do not target the underlying issue. Option D, while useful for tracing requests, does not resolve the immediate issue of memory consumption.

Discussion

5 comments
Sign in to comment
koo_kaiOption: C
Oct 28, 2023

insufficient memory

pharao89Option: C
Nov 12, 2023

That's what I do at work :-)

nqthien041292Option: C
Dec 2, 2023

Vote C

xhilmiOption: C
Dec 8, 2023

Given the scenario where the heap usage of the application grows constantly until it restarts, the issue is likely related to memory consumption. Therefore, the appropriate action to take is to address the memory-related problem. In this context, option C is the recommended. By increasing the memory limit in the application deployment configuration, you provide more memory resources to the application, potentially preventing it from exhausting its memory and triggering restarts. Options A and B may not directly address the underlying memory problem. Option D, adding Cloud Trace, is more focused on request tracing and may not directly resolve the memory growth issue. Therefore, increasing the memory limit is the most relevant step to take based on the symptoms described.

PhilipKokuOption: D
Jul 12, 2024

D) I would add Cloud Trace to find the root cause of the heap usage growth. Adding more memory will only solve the issue temporarily, and you might now see a restart in 30 minutes.