You are reviewing a custom observer for the event sales_order_save_after which is fired when an order is placed on the storefront. The observer is sending a remote request to an analytics system with the order data.
What issue may this observer cause?
A. This event will not be fired if the order is placed through the WebAPI
B. The payment status is not available at the moment when the order is saved
C. The final price for the order is not available on the sales_order_save_after event
D. In case of an error in the observer the order will not be saved in the database
正解:D
質問 2:
A furniture merchant have 100k products in the store. In a custom product list page, he advised you to enable the caching as per user paginate the products. So what should the approach to cache the block data as per pagination request:
A. In block class _construct() method, set _isScopePrivate property to false as per requested page number.
B. In block class toHtml() method, set _isScopePrivate property to false as per requested page number.
C. In block class toHtml() method, define cache_lifetime, cache_tags and cache_key_<current_page_here>
D. In block class _construct() method, define cache_lifetime, cache_tags and cache_key_<current_page_here>
正解:D
質問 3:
You are starting a project and realized you need to clean the content of a container. How do you achieve this?
A. YOU create a view/layout/mycompany_mymodule_index. xmlWith the referenceContainer and remove all the blocks by adding remove name='*' />
B. YOU create a view\layout override/mycoapany_mymodule_index. xml and add the new blocks to the referenceContainer to override the previous ones
C. The layout merging logic will override a container if you reference the container and load your module after the original one using sequence in your module. xml
D. You create a view/layout/mycompany_mymodule_index. xml and add a referenceContainer. You will then remove the existing blocks one by one
正解:B
質問 4:
You are working on a new feature to allow multiple vendors for various products. To display vendors you add a custom fieldset component and select with the name myCompanyVendors. It will be shown if the number of vendors is more than one.
To do this you implement a custom method on your component:

How do you cause the method to be called when the value of options change?
A)

B)

C)

D)

A. Option C
B. Option A
C. Option D
D. Option B
正解:D
質問 5:
You want to add an additional validation rule, allowed_symbols, to the telephone field on the Checkout Address form. You have created the validation rule and added it to the Magento_Ui/js/lib validation validator instance.
What action is required to complete the task?
A. Add your validation rule name to the Magento\checkout\Model\validation\Pool class, $validationRules array parameter with the key telephone
B. Add the validation rule name to the checkout_index_index layout in the telephone validation path
C. Add your validation rule to the Magento_Checkout/js/element/validation validator instance
D. Create a mixin on the validateShippinginformation method to add your rule
正解:A
質問 6:
Suppose there are 3 classes: Class A, B and C. Class C have dependecy of Class A You need to overrride/change an argument of class A, create an object of it and inject in Class B in such a way that it should not affect the class C. What should be the magento standard way to do this:
A. In module's etc/menu.xml, define virtualType node to override argument and create a subclass of A. Then use type node to pass the subclass A object into class B.
B. In module's etc/system.xml, define virtualType node to override argument and create a subclass of A. Then use type node to pass the subclass A object into class B.
C. In module's etc/config.xml, define virtualType node to override argument and create a subclass of A. Then use type node to pass the subclass A object into class B.
D. In module's etc/di.xml, define virtualType node to override argument and create a subclass of A. Then use type node to pass the subclass A object into class B.
正解:D
質問 7:
You are troubleshooting an issue where a related product rule is not showing the product expected by a user. You run this command:
bin magento cache:clean target_rule
What impact does this have?
A. Cached select statements will be cleared from the Magento cache
B. Products to Display calculation will be cleared from the Magento cache
C. Cached select statements will be cleared from action_select column of the magento_targetrule table
D. HTML output of target rule blocks will be cleared from the Magento cache
正解:C
質問 8:
Consider below example of etc/di.xml: Magento\Filesystem\Adapter\Local Please select correct statement based on shared="false" attribute in the example:
A. Magento\Filesystem is not shared, so no clients will retrieve any instances of Magento\Filesystem. Also, no instance of Magento\Filesystem will get any instance of $adapter, because it is non-shared too.
B. None of these.
C. Magento\Filesystem is not shared, so all clients will retrieve same instances of Magento\Filesystem. Also, every instance of Magento\Filesystem will get same instance of $adapter, because it is non-shared too.
D. Magento\Filesystem is not shared, so all clients will retrieve separate instances of Magento\Filesystem. Also, every instance of Magento\Filesystem will get separate instance of $adapter, because it is non-shared too.
正解:D
Morishita -
本日、試験を受験し、無事で合格できました。
ありがとうございました!大体理解できたと思います!試験受かりました!