Interview practice question
Feature flag conditionals everywhere
Backend Engineering · OOP and Design Patterns · Experienced
Your codebase has hundreds of if (featureFlag) checks scattered around, and old flags are never removed. How would you improve the design?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Flag decisions at boundaries.
- Strategy/polymorphism selected by flag once.
- Flag ownership and expiry dates.
- Automated stale-flag detection.
- Remove flags after rollout.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.