InterviewStack.io LogoInterviewStack.io

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, and how config changes propagate safely. The connective plumbing of a microservices deployment.

EasyTechnical
62 practiced

Implement a configuration validator in Python that reads a JSON configuration file, validates required keys and types against a provided JSON Schema (you may assume use of the jsonschema package), and writes an atomic validated output file for services to consume. Discuss handling of defaults, deprecated keys, and helpful validation errors for operators.

HardSystem Design
46 practiced

Design a global multi-region service discovery and configuration system for an application deployed across 5 regions serving 1M RPS. Requirements: region-local discovery for low latency, automatic regional failover, versioned global config propagation with audit history, and ability to perform region-scoped rollbacks. Discuss DNS TTLs, geo-DNS, control plane replication, and trade-offs between strong and eventual consistency.

MediumTechnical
58 practiced

Using a Python etcd v3 client, write a watcher process that subscribes to a prefix such as /config/services/, applies updates to a local JSON config file atomically (write to temp and rename), and recovers gracefully from transient network partitions without losing updates. Describe how to handle compaction of etcd revision history and missed events.

MediumTechnical
63 practiced

Design a dynamic configuration service that supports versioned configurations, atomic rollouts, and quick rollback. Requirements: services can query a specific version or subscribe to change notifications, audit history is preserved, and rollbacks across many instances complete within minutes. Sketch APIs, storage approaches, and how to coordinate rollout and rollback safely.

MediumSystem Design
95 practiced

Design a service discovery strategy for a microservices platform deployed in two regions (region-a and region-b). Requirements: local low-latency discovery for most traffic, automatic failover if a whole region fails, minimal cross-region synchronization for config changes, and support for rolling upgrades. Discuss options such as regional registries with eventual replication, geo-DNS, and pros/cons for consistency and failover behavior.

Unlock Full Question Bank

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

Sign in to Continue

Join thousands of developers preparing for their dream job.