Microservices must be internal to the GKE cluster, allow configuring replica counts, and be addressable uniformly from other microservices regardless of replica count. How should you implement this?
Choose an answer
Tap an option to check your answer.
Correct answer: Deploy each microservice as a Deployment, expose it with a Service, and use the Service DNS name for intra-cluster addressing..
Why this is the answer
Deploying each microservice as a Deployment allows you to manage replica counts, ensuring scalability and high availability. Exposing it with a Service provides a stable IP address and DNS name, abstracting away individual pod IPs and handling load balancing across replicas. Other microservices can then reliably address it using the Service's DNS name, fulfilling the requirement for uniform addressing regardless of replica count. Using an Ingress is incorrect because Ingress is primarily for external HTTP/S access to services, not for internal cluster communication. Deploying microservices directly as Pods is incorrect because Pods are ephemeral and don't inherently provide replica management, self-healing, or stable addressing like Deployments and Services do.
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