Preparing Practice Exam…
Please wait a moment while the system generates the exam questions, answers, and study session.
Please wait a moment while the system generates the exam questions, answers, and study session.
Google Cloud Certified Professional Cloud Developer · Google Cloud
Select one answer.
Written by other learners. Comments can disagree with the marked answer — check the official documentation when in doubt.
Horizontal Pod Autoscaler (HPA) scales the number of pod replicas based on CPU usage or other select metrics, which is suitable for quick scaling with load changes. ClusterIP is appropriate for services only accessible within the cluster. This combination seems to meet all the requirements.
HPA automatically scales the number of pods in a deployment based on CPU utilization or other custom metrics. By using HPA, you can ensure that your service scales quickly to respond to changing load while minimizing manual intervention. Exposing the service via a ClusterIP Service allows other services running in the GKE cluster to access it securely without exposing it to the public internet.
C. Use a Horizontal Pod Autoscaler to scale the containers, and expose them via a ClusterIP Service. When dealing with services that are only accessed by other services in the same GKE cluster, it's usually best to use a ClusterIP Service. This type of service allows pods to be accessed by other pods within the cluster using their IP address, but doesn't expose them to the outside world.