How do you pass an array [`one', `two] as a parameter to you block using the layout XML arguments directive?
A. Option A
B. Option B
C. Option C
D. Option D
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
You are updating a module to add extra functionality to the Magento application, Where would Magento look for modules?
A. app/code/VendorName/ModuleName
B. vendor/vendor-name/module-name
C. app/vendor/vendor-name/module-name
D. lib/vendor-name/module-name
A merchant gives you the module MyCompany_MyModule to install.
How do you identify which REST endpoints are supported by the module?
A. REST endpoints are declared in etc/webapi_rest/di.xml
B. Every public method of every interface in the Api folder automatically is exposed as a REST endpoint
C. REST endpoints are declared in etc/rest.xml
D. REST endpoints are declared in etc/webapi.xml
What is the connection between product attribute sets and categories?
A. Categories have no connection to product attribute sets, and any product can be assigned to any category
B. Each category is linked to a single product attribute set, and only products from that attribute set are allowed in the category
C. Each category is linked to a single product attribute set, and only products from that category's set or any of its parent categories'
D. Categories can be connected to multiple product attribute sets, and only products from one of those sets are allowed in the category
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 have been given the task of importing products from an external source. You decide to create a custom module to do this. The class handling the import creates a product for each record, sets the data on it and saves it to the database.
What do you inject into a constructor to represent each product you create?
A. \Magento\Catalog\Model\Product
B. \Magento\Catalog\Api\Data\ProductInterfaceFactory
C. \Magento\Catalog\Api\Data\ProductInterface
D. \Magento\Catalog\Model\ProductBuilder
You need to add a new text attribute to all products in the Magento store. When this attribute is displayed on the product page, its values must be different depending on the selected language.
Keeping simplicity in mind, how do you add this attribute?
A. Use the Magento CLI to create a new custom attribute, then generate dictionaries for all supported languages
B. Use a Data Patch to create a new EAV attribute
C. Add a new column to the catalog_product_entity table using declarative schema
D. Use the admin panel to create a new extension attribute
\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
In a custom module you implement the interface \Magento\Framework\App\Config\DataInterface.
What version constraint for magento/framework do you add to your module's composer.json file?
A. major
B. minor
C. patch
D. stable