All Questions
Api Gateway medium

In a dynamic Kubernetes environment where Pod IPs are ephemeral, how does an API Gateway maintain reliable routing to a backend service like 'Shipping'?

  1. A It performs a global IP scan of the entire subnet for every incoming request to find a service with a matching name.
  2. B It relies on a hardcoded list of IPs that developers must manually update in a config file during every deployment.
  3. C It integrates with a Service Registry (e.g., Consul, Eureka, or K8s DNS) to dynamically resolve logical service names into a list of healthy, currently active IP addresses.
  4. D It uses a predictable IP generation algorithm based on the time the service was started.

One system design question a day, with spaced repetition so the ones you miss come back.

Get the app

Related questions