
Answer-first summary for fast verification
Answer: 1. Create a Kubernetes service to group your backend pods. 2. Configure the frontend pods to communicate through this service.
Option A is correct because a Kubernetes service provides a stable endpoint for communication between frontend and backend services, regardless of pod movements or restarts. By grouping backend pods under a service, frontend pods can reliably communicate with the backend through the service, which dynamically routes traffic to available backend pods. This method ensures seamless communication without being affected by pod lifecycle changes. Options B, C, and D are incorrect as they either do not guarantee reliable communication upon pod changes (B and C) or unnecessarily complicate the setup by involving external resources (D). Kubernetes services are designed to handle such scenarios efficiently and are the recommended approach for internal service communication within GKE.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
Your web application is deployed on Google Kubernetes Engine (GKE), consisting of a backend service and a frontend service, both deployed as Kubernetes deployments. What is the best method to ensure uninterrupted communication between the frontend and backend services when pods are moved or restarted?
A
B
C
D
No comments yet.