Start here. This is the direct spoken answer to practice first.
Why this question matters
Route handlers are useful, but they can become a confusing second backend if the boundary is unclear. This drill tests practical ownership.
I would use a route handler when the frontend server needs to protect tokens, read secure cookies, adapt backend errors, aggregate a page-specific response, or hide backend topology from the browser. The browser calls the route handler, and the route handler calls the ASP.NET API with the right credentials. The backend API still owns domain rules, authorization, validation, and data integrity.