Associate Cloud Engineer Exam QuestionsBrowse all questions from this exam

Associate Cloud Engineer Exam - Question 275


You have several hundred microservice applications running in a Google Kubernetes Engine (GKE) cluster. Each microservice is a deployment with resource limits configured for each container in the deployment. You've observed that the resource limits for memory and CPU are not appropriately set for many of the microservices. You want to ensure that each microservice has right sized limits for memory and CPU. What should you do?

Show Answer
Correct Answer: AD

To ensure that each microservice has right-sized limits for memory and CPU, you should configure a Vertical Pod Autoscaler (VPA) for each microservice. VPA automatically adjusts the resource requests and limits (CPU and memory) for pods based on their actual usage. This ensures that pods are allocated the proper amount of resources, preventing over-provisioning or under-provisioning and optimizing the performance and cost-efficiency of your microservices.

Discussion

1 comment
Sign in to comment
RuchiMishraOption: A
Jul 16, 2024

Here's why a Vertical Pod Autoscaler (VPA) is the most suitable solution for this scenario: Right-Sizing Resources: VPA is designed to automatically adjust the resource requests and limits (CPU and memory) for pods based on their actual usage. This ensures that pods have enough resources to run efficiently without being over-provisioned, which can lead to wasted resources and higher costs. Automated Optimization: VPA continuously monitors the resource usage of your pods and recommends optimal settings. You can choose to apply these recommendations automatically or manually, giving you flexibility and control over the process. Microservice-Specific Tuning: By configuring a VPA for each microservice, you can fine-tune the resource allocation for each individual service based on its specific needs and usage patterns. This is more efficient than making blanket changes to the entire cluster or node pool.