Hilt Scopes & Components

ARCHITECTURE › Dependency Injection

Drills Hilt's component hierarchy, scope annotations, lifecycle mapping, and scoping pitfalls.

Hilt scoping is a staple of Android DI interviews because misusing scopes is the most common source of memory leaks and stale state in real apps. Interviewers test whether you can name each component, match it to its scope annotation and lifecycle, and reason about when a binding should be scoped versus unscoped. Expect questions probing why a wrongly scoped dependency leaks an Activity or shares state incorrectly across ViewModels.

What this covers

Study this topic

Further reading