The interview problem

Practice prompt

A request reads several feature flags while their configuration changes. Prevent inconsistent combinations and keep assignment stable across services.

Original practice, not a reported company interview. Scenarios and numbers are illustrative. Interview date: not applicable. Sources retrieved October 1, 2026.

1. Scope and worked approach

Assume a versioned flag snapshot and explicit evaluation context. Capture one snapshot at request entry and propagate its version where consistency is required. Evaluate dependencies with cycle detection and typed defaults. Use stable documented bucketing inputs for percentage rollout, keeping tenant/user identity boundaries clear. Record evaluated version and reason without logging unnecessary personal attributes. Configuration delivery and evaluation are separate concerns.

2. Trace the design or derivation

Capture configuration version
  → normalize context
  → resolve dependencies
  → evaluate
  → record reason

Cross-service snapshot propagation needs a retention policy for recent versions. If a downstream service cannot load the requested version, it should follow a declared fail-closed, fail-open or retry rule for that flag's risk class. Quietly using its latest version would break the consistency promise precisely during rollout races.

3. Calculate the example

For 10,000 uniformly distributed bucket values and a 15% rollout threshold, 1,500 buckets are eligible. Increasing to 20% adds 500 buckets if the hash and salt stay fixed; changing the salt can reshuffle existing membership instead. This is a bucket count, not a guarantee that exactly 15% of a small user sample is enabled.

4. Failure cases and trade-offs

Independent snapshot reads can enable a dependent flag while disabling its prerequisite. Missing attributes can route users to an unintended default. Pinning snapshots improves coherence but delays fresh emergency changes; define which kill switches override the ordinary snapshot contract and how that is audited.

5. Validation, follow-ups and self-review

Test dependency cycles, absent context, salt changes and mid-request updates. Follow-up: how are long-running workflows pinned or migrated? Reward typed fallback, stable assignment and an explicit emergency-override rule.

Sources and related practice

Technical reference: openfeature.dev — Typed flag evaluation and context; request snapshot contract is the proposed extension.

Source publication/update: Not established. Retrieved October 1, 2026. The workflow, calculations and review exercises are original; this reference is not evidence that a company asked this question.

Continue with Roll out server configuration safely; Design an experimentation assignment and exposure platform.

Continue your preparation

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