Free AD0-E703 Exam Braindumps (page: 9)

Page 8 of 34

\Magento\Sales\Model\Api\OrderRepositoryInterface::getList accepts a SearchCriteriaInterface to filter and sort information.
What class assists in creating an instance for SearchCriteriaInterface?

  1. \Magento\Framework\Api\SearchCriteriaFactory
  2. \Magento\Framework\Api\SearchCriteriaBuilder
  3. \Magento\Sales\Model\Order\SearchCriteria
  4. \Magento\Backend\Api\SearchCriteriaGenerator

Answer(s): B



Which method of a Magento resource model will remove a record from the database?

  1. remove
  2. erase
  3. clean
  4. delete

Answer(s): D



In a code review of a merchant's site you have discovered that there are multiple observers for the checkout_submit_all_after event. After closer inspection, you notice one of these observers is relying on the others being executed before it is called.
What risk does this pose, and how can it be mitigated?

  1. There is no risk posed as long as each event observer specifies a correct sortOrder. Nothing needs to be changed.
  2. Event observers are fired in alphabetical order of the observer name. There is no risk here.
  3. Magento only supports one observer per event. These observers will need to be combined into a single point of customization.
  4. Order of listener execution cannot be guaranteed, resulting in a fragile implementation. This code should be re-worked using plugins

Answer(s): D



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

  1. \Magento\Catalog\Model\ResourceModel\Product::load($productModel, $id)
  2. \Magento\Catalog\Model\ResourceModel\Product\Collection::load()->fetchById($id)
  3. \Magento\Catalog\Model\ResourceModel\Product\Collection::fetchItemById($id)
  4. \Magento\Catalog\Api\ProductRepositoryInterface::getById($id)

Answer(s): B,D






Post your Comments and Discuss Adobe AD0-E703 exam with other Community members:

AD0-E703 Discussions & Posts