You have created a new section in system configuration under the Catalog tab:
How do you restrict an access to the section using Magento ACL?
A. Option C
B. Option A
C. Option D
D. Option B
正解:D
質問 2:
You want to declare a block of the type \Magento\Framework\View\Element\Template with a template named view.phtml in the layout XML.
What is the correct layout declaration for this?
A. Option C
B. Option A
C. Option D
D. Option B
正解:C
質問 3:
You have added a new attribute origin of the type varchar to the product entity.
Which two calls will filter a product collection with origin set to "California"? (Choose two.)
A. $collection->joinAttribute('origin', 'catalog_product/origin', 'origin', 'California");
B. $collection->addAttributeToFilter('origin', "California");
C. $collection->addFieldToFilter('origin', "California");
D. $collection->addAttributeToSelect('origin', "California");
正解:B,C
質問 4:
You are writing a customization for the customer module. You need to make sure the configuration files from your module are loaded after the customer module's configuration.
Where should the dependency be declared?
A. etc/config.xml
B. etc/di.xml
C. composer.json
D. etc/module.xml
正解:C
質問 5:
You are implementing a before plugin in MyCompany_Magic. It will intercept the same method that MyCompany_Admission is already intercepting using a before plugin: Topmenu::getBlockHtml Which two actions are required to ensure the new plugin will execute last? (Choose two.)
A. Add MyCompany_Admission as a dependency in MyCompany_Magic's etc/module.xml file
B. Include a sortOrder="20" on the new plugin in MyCompany_Magic's etc/di.xml file
C. Configure plugin sequencing for both plugins in MyCompany_Magic's etc/plugin_sequence.xml file
D. Set a sortOrder="10" for MyCompany_Admission's plugin in MyCompany_Magic's etc/di.xml
正解:B,D
質問 6:
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.php
B. Controller/Adminhtml/Mycompany/Entity/Grid.php
C. Controller/Adminhtml/Mycompany/Entity_Grid.php
D. Controller/Adminhtml/Entity/Grid/Index.php
正解:C
Matsumoto -
解答があるのは非常に良い。解説もまとまってる。問題自体は難しくないようなのでこれ1冊だけでいけるのではないかと思います。