The interview problem

Practice prompt

Design a configuration service for 10,000 application processes in three regions. Operators change timeouts, connection limits and feature settings without redeploying code. Roll changes out gradually, stop harmful changes and recover during a control-plane outage. Explain why successful delivery does not prove successful activation.

Original system-design practice, not a reported company interview. Workload and calculations are hypothetical. Primary documentation retrieved September 27, 2026; interview date not applicable.

1. Define the activation contract

Each process activates one immutable configuration bundle atomically. A request captures one bundle reference at entry so it cannot read half its settings from one version and half from another. This is process/request consistency, not a simultaneous fleet-wide switch. Assume old and new bundles can coexist during deployment; changes requiring global coordination need an explicit protocol beyond this service.

Separate configuration from secrets, whose rotation and access controls have different requirements. Distinguish ordinary tuning from authorization policy: continuing indefinitely with an old timeout may be acceptable, while continuing with revoked permissions may not be. Every configuration family declares its stale-data policy, compatibility requirements and safe startup behavior.

2. Separate immutable data from rollout decisions

author → validation → immutable bundle store
                         ↓
              rollout controller + audit log
                         ↓
          regional distributors / polling endpoints
                         ↓
       process agent → validate → atomic activation
                         ↓
        version-tagged health and activation reports

Store a content digest, schema version, compatible application versions, author and validation results with each bundle. The controller publishes a desired assignment using compare-and-swap against the previous assignment revision. A deployment record contains its cohort definition, stage, target digest, observation window and abort conditions. Concurrent operators cannot silently overwrite the same rollout.

Distributors cache immutable bytes. Notifications accelerate discovery but are hints; periodic reconciliation repairs missed events. Clients authenticate the service and verify integrity. A digest detects corruption but is not authorization by itself. Configuration writers, deployment approvers and readers have scoped permissions.

3. Make rollback a newer decision

Keep assignment revision separate from bundle version. Suppose assignment revision 41 activates bundle B and revision 42 rolls back to known-good bundle A. A client accepts revision 42 even though A is older content; it rejects a delayed revision 41 notification. Comparing bundle numbers alone would incorrectly reject the rollback. Persist the highest accepted assignment revision separately from the active bundle. If revision 42 fails validation, retain the active bundle but never accept delayed revision 41 as a new instruction. On restart, recover this watermark before consuming notifications; losing it requires authoritative reconciliation before accepting new assignments.

A process reports fetched, validated and activated states separately. It downloads into a temporary location, validates schema and semantic constraints, prepares dependent resources, then swaps the active reference. Failure preserves the last active bundle. A configuration that requests 500 connections but a process can safely support only 100 must fail semantic validation before activation.

When rollback also changes resources, activation needs a lifecycle protocol: stop new borrowing from the old pool, let existing requests drain, then release it. A pointer swap does not cancel remote operations or undo writes already made under the new behavior. Record these irreversible effects in the rollout risk assessment.

4. Validate coexistence before exposure

Validate individual fields, cross-field invariants and compatibility with every targeted binary version. For example, require request_timeout_ms greater than connect_timeout_ms when the request deadline includes connection time. Test behavior, not just JSON types. A syntactically valid zero retry delay can create a retry storm.

For a renamed field, first deploy readers that understand both representations with an explicit precedence rule. Then publish compatible bundles, migrate writers, and remove the old field only after incompatible readers are gone. Rejecting an unknown mandatory field is safer than silently applying a partial bundle. Optional unknown fields may be ignored only when the schema contract permits it.

Two cooperating services may require a capability handshake or backward-compatible protocol. Merely delivering their settings together does not make their separate activations atomic. If consistency is tied to a user journey, use a stable entity assignment carried through that journey rather than independent process selection.

5. Work through staged exposure

Use nested cohorts such as 1%, 5%, 25% and 100%, selected by a stable salted hash within region and workload strata. For 10,000 processes, nominal cohort sizes are 100, 500, 2,500 and 10,000. A 1% process cohort is not necessarily 1% of requests: a few hot processes may serve disproportionate traffic. Measure actual request exposure and protect low-volume but critical workflows with targeted checks.

Assume balanced traffic at 100,000 requests/second, 1% exposed, and an excess failure probability of 0.02 on exposed requests. Expected additional failures are 100,000×0.01×0.02=20/second. If detection and rollback propagation together take 90 seconds at that exposure, expected excess failures are 1,800. This is an illustrative expectation, not a hard bound: correlated overload, rising traffic or stalled rollback can produce more damage.

A 10,000-process fleet polling every 30 seconds produces about 333.3 requests/second on average, before retries. Jitter prevents synchronized bursts. Polling provides no unconditional 30-second activation guarantee: network outages, validation and resource preparation add delay. Track age of the last successful reconciliation and the fraction actually activated.

6. Gate on outcomes and visibility

Compare errors, latency, saturation and business outcomes by active digest and relevant region/workload. Use an unchanged comparison cohort where possible, while recognizing shared dependencies can contaminate both cohorts. A configuration may overload a database and harm the control group too; absolute safety limits remain necessary.

Do not advance on missing telemetry. Require sufficient observation duration and volume, including slow background jobs. Zero failures in ten requests is weak evidence. Freeze the stage when observation is incomplete, and decide separately whether risk warrants rollback. AWS AppConfig documents gradual deployment strategies and a post-deployment bake period with alarm-based rollback; this guide's protocol and numbers are original design choices.

Rollout success requires the intended eligible cohort to activate and pass health gates, not simply a successful API call. Report excluded incompatible processes, failed activations and stale clients explicitly. Autoscaled processes derive their assignment from the current rollout rule; replacement processes must not accidentally expand the cohort. Keep the rollout salt fixed across stages and use stable logical allocation identities where replacements inherit membership. Hash thresholds provide approximate proportions, not an exact maximum count. If exposure needs a hard process cap, the controller must allocate a bounded set of activation slots and fence replacement ownership; hashing alone does not provide that guarantee.

7. Design the outage behavior deliberately

During a control-plane outage, existing processes retain their last validated ordinary tuning bundle under its declared policy. New processes require a trusted persisted or packaged startup bundle; they do not start with arbitrary defaults that bypass safety settings. For configurations with an expiry requirement, stop the affected operation when freshness cannot be established rather than pretending the old version is current.

A disconnected client cannot receive an emergency rollback. Bound its allowed exposure through freshness rules where the risk justifies sacrificing availability. A kill switch delivered over the same broken channel is not independent protection. Local limits such as maximum concurrency can cap damage even when centralized instructions are unavailable.

Controller restart reconstructs state from durable assignments and audit records. Rollback is a new monotonically ordered assignment, not deletion of history. Regional caches may serve immutable bundle bytes while refusing to invent a newer assignment. Recovery reconciles acknowledgements and health before resuming stages; it does not automatically continue a deployment that was unsafe before the outage.

8. Trade-offs, follow-ups and self-review

Polling costs predictable request volume and discovery latency; streaming improves latency but still needs reconciliation. Strict freshness reduces stale-policy risk but can stop useful work during outages. Small cohorts limit initial exposure but may miss rare behaviors. Immutable bundles simplify reproduction but require explicit resource transition logic.

Follow-ups: Can a rollback restore data already corrupted by a new setting? No; recovery needs a separate repair plan. Can every process switch at one instant during a partition? Not with continued independent availability. Should missing metrics count as success? No. Can a stale notification re-enable a rejected bundle? Not if assignment revisions are checked durably and startup reconciles with authoritative state.

Score 0–2 each for activation consistency, revision/content separation, compatibility migration, exposure arithmetic and partition behavior. A strong answer distinguishes intended assignment, actual activation and observed safety.

Sources and next steps

All protocols, examples and calculations here are original practice. Compare with configuration synchronization for intermittently connected devices, which focuses on a different connectivity and reconciliation contract.

Continue your preparation

Choose a connected learning path or browse more System design questions. Read our editorial method and attribution policy.