Magento 2 Certification Questions List | Which layer for custom url

A merchant asks you to create a module that is able to process URLs with a custom structure that can contain any combination of a product type code, a partial name, and a 4-digit year in any order.

The request path will look like this: /product/:type-code/:name-part/:year

Which layer in the Magento request processing flow is suited for this kind of customization?

Question from https://u.magento.com/free-study-guide