1. When would you use viewModelScope vs lifecycleScope vs GlobalScope?
Interview promptStrong signal
Discusses scope ownership, cancellation propagation, and why GlobalScope is rarely correct.
Follow-up probes
- •How do you handle errors across coroutines?
- •What about flow collection?
Red flags
- •Uses GlobalScope as default.
- •Ignores cancellation.