Magento 2 Certification Questions List | Create EAV programmatically

While integrating a merchant’s product information management system with Magento, you create a module MyCompany_MerchantPim that adds a catalog product EAV attribute pim_entity_idprogrammatically.

In which type of setup script do you create the EAV attribute?

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