You are developing a module MyCompany_StoreInfo to display information about brick and mortar stores on a frontend page. The displayed information varies based on the country of a given store.
What two elements automatically render their children? (Choose two.)
A.
B.
C.
D.
Magento 2's architecture uses code to bootstrap a custom module that resides in app/code.
What two files are required to make a module usable? (Choose two.)
A. Helper/Data.php
B. etc/config.xml
C. etc/module.xml
D. registration.php
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 class
B. Change the getList parameter to: $searchCriteraBuilder->addFilter(`state','processing')->create()
C. Clear generated code to get a new version of SearchCriteriaBuilder
D. Specify a preference in di.xml to map SearchCriteriaBuilder to SearchCriteriaInterface
\Magento\Sales\Model\Api\OrderRepositoryInterface::getList accepts a SearchCriteriaInterface to filter and sort information.
What class assists in creating an instance for SearchCriteriaInterface?
A. \Magento\Framework\Api\SearchCriteriaFactory
B. \Magento\Framework\Api\SearchCriteriaBuilder
C. \Magento\Sales\Model\Order\SearchCriteria
D. \Magento\Backend\Api\SearchCriteriaGenerator
What is a valid use case for an around plugin?
A. The execution of the pluginized method must be suppressed
B. The arguments of the before plugins must be modified
C. The arguments of the after plugins must be modified
D. The execution of the before and after plugins must be suppressed
A merchant tasks you to keep sales managers out of the system configuration backend pages.
How do you do that using the admin interface?
A. You remove access to the restricted pages from each user's ACL settings
B. You create a role with limited permissions and assign all sales manager users to the new role
C. This is not possible in a native Magento instance and requires customization
D. You create a role with access to the system configuration pages and assign it to all users except the sales managers
You added a new constructor argument to an existing action controller class.
When you reload the page you get a PHP error that the wrong argument is passed to the class.
How do you fix this?
A. Clean the page cache
B. Deploy static content
C. Clean the
D. Clean the config cache
You need to find all orders in the processing state. You have written the code:
When you run the code, you get the following exception:
How do you resolve the exception?
A. Specify a preference in di.xml to map SearchCriteriaBuilder to SearchCriteriaInterface
B. Use dependency injection to load an instance of the SearchCriteria class
C. Change the getList parameter to: $searchCriteriaBuilder->addFilter(`state', `processing')->create()
D. Clear generated code to get a new version of SearchCriteriaBuilder
You are working on a custom web API endpoint and have configured it in etc/webapi.xml. This config is cached as part of the config_webservice cache type.
Keeping performance in mind, how do you refresh the cached version of this config using Magento CLI?
A. cache:clean config_webservice
B. cache:refresh config_webservice
C. cache:flush
D. cache:purge
You are adding a new entry to the backend menu that appears after Marketing > SEO and Search > Site Map
You see the existing site map menu item is declared by the node:
What two actions do you take to configure the new menu entry location? (Choose two.)
A. Specify item XML in the file etc/adminhtml/menu/marketing/seo/menu.xml
B. Specify parent="Magento_Sitemap::catalog_sitemap"
C. Specify parent="Magento_Backend::marketing_seo"
D. Specify sortOrder="100"