You have created a module controller that responds to the following URL: /mycompany/product/load/id/123.
Which two methods will load the product model by ID as specified in the URL? (Choose two.)
A. MagentoCatalogModelResourceModelProduct::load($productModel, $id)
B. MagentoCatalogModelResourceModelProductCollection::load()->fetchById($id)
C. MagentoCatalogModelResourceModelProductCollection::fetchItemById($id)
D. MagentoCatalogApiProductRepositoryInterface::getById($id)
Answer: A and D
Answer: A and D
In Magento fetchById and fetchItemById not found
Correct answer A and D
https://magento.stackexchange.com/questions/94851/magento2-how-to-load-product-by-id
A and D is correct
\Magento\Catalog\Model\ResourceModel\Product::load
\Magento\Catalog\Api\ProductRepositoryInterface::getById
There is no such thing like fetchById or fetchItemById