What is a consequence of this setup?

A third-party module uses a layout update that changes the template path for a core block from product/view/addto/compare.phtml of the Magento_Catalog module to custom/view/addto/compare.phtmlof your custom module. The merchant has a customized version of this template in their custom theme. What is a consequence of this setup?A . If the custom module is removed,...

What is the public URL for this file?

In the module located at app/code/MyCompany/MyModulethere is a JS module in the file view/frontend/web/register.js. The Magento base URL is https://magento.host/and the luma theme with the en_US locate is used. What is the public URL for this file?A . https://magento.host/pub/static/frontend//Magento/luma/en_US/MyCompany_MyModule/js/register.jsB . https://magento.host/pub/static/frontend/Magento/luma/en_US/MyCompany_MyModule/register.jsC . https://magento.host/pub/static/frontend/Magento/luma/en_US/MyCompany_MyModule/web/register.jsD . https://magento.host/app/code/MyCompany_MyModule/view/frontend/web/register.js View Answer Answer: A Explanation: Reference: https://devdocs.magento.com/guides/v2.3/javascript-dev-guide/javascript/js-resources.html...

How is this one?

Products may be accessed using SEO friendly URLs like /my-product instead of /catalog/product/view/id/ {ID} How is this one?A . An event observer adds RewriteRules to .htaccess on product saveB . MagentoCatalogControllerProductView::loadByUrlKey loads product pages using the url_key attribute valueC . Using a URL Rewrite stored in the database connecting the request path with the...

Which three actions do you specify in a module’s Data Patch to add a customer notes attribute?

A merchant tasked you to add an input field for notes to the Customer Account Information backend page. Which three actions do you specify in a module’s Data Patch to add a customer notes attribute? (Choose three.)A . $cache->clean();B . $customerSetup->addAttribute(‘customer’, ‘notes’, $options);C . $customerSetup->getConnection()->addColumn(‘customer_entity’, ‘notes’, $columnSpecs);D . $notesAttribute->setData(‘used_in_forms’, );E . $customerSetup->addAttributeToSet(‘customer’, $attributeSetIdCustomer,...

Which two methods will load the product model by ID as specified in the URL?

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) View Answer Answer: BD Explanation: Reference: https://magento.stackexchange.com/questions/94851/magento2-how-to-load-product-by-id...

How is this accomplished?

You are developing a new theme which inherits from the Magento_Luma theme. How is this accomplished?A . Add Magento/luma to theme.xmlB . Run the CLI command bin/magento dev:theme:inherit Magento_LumaC . Specify the parent theme in Magento admin > Design > ConfigurationD . Add Magento/luma to etc/view.xml View Answer Answer: A Explanation: Reference: https://www.mageants.com/blog/how-to-create-custom-theme-in-magento-2.html...