Bird
0
0

You want to enable a new feature only for 10% of users using feature flags in Kubernetes. Which approach best supports this scenario?

hard📝 Workflow Q15 of 15
Kubernetes - Advanced Deployment Patterns
You want to enable a new feature only for 10% of users using feature flags in Kubernetes. Which approach best supports this scenario?
AUse a ConfigMap with a boolean flag set to true or false
BStore a percentage value in ConfigMap and let the app decide feature enablement per user
CUse a Secret to store the feature flag and update it daily
DDeploy two versions of the app and route 10% traffic to the new version
Step-by-Step Solution
Solution:
  1. Step 1: Understand percentage-based feature flags

    To enable a feature for a subset of users, the flag must support partial enablement, not just true/false.
  2. Step 2: Evaluate options

    Store a percentage value in ConfigMap and let the app decide feature enablement per user stores a percentage in ConfigMap; the app reads it and enables the feature for that percent of users dynamically.
  3. Final Answer:

    Store a percentage value in ConfigMap and let the app decide feature enablement per user -> Option B
  4. Quick Check:

    Percentage flags need app logic with ConfigMap value [OK]
Quick Trick: Use percentage value in ConfigMap for partial rollout [OK]
Common Mistakes:
  • Using boolean flags for partial user enablement
  • Relying on Secrets for feature flags
  • Thinking traffic routing replaces feature flags

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes