Service Discovery and Configuration Management Questions

Letting services find and configure each other at runtime: service registries, client-side versus server-side discovery, DNS-based discovery, dynamic configuration, feature flags, and secrets distribution. Covers how services stay wired together as instances come and go, how config changes propagate safely, and how to monitor and diagnose the outages that stale endpoints or bad config pushes cause. The connective plumbing of a microservices deployment.

HardTechnical
48 practiced

Explain the watch semantics in etcd and in Consul and how they behave during network partitions and leader changes. Discuss how clients should handle missed events, compacted indices or lost watch histories, recommended retry/backoff strategies, and reconciliation approaches to ensure eventual consistency between client state and the source-of-truth.

HardTechnical
52 practiced

Describe a schema evolution strategy for configuration data and feature flags that ensures backward and forward compatibility across microservices written in different languages. Include approaches for typed versus untyped configs, deprecation policies, defaulting strategies, validation tooling, and how to handle clients that cannot be upgraded simultaneously.

MediumTechnical
58 practiced

Implement in Python a thread-safe ServiceResolver class that resolves a service name to IP addresses using socket.getaddrinfo and caches results per-service with a configurable TTL. Provide methods: resolve(service_name) -> list of IPs, and invalidate(service_name). The cache should refresh after TTL expiry and avoid duplicate simultaneous DNS queries when multiple threads request the same service concurrently.

HardSystem Design
82 practiced

Design a feature-flag service that supports per-user and per-segment targeting, deterministic percentage rollouts, and a global kill-switch, serving roughly a million evaluations per second at low latency across multiple regions. Cover the runtime evaluation model, how a flag change propagates to evaluators, storage and caching, and how you'd keep a full audit trail and roll back a bad flag fast.

EasyTechnical
52 practiced

Explain how Kubernetes service discovery works for ClusterIP and headless services. Given YAML expressed inline as apiVersion: v1; kind: Service; metadata.name: backend; spec.clusterIP: None; selector.app: backend, describe how DNS records are created, how clients discover endpoints (A vs SRV), and when to use headless services vs ClusterIP.

Unlock Full Question Bank

Get access to all 15 Service Discovery and Configuration Management interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.