PROFESSIONAL-CLOUD-DEVOPS-ENGINEER practice question 9 of 25
[Optimizing service performance] You manage a retail website for your company. The website consists of several microservices running in a GKE…
Full set: 205 questionsThe OOMKilled status indicates that a container's process was terminated because it exceeded its configured memory limit. The fact that this is happening during a busy period suggests the application requires more memory under heavy load than it has been allocated. Increasing the memory resource limit for the microservice's container specification directly addresses the root cause of the crashes. This will allow the Pods to handle the increased load without being terminated, stabilizing the service and allowing the Horizontal Pod Autoscaler to function correctly if CPU-based scaling is also needed.
B. Increasing the maximum number of nodes helps if Pods are pending due to a lack of cluster resources, not when existing Pods are crashing due to their own limits.
C. The Horizontal Pod Autoscaler is not scaling up because the Pods are crashing before the scaling metric (e.g., CPU) can reach its threshold. The memory limit is the primary issue.
D. A node with more memory does not change the individual memory limit applied to a container. A Pod with a 512Mi limit will still be killed if it exceeds that limit, even on a 64GiB node.
1. Kubernetes Documentation
"Resource Management for Pods and Containers"
Section: "How Pods with resource limits are run". It explains
"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." This describes the OOMKilled behavior.
2. Google Cloud Documentation
GKE
"Troubleshooting GKE"
Section: "Pods are crash-looping". The guide lists OOMKilled as a common reason and suggests solutions like "Increase memory requests and limits" and "Profile your application's memory usage to understand its requirements." This directly supports increasing the memory limit.
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…
