Google Cloud Professional Cloud DevOps Engineer — Question 180
You manage a retail website for your company. The website consists of several microservices running in a GKE Standard node pool with node autoscaling enabled. Each microservice has resource limits and a Horizontal Pod Autoscaler configured. During a busy period, you receive alerts for one of the microservices. When you check the Pods, half of them have the status OOMKilled, and the number of Pods is at the minimum autoscaling limit. You need to resolve the issue. What should you do?
Answer options
- A. Update the node pool to use a machine type with more memory.
- B. Increase the maximum number of nodes in the node pool.
- C. Increase the maximum replica limit of the Horizontal Pod Autoscaler.
- D. Increase the memory resource limit of the microservice.
Correct answer: D
Explanation
The correct answer is D because increasing the memory resource limit of the microservice will help prevent the OOMKilled status by providing more memory for the Pods to operate. Options A and B do not directly address the issue of the microservice's memory limits, and option C only increases the number of replicas without resolving the underlying memory shortage.