InterviewStack.io LogoInterviewStack.io

Service Discovery & Configuration Management Questions

Service discovery and configuration management within distributed systems. Covers runtime service lookup patterns (service registries, DNS-based discovery, and Kubernetes service discovery), health checks, load balancing, and centralizing configuration across services. Includes dynamic configuration, feature flags, secret management, versioned configuration, rollout strategies, and related operational concerns such as security, consistency, and observability. Topics span implementations with tools like Consul, Etcd, Zookeeper, as well as cloud-native and IaC approaches for microservices architectures.

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.
HardTechnical
58 practiced
Design an automated rollback system that ties configuration changes and feature-flag rollouts to SLOs and error budgets. The system should halt rollouts or rollback automatically when error budgets are consumed for affected services. Describe the integration points (feature-flagging service, monitoring, orchestration), detection windows, safety checks to avoid false positives, and human override mechanisms.
MediumTechnical
63 practiced
Implement in Python a thread-safe ClientLB class that accepts a dynamic list of endpoints and supports both round-robin and least-connections strategies. The class should provide choose() returning an endpoint, report_result(endpoint, success) to influence health state, and avoid selecting endpoints marked unhealthy for a configurable cooldown period.
MediumTechnical
50 practiced
You need to roll out a new feature with feature flags to 10% of users and automatically rollback if SLOs degrade. Outline the flag targeting, bucketing, telemetry to observe impact, detection windows, and an automated rollback mechanism. Include how to avoid cascading rollbacks and how to surface reasons to humans.
EasyTechnical
57 practiced
Explain DNS-based service discovery and how DNS caching and TTLs affect failover and load distribution. Given two TTL options (60s vs 300s) and OS-level resolver caches, describe how you would choose TTLs and mitigate stale-record problems. Mention negative caching, stub resolvers, and DNS propagation behavior in your answer.

Unlock Full Question Bank

Get access to hundreds of Service Discovery & Configuration Management interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.