nerdexam
Google

ASSOCIATE-CLOUD-ENGINEER · Question #371

You are managing a stateful application deployed on Google Kubernetes Engine (GKE) that can only have one replica. You recently discovered that the application becomes unstable at peak times. You have

The correct answer is B. Configure a Vertical Pod Autoscaler on the Deployment.. A Vertical Pod Autoscaler (VPA) automatically adjusts the CPU and memory requests and limits for a pod based on usage. This is ideal for stateful applications with a single replica, where scaling out horizontally is not possible. It ensures the pod gets more CPU during peak times

Submitted by thandi_sa· Mar 30, 2026Ensuring successful operation of a cloud solution

Question

You are managing a stateful application deployed on Google Kubernetes Engine (GKE) that can only have one replica. You recently discovered that the application becomes unstable at peak times. You have identified that the application needs more CPU than what has been configured in the manifest at these peak times. You want Kubernetes to allocate the application sufficient CPU resources during these peak times, while ensuring cost efficiency during off-peak periods. What should you do?

Options

  • AEnable cluster autoscaling on the GKE cluster.
  • BConfigure a Vertical Pod Autoscaler on the Deployment.
  • CConfigure a Horizontal Pod Autoscaler on the Deployment.
  • DEnable node auto-provisioning on the GKE cluster.

How the community answered

(35 responses)
  • A
    14% (5)
  • B
    71% (25)
  • C
    6% (2)
  • D
    9% (3)

Explanation

A Vertical Pod Autoscaler (VPA) automatically adjusts the CPU and memory requests and limits for a pod based on usage. This is ideal for stateful applications with a single replica, where scaling out horizontally is not possible. It ensures the pod gets more CPU during peak times and reverts to lower usage when idle, thus ensuring performance and cost-efficiency.

Topics

#Vertical Pod Autoscaler#GKE CPU scaling#stateful workloads#cost efficiency

Community Discussion

No community discussion yet for this question.

Full ASSOCIATE-CLOUD-ENGINEER Practice