Which file is used to add a custom router class to the list of routers?
Which file is used to add a custom router class to the list of routers?A . routes.xml B. di.xml C. config.xmlView AnswerAnswer: A Explanation: The routes.xml file is used to define the list of routers for Adobe Commerce. A custom router class can be added to the list of routers...
A developer is creating a class VendorModuleModelMyModeL How should that class be defined as transient in di.xml?
A developer is creating a class VendorModuleModelMyModeL How should that class be defined as transient in di.xml?A . <type name="VendorModuleModelMyModer transient="true7> B. <type name="VendorModuleModelMyModer singleton='false7> C. <type name='VendorModuleModelMyModer shared="false7>View AnswerAnswer: C Explanation: In Magento 2's di.xml, if you want to define a class as transient (meaning a new instance is...
What does a URL Rewrite do?
What does a URL Rewrite do?A . It updates the URL that is stored on the server. B. It changes the way a URL appears in the browser C. It updates the URL to a domain that is not being Indexed.View AnswerAnswer: B Explanation: A URL rewrite changes the way...
Which two actions will the developer need to take to translate strings added in JS files? (Choose two.)
Which two actions will the developer need to take to translate strings added in JS files? (Choose two.)A . define ([ 'jquery, 'mage/translate' ), function ($, $t) {.„»; B. $ trans( ,<string>') C. $.mage._('<string>); D. translate('<string>');View AnswerAnswer: A, C Explanation: To translate strings added in JS files, the developer needs...
How should a developer display a custom attribute on the category edit page in the admin panel when a new module Vendor.Category is created?
How should a developer display a custom attribute on the category edit page in the admin panel when a new module Vendor.Category is created?A . Create view/adminhtml/layout/catalog_category_edit xml in the module, and then define a block that would display the field for the attribute. B. The field for the attribute...
Which action, if any, should be taken to forbid Adobe Commerce Admin from performing specific actions?
Which action, if any, should be taken to forbid Adobe Commerce Admin from performing specific actions?A . Create a new user role with custom-defined resources, and assign it to the admin user B. This action cannot be taken since all admin users must have full access. C. Enable custom roles...
Which property allows multiple cron jobs to share the same configuration?
Which property allows multiple cron jobs to share the same configuration?A . name B. group C. scheduleView AnswerAnswer: B Explanation: The group property allows multiple cron jobs to share the same configuration. The group property defines the name of the cron group that the cron job belongs to. A cron...
Which command invalidates the index?
Which command invalidates the index?A . bin/magento indexerreindex <index_name> B. bin/magento indexer:reset <index_name> C. bin/magento Indexerinvalldate <lndex_name>View AnswerAnswer: B Explanation: The command bin/magento indexer:reset <index_name> sets the status of the specified index to “Invalid”. This means that the index needs to be updated before it can be used by Magento1.
How should a grid or form be included in an admin page layout using the Ul Component?
How should a grid or form be included in an admin page layout using the Ul Component?A . <referenceContainername='content"> q <uiComponentname="example_listing.xml7> </referenceContainer> B. <referenceContainername='contenf> q <uiComponent name="example_listing7> </referenceContainer> C. <referenceContainername='content"> <uiComponentname="Vendor_Module::ul_component/example_listing.xml7> </referenceContainer>View AnswerAnswer: B Explanation: To include a grid or form in an admin page layout using the UI Component,...
What is the default store ID for the admin panel?
What is the default store ID for the admin panel?A . 0 B. 1 C. -1View AnswerAnswer: C