What are two functions of a resource model? (Choose two.)

What are two functions of a resource model? (Choose two.)A . It executes create, retrieve, update and delete actions for an entityB . It loads lists of entity modelsC . It is made available in the Magento API for the purpose of data manipulationD . It maps an entity to...

February 23, 2022 No Comments READ MORE +

Keeping upgradability in mind, how do you make MyCompanyMyModuleLogger the default implementation of the LoggerInterface globally?

You are implementing a custom module MyModule, which provides an implementation of PsrLogLoggerInterface called MyCompanyMyModuleLogger. The LoggerInterface has the default preference declared in app/etc/di.xml. Keeping upgradability in mind, how do you make MyCompanyMyModuleLogger the default implementation of the LoggerInterface globally?A . Declare a new preference for the LoggerInterface in app/code/myCompany/MyModule/etc/frontend/di.xmlB...

February 23, 2022 No Comments READ MORE +

How do you specify the class that will process the uploaded file?

A merchant requires the ability to configure contact information for their brick and mortar stores as a CSV file upload. The module already exists and contains an etc/adminhtml/system.xml file where the new field can be added. How do you specify the class that will process the uploaded file?A . <upload_model>MagentoConfigModelConfigUploadFile</upload_model>B...

February 23, 2022 No Comments READ MORE +

How do you implement the common functionality in the event observers, keeping maintainability and testability in mind?

You are implementing a customization of the sales management within a module MyCompany_MySalesProcess. You have created several event observers to add the custom functionality. Each observer is a separate class, but they require some common functionality. How do you implement the common functionality in the event observers, keeping maintainability and...

February 23, 2022 No Comments READ MORE +

You have created a module to show manufacturer-list, but in your page need to show Pagination that already ready in your block. Keeping maintainability in mind, where you call echo $block->getPagerHtml();?

You have created a module to show manufacturer-list, but in your page need to show Pagination that already ready in your block. Keeping maintainability in mind, where you call echo $block->getPagerHtml();?A . /Manufacturer/view/frontend/templates/content.phtmlB . /Manufacturer/Block/Index.phpC . /Manufacturer/Controller/Index/Index.phpD . /Manufacturer/view/frontend/layout/manufacturer_index_index.xmlView AnswerAnswer: A

February 23, 2022 No Comments READ MORE +

Where do you define the class that provides options for the select field that enables or disables the provider in the file etc/adminhtml/system.xml?

A Magento industry partner shipping provider has tasked you to build their integration module called MyCompany_ShippingProvider. Where do you define the class that provides options for the select field that enables or disables the provider in the file etc/adminhtml/system.xml?A . <option_model>MagentoConfigModelConfigOptionYesno</option_model>B . <source_model>MagentoConfigModelConfigSourceYesno</source_model>C . <frontend_model>MagentoConfigModelConfigFrontendYesno</frontend_model>D . <backend_model>MagentoConfigModelConfigBackendYesno</backend_model>View AnswerAnswer: B

February 23, 2022 No Comments READ MORE +

What file contains the controller class for the frontend path /mymodule/custom?

Your module, MyCompany_MyModule, is using the frontName mymodule. You need to locate the class responsible for the frontend path /mymodule/custom. What file contains the controller class for the frontend path /mymodule/custom?A . Controller/Custom/Index.phpB . Controller/Custom.phpC . Controller/MyModule/Custom/Index.phpD . Controller/Frontend/MyModule/Custom.phpView AnswerAnswer: A

February 22, 2022 No Comments READ MORE +

What table does Magento on the frontend to locate the relationship between a category and its products?

You are trying to determine why a product is not appearing in a category. What table does Magento on the frontend to locate the relationship between a category and its products?A . catalog_category_productB . catalog_product_parentC . catalog_category_product_indexD . catalog_category_product_relationshipView AnswerAnswer: A

February 22, 2022 No Comments READ MORE +

In which file do you declare the observer?

A module MyModule needs to send notifications to customers only when the account was modified from a mobile app using the REST web APIs. You decided to implement an observer for customer_save_after_data_object event. In which file do you declare the observer?A . etc/webapi_rest/events.xmlB . etc/adminhtml/events.xmlC . etc/webapi/rest_events.xmlD . etc/events.xmlView AnswerAnswer:...

February 22, 2022 No Comments READ MORE +

A customer added both configurables to the cart with the same selected variation?

There are two different configurable products which both share one variation. The shared variation is represented by the same simple product. A customer added both configurables to the cart with the same selected variation? How will they be displayed?A . As two separate line items with quantity 1 eachB ....

February 21, 2022 No Comments READ MORE +