Google Cloud Professional Cloud Developer — Question 116

Your team develops stateless services that run on Google Kubernetes Engine (GKE). You need to deploy a new service that will only be accessed by other services running in the GKE cluster. The service will need to scale as quickly as possible to respond to changing load. What should you do?

Answer options

Correct answer: C

Explanation

The correct answer is C because a Horizontal Pod Autoscaler allows for scaling the number of pod replicas based on the current load, which is essential for responding to changing demand. A ClusterIP Service is suitable here as the service is only accessed internally within the cluster. The other options either use a Vertical Pod Autoscaler, which does not scale the number of pods, or expose the service inappropriately for the intended access.