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.

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
49 practiced

Implement the core algorithm (pseudo-code or Python) for a rolling-config-apply orchestrator that ensures at most N instances are unhealthy at any time during config application. Inputs: list of instances, health_check(instance) -> bool, apply_config(instance) -> restart. Show scheduling strategy, concurrency control to limit in-flight operations, backoff and retry logic for failures, and how you would surface progress and abort criteria.

MediumSystem Design
61 practiced

Design a simple service registry and discovery system for an internal platform with ~200 services and ~1,000 instances. Describe key components, APIs for registration and discovery, the health-check model (active pings vs TTL vs passive), and how clients discover endpoints. Choose Consul, Etcd, or ZooKeeper and justify your choice operationally.

EasyTechnical
44 practiced

Why should secrets not be stored in plain configuration files or version control? Describe a secure secrets management approach for containerized microservices, covering short-lived vs long-lived secrets, authentication to a secrets store, audit logging, and how to revoke or rotate secrets safely.

HardTechnical
63 practiced

Write a Python tool that performs a safe compare-and-swap (CAS) update on a configuration key in Consul KV, records version metadata (who, when, change-id), and supports automatic rollback to the previous version if post-update health checks fail. Describe how you would atomically swap values, detect failure, and restore the older value with minimum race conditions.

Unlock Full Question Bank

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

Sign in to Continue

Join thousands of developers preparing for their dream job.