Start here. This is the direct spoken answer to practice first.
Why this question matters
Interviewers ask this because adding tests is easy; choosing the cheapest test that can reveal the real failure is the engineering decision.
I start with the behavior and the boundary that could fail. Pure business rules fit unit tests. Framework wiring, persistence, serialization, or authentication need integration tests. Contracts protect compatibility between services, component tests protect UI behavior, and a few end-to-end tests protect critical user journeys. I prefer the lowest test level that can fail for the right reason.