Deploy a stateless service on GKE that is accessible only to other cluster services and must scale as quickly as possible. Which scaler and Service type should you use?
Choose an answer
Tap an option to check your answer.
Correct answer: Use a Horizontal Pod Autoscaler and expose the pods via a ClusterIP Service..
Why this is the answer
The Horizontal Pod Autoscaler (HPA) is ideal for stateless services requiring rapid scaling, as it automatically adjusts the number of pod replicas based on CPU utilization or other metrics. This allows the service to scale out quickly to meet increased demand. A ClusterIP Service exposes the service only within the cluster, making it accessible to other cluster services as required by the prompt. Vertical Pod Autoscaler (VPA) adjusts resource requests and limits for individual pods, which is not about scaling out quickly but rather optimizing resource allocation for existing pods. NodePort Services expose a service on a static port on each node's IP, making it accessible from outside the cluster, which contradicts the requirement for internal-only access.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed