nerdexam
GoogleGoogle

PROFESSIONAL-CLOUD-DEVELOPER · Question #123

PROFESSIONAL-CLOUD-DEVELOPER Question #123: Real Exam Question with Answer & Explanation

The correct answer is C: Use a Horizontal Pod Autoscaler to scale the containers, and expose them via a ClusterIP. https://cloud.google.com/kubernetes-engine/docs/concepts/service#services_of_type_clusterip When you create a Service of type ClusterIP, Kubernetes creates a stable IP address that is accessible from nodes in the cluster. https://cloud.google.com/kubernetes-engine/docs/concepts/h

Deploying applications

Question

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?

Options

  • AUse a Vertical Pod Autoscaler to scale the containers, and expose them via a ClusterIP Service.
  • BUse a Vertical Pod Autoscaler to scale the containers, and expose them via a NodePort Service.
  • CUse a Horizontal Pod Autoscaler to scale the containers, and expose them via a ClusterIP
  • DUse a Horizontal Pod Autoscaler to scale the containers, and expose them via a NodePort

Explanation

https://cloud.google.com/kubernetes-engine/docs/concepts/service#services_of_type_clusterip When you create a Service of type ClusterIP, Kubernetes creates a stable IP address that is accessible from nodes in the cluster. https://cloud.google.com/kubernetes-engine/docs/concepts/horizontalpodautoscaler The Horizontal Pod Autoscaler changes the shape of your Kubernetes workload by automatically increasing or decreasing the number of Pods in response to the workload's CPU or memory consumption, or in response to custom metrics reported from within Kubernetes or external metrics from sources outside of your cluster.

Topics

#Kubernetes#Horizontal Pod Autoscaler#Service Networking#GKE

Community Discussion

No community discussion yet for this question.

Full PROFESSIONAL-CLOUD-DEVELOPER PracticeBrowse All PROFESSIONAL-CLOUD-DEVELOPER Questions