PROFESSIONAL-CLOUD-DEVOPS-ENGINEER practice question 8 of 25
As a Site Reliability Engineer, you support an application written in GO that runs on Google Kubernetes Engine (GKE) in production. After releasing a…
Full set: 205 questionsThe Cloud Profiler data clearly indicates a memory leak, as the heap usage grows constantly until the application is terminated. In a Kubernetes environment, when a container exceeds its memory limit, it is terminated by the kubelet with an "OOMKilled" (Out of Memory) error, causing a restart. While the long-term solution is to fix the memory leak in the application code, the immediate action an SRE can take to improve service stability and stop the frequent restarts is to increase the memory limit in the deployment configuration. This provides a larger buffer, allowing the application to run longer between restarts while a permanent code fix is developed.
A. Adding high-memory nodes does not solve the application-level memory limit issue and is an inefficient way to handle a memory leak. The container will still be OOMKilled.
C. Cloud Trace is used for analyzing latency and request tracing, not for diagnosing memory usage issues, which Cloud Profiler has already successfully identified.
D. The issue is related to memory (heap usage), not CPU. Increasing the CPU limit would have no effect on the OOMKilled errors.
1. Google Cloud Documentation, "Debugging memory leaks with Cloud Profiler": "The heap profile shows the memory allocations in your program at the time the profile was collected. ... A continuously growing heap profile is often a symptom of a memory leak."
2. Kubernetes Documentation, "Resource Management for Pods and Containers": "If a Container exceeds its memory limit, it might be terminated. If it is restartable, the kubelet will restart it, as with any other type of runtime failure." Section: "How Pods with resource limits are run".
Keep practicing
Take the free PROFESSIONAL-CLOUD-DEVOPS-ENGINEER practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other PROFESSIONAL-CLOUD-DEVOPS-ENGINEER practice questions
- Question 1[Building and implementing CI/CD pipelines for a service] You need to enforce several con…
- Question 2You deployed an application into a large Standard Google Kubernetes Engine (GKE) cluster.…
- Question 3You are responding to a high-priority incident where a critical, user-facing payment serv…
- Question 4[Applying Site Reliability Engineering (SRE) principles to a service] You support a user-…
- Question 5You are deploying an application that needs to access sensitive information. You need to …
- Question 6[Building and implementing CI/CD pipelines for a service] You are building an application…
