What scopes are available for customer attributes?
A. Global only
B. Website only
C. Global and Website
D. Global, Website and Store
You have created a module controller that responds to the following URL: /mycompany/product/load/ id/123.
Which two methods will load the product model by ID as specified in the URL? (Choose two.)
A. \Magento\Catalog\Model\ResourceModel\Product::load($productModel, $id)
B. \Magento\Catalog\Model\ResourceModel\Product\Collection::load()->fetchById($id)
C. \Magento\Catalog\Model\ResourceModel\Product\Collection::fetchItemById($id)
D. \Magento\Catalog\Api\ProductRepositoryInterface::getById($id)
In a code review of a merchant's site you have discovered that there are multiple observers for the checkout_submit_all_after event. After closer inspection, you notice one of these observers is relying on the others being executed before it is called.
What risk does this pose, and how can it be mitigated?
A. There is no risk posed as long as each event observer specifies a correct sortOrder. Nothing needs to be changed.
B. Event observers are fired in alphabetical order of the observer name. There is no risk here.
C. Magento only supports one observer per event. These observers will need to be combined into a single point of customization.
D. Order of listener execution cannot be guaranteed, resulting in a fragile implementation. This code should be re-worked using plugins
Which method of a Magento resource model will remove a record from the database?
A. remove
B. erase
C. clean
D. delete
\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
The module MyCompany_MyModule will add a new page to the admin interface at the URL path admin/ mycompany/entity_grid.
How do you name the file containing the action controller class so the admin router matches the path to the class?
A. Controller/Adminhtml/Entity/Grid/Index.php
B. Controller/Adminhtml/Mycompany/Entity/Grid.php
C. Controller/Adminhtml/Entity/Grid.php
D. Controller/Adminhtml/Mycompany/Entity_Grid.php
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.xml
B. etc/adminhtml/events.xml
C. etc/webapi/rest_events.xml
D. etc/events.xml
You are tasked to install an extension to the merchant's Magento instance.
The extension is developed by the company called MyCompany and its codebase is available from all four locations listed below.
Which two installations options do you choose from to prevent version conflicts during upgrade? (Choose two.)
A. Clone the code from GitHub and put it into the vendor directory
B. Download the extension code from the developer's website, and put it into app/code
C. Use Magento web setup wizard to pull the code from Magento's composer repository
D. Use composer CLI to pull the code from MyCompany's repository
You are developing a new theme which inherits from the Magento_Luma theme. How is this accomplished?
A. Add Magento/luma to theme.xml
B. Run the CLI command bin/magento dev:theme:inherit Magento_Luma
C. Specify the parent theme in Magento admin > Design > Configuration
D. Add Magento/luma to etc/view.xml
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
Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only Magento exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your MAGENTO2-CERTIFIED-ASSOCIATE-DEVELOPER exam preparations and Magento certification application, do not hesitate to visit our Vcedump.com to find your solutions here.