NestJS · Dependency Injection · Senior · Scenario
Scenario: two implementations of the same interface for A/B payments.
Short Interview Answer
Bind different tokens or use a factory that selects strategy from config/feature flag.
Detailed Explanation
Avoid conditional logic scattered in domain services — strategy pattern via DI keeps it clean.