최신 Adobe Commerce AD0-E702 무료샘플문제:
1. You are developing a module and need to add another column to a table introduced by another module MyCompany_MyModule via db schema.
How do you do that?
A) Run a command: bin/magento setup:db-schema:upgrade <table> <column definition>
B) Create a etc/db_schema.xml file in your module, add the column and run bin/magento setup:upgrade
C) Create a etc/db_schema_whitelist.json file in your module, add the column and run bin/magento setup:upgrade
D) Create a etc/db.xml file in your module, add the column and run bin/magento setup:db-schema:upgrade
2. How do you set the custom block MyCompany\MyModule\Block\A as a child for the block named product.info using layout XML?
A) Option C
B) Option B
C) Option A
D) Option D
3. You are adding a new menu item to the admin backend which will link to a custom backend page.
The declaration of the route:
What do you specify as the menu item action attribute value so it links to /admin/mycompany/mymodule/?
A) action="adminhtml/mycompany/mymodule/"
B) It is not possible without extending the adminhtml route in routes.xml
C) action="admin/mycompany/mymodule/"
D) action="mycompany/mymodule/"
4. The constructor function for \Magento\Catalog\Model\Category contains this excerpt:
With the automatic dependency injection that Magento provides, how is the StoreManagerInterface resolved?
A) Magento looks to the di.xml files in the entire system for a preference node for
\Magento\Store\Model\StoreManagerInterface. This class is constructed and injected
B) Magento throws an exception because you cannot instantiate an interface
C) Magento finds all classes that implement \Magento\Store\Model\StoreManagerInterface (ordered alphabetically) and injects the first class.
D) If no $storeManager is provided, Magento's code generator creates a shell concrete class based on
\Magento\Store\Model\StoreManagerInterface
5. During a code review of a module MyCompany_PaymentCurrencies you see a configuration field declared in the file etc/adminhtml/system.xml:
What is the consequence of the attribute showInStore being set to 0?
A) The field value will not be accessible on the store front by calling ScopeConfigInterface::getValue() with a $scopeType argument of 'store'.
B) The input field will not be visible if a store view scope is selected in the system configuration
C) The input field will be disabled if a store view scope is selected in the system configuration
D) The input field will only be visible if a website's default store scope is selected in the system configuration
질문과 대답:
질문 # 1 정답: B | 질문 # 2 정답: B | 질문 # 3 정답: D | 질문 # 4 정답: A | 질문 # 5 정답: B |