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\ProductBuilder
B. \Magento\Catalog\Model\Product
C. \Magento\Catalog\Api\Data\ProductInterfaceFactory
D. \Magento\Catalog\Api\Data\ProductInterface
正解:C
質問 2:
How many shipping addresses may be selected for an order during the checkout process?
A. One shipping addresses per unit of quantity is possible
B. One shipping address per line item is possible
C. Only one shipping address per order is possible
D. One shipping address per product type is possible
正解:C
質問 3:
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. Order of listener execution cannot be guaranteed, resulting in a fragile implementation. This code should be re-worked using plugins
B. Magento only supports one observer per event. These observers will need to be combined into a single point of customization.
C. There is no risk posed as long as each event observer specifies a correct sortOrder. Nothing needs to be changed.
D. Event observers are fired in alphabetical order of the observer name. There is no risk here.
正解:A
質問 4:
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 <magento_root>/generated/ folder
B. Clean the page cache
C. Deploy static content
D. Clean the config cache
正解:A
質問 5:
You have configured an event observer to watch the checkout_submit_all_after event using this XML:

What is the required class definition for the event observer?

A. Option C
B. Option A
C. Option D
D. Option B
正解:D
質問 6:
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. etc/config.xml
B. Helper/Data.php
C. registration.php
D. etc/module.xml
正解:C,D
質問 7:
Assume that a customer's cart only includes one downloadable product.
What effect will it cause on the quote object?
A. The quote object will have a downloadable URL instead of an address
B. The quote object will not have shipping address
C. The quote object will not have a billing address
D. The quote object will not have any address
正解:B
質問 8:
You need to render a product attribute's raw value as a variable in a script tag. This value
will be used to initialize an application on the frontend.
How do you render this value?
A. <?= $block->escapeJs($value) ?>
B. <?= $block->escapeJsVar($value) ?>
C. <?= $block->escapeHtml($value) ?>
D. <?= $block->renderJs($value) ?>
正解:A
1193 お客様のコメント





上*咲 -
苦手な分野をしっかりと克服して総合力を身に着けていきたいところです・・・。