Google Cloud Associate Cloud Engineer — Question 247

Your manager asks you to deploy a workload to a Kubernetes cluster. You are not sure of the workload's resource requirements or how the requirements might vary depending on usage patterns, external dependencies, or other factors. You need a solution that makes cost-effective recommendations regarding CPU and memory requirements, and allows the workload to function consistently in any situation. You want to follow Google-recommended practices. What should you do?

Answer options

Correct answer: B

Explanation

The correct answer is B because the Horizontal Pod Autoscaler is designed to manage the number of pods based on demand, while the Vertical Pod Autoscaler provides recommendations for adjusting resource requests and limits based on actual usage. Options A, C, and D do not effectively combine the benefits of both scaling types to ensure optimal resource allocation and consistent workload performance.