How would the developer achieve this?
An Adobe Commerce developer has a requirement to add some settings which are unique to a specific system and it will be dumped to app/etc/env.php when theCLI command php bin/magento app:config:dump is used. How would the developer achieve this? A) B) C) A . Option AB . Option BC ....
Keeping best practices in mind, what is a correct way to accomplish this?
An Adobe Commerce developer is asked to implement a 15% surcharge for all users from a Wholesale' customer group. Keeping best practices in mind, what is a correct way to accomplish this?A . Create a Cart Price Rule that applies only to the "Wholesale’ group. Specify no conditions for the...
If you want to create layout XML instructions for this controller, what would be the layout XML's filename?
You see this code in etc/adminhtml/routes.xml: <route id="mymodule" frontName="user-subscriptions"> <module name="MyCompany_MyModule" /> </route> You have placed a controller in Controller/Index/Subscribe.php. If you want to create layout XML instructions for this controller, what would be the layout XML's filename?A . mymodule_index_subscribe.xmlB . mymodule_subscribe_[ACTION NAME].xmlC . user_subscriptions_index_subscribe.xmlD . user_subscriptions_subscribe_[ACTION NAME].xmlView AnswerAnswer: A
Which mechanism do you use?
A custom module needs to log all calls of MagentoCustomerApiAddressRepositoryInterface::save(). Which mechanism do you use?A . An observer on the customer_address_repository_save event, which is automatically fired for every repository saveB . A proxy configured to intercept all calls to any public method and log themC . An extension attribute configured...
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...
What is the problem with this xml snippet?
An Adobe Commerce developer adds a new extension attribute to add an array of values to the invoices that are fetched through the APIs. After a while, their technical manager reviews their work and notices something wrong with the extension_attributes.xml file that the developer created in their module: extension_attributes for="MagentoSalesHotelOrderInvoiceRepository">...
How would an Adobe Commerce developer implement this?
A customer is creating a new website, store and store view that will have a new category structure. How would an Adobe Commerce developer implement this?A . All stores have unique category structures, select which root category to duplicate to the new store during creation.B . Create a new root...
Which code would be added to the module's view/adminhtml/ui_component/product_listing.xmlfile?
A client wants to change the look and behavior of the products thumbnails in the products grid on the admin panel. Which code would be added to the module's view/adminhtml/ui_component/product_listing.xmlfile? A) B) C) A . option AB . option BC . option CView AnswerAnswer: A
How do you resolve the exception?
You need to find all orders in the processing state. You have written the code: How do you resolve the exception?A . Use dependency injection to load an instance of the SearchCriteria classB . Change the getList parameter to: $searchCriteraBuilder->addFilter(‘state’,’processing’)->create()C . Clear generated code to get a new version of...
How do you supply the default value for that configuration option?
In a custom module you are adding a new field to the store configuration. The field will set the value for the configuration path mycompany/mymodule/myoption. How do you supply the default value for that configuration option?A . In the config/default/mycompany/mymodule/myoption node in the etc/config.xml fileB . In the system/mycompany/group/mymodule/field/myoption node...