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.

HardSystem Design
48 practiced

Design a secrets distribution architecture for containerized workloads that supports key rotation without requiring container restarts. Constraints: thousands of containers, least-privilege access, audit logs, node-level caching, and low-latency retrieval. Consider using Vault, sidecars, node agents, and Kubernetes secrets; explain trade-offs for each.

EasyTechnical
57 practiced

Explain DNS-based service discovery and how DNS caching and TTLs affect failover and load distribution. If you had to choose between a 60-second and a 300-second TTL for a service record, which would you pick and why, and what else would you need to account for to make that choice actually hold up in practice?

MediumTechnical
52 practiced

Compare Consul, etcd, ZooKeeper, and Eureka as backends for service discovery and configuration storage. Which are CP and which are AP, and what does that mean operationally, for example ZooKeeper being unavailable during leader election versus Eureka's self-preservation mode serving stale data during a partition? Discuss watch/notify semantics, performance characteristics, operational complexity, and typical failure modes.

HardTechnical
48 practiced

Case study: Over a 10-minute window 20% of requests began failing with 502 errors. Application logs show upstream connection refused messages and a discovery component reported that service 'orders' endpoint count dropped from 50 to 2. CPU and network metrics look normal. Walk through how you would analyze this incident: likely root causes, immediate mitigations to restore traffic, and permanent fixes to prevent recurrence.

MediumTechnical
59 practiced

An API gateway routes external traffic to internal microservices that use a registry for discovery. Describe how the gateway should discover internal services, handle caching of endpoints, and react to rapid scaling events (for example autoscale from 1 to 100 instances). Discuss cache TTLs, warm-up strategies, and circuit breaker interactions.

Unlock Full Question Bank

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

Sign in to Continue

Join thousands of developers preparing for their dream job.