Exit AD0-E703 Adobe Certified Expert - Magento Commerce Developer
Question 4 of 5
0% complete
Q4 Multiple choice

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.)

Select all that apply.

  • A

    \Magento\Catalog\Model\ResourceModel\Product::load($productModel, $id)

  • B

    \Magento\Catalog\Model\ResourceModel\Product\Collection::load()->fetchById($id)

  • C

    \Magento\Catalog\Model\ResourceModel\Product\Collection::fetchItemById($id)

  • D

    \Magento\Catalog\Api\ProductRepositoryInterface::getById($id)