The module MyCompany_MyModule will add a new page in the admin interface to display a custom entity in a grid.
You created a controller for this grid \MyCompany\MyModule\Controller\Adminhtml\CustomEntity\Index
Which two actions are required to make the new page accessible at the https://your.store.base.url/admin/my_module/custom_entity URL? (Choose two.)
A. Specify the my_module/custom_entity URL using a @route annotation in the action controller execute() method
B. Register my_module route in MyCompany/MyModule/etc/adminhtml/routes.xml
C. Register my_module route for the AdminRouter in MyCompany/MyModule/etc/adminhtml/di.xml
D. Create a new menu item in MyCompany/MyModule/etc/adminhtml/menu.xml
正解:B,D
質問 2:
You have created a module to show manufacturer-list, Your customer need url as www.storeurl/manufacturer which file are mendatory to show correct url?
A. Controller: /Manufacturer/Controller/Index/Index.php
B. Templates:/Manufacturer/view/templates/content.phtml
C. Layout: Manufacturer/view/frontend/layout/index_index.xml
D. Block: /Manufacturer/Block/Index.php
E. Layout: Manufacturer/view/frontend/layout/manufacturer_index_index.xml
F. Layout: Manufacturer/view/frontend/layout/manufacturer.xml
正解:A,D,E
質問 3:
There is a custom extension called MyCompany_MyModule.
It has the following layout customization declared in MyCompany/MyModule/view/frontend/layout/default.xml:
<referenceContainer name="content">
<block class="Magento\Framework\View\Element\Template"
name="my.block"
template="MyCompany_MyModule::my_template.phtml"
cacheable="false"/>
</referenceContainer>
What will be the result of the customization?
A. my.block on the default landing page only will be cached using ESI.
B. Only the default landing page will be non-cacheable
C. my.block on the all store front pages will be cached using ESI
D. All store front pages will be non-cacheable
正解:D
質問 4:
An Adobe Commerce developer wants to cover their custom modules with Integration Tests. However, the project they are working on includes a 3rd party module that introduces a new search engine which needs to be used in Integration Tests as well. To do so. catalog/search/engine in the core.config_data table needs to be set to the customSearchEngine on the default scope.
Theyalready created a phpunit.xml file in [m2 base dir/dev/tests/integration by copying unmodified content of phpunit.xml.dist from the same directory and will be using it for their tests.
How do they make sure that this setting is used for all the Integration Tests in their project using best practices?
A. Include the following annotationin class-level docboack for event integration test class in the project:

B. Modify the phpunit.xml file they will be using and add the following node inside the phpunit node:

C. Modify or create a magento base dir]\ dev/test/integration/etc\config-global.php file and ensure that it contains the following content:

正解:C
質問 5:
You are reviewing a theme in app/design/frontend/MyCompany/MyTheme and see the file etc/view.xml.
What is the function of this file?
A. It configures Grunt to compile assets for the theme
B. It informs Magento that the theme is present and available for use
C. It specifies the applicable CSS files for the theme
D. It stores theme and image configuration values
正解:D
質問 6:
Magento allows you to specify custom values per store for product attributes created in the admin panel.
Which architectural pattern makes it possible?
A. Store Manager
B. Dependency Injection
C. Extension Attribute
D. Entity Attribute Value
正解:D
質問 7:
A module you are working on needs to send a newsletter to all subscribed customers at predefined intervals.
Which two actions do you take to make sure the newsletter is sent? (Choose two.)
A. Implement \MyCompany\MyModule\Cron\NewsLetterSender::execute and register it in etc/crontab/di.xml
B. Make sure bin/magento cron:run is added to the system crontab
C. Implement \MyCompany\MyModule\Cron\NewsLetterSender::execute and register it in etc/crontab/.xml
D. Register the plugin for \Magento\Customer\Model\Customer::authenticate in etc/crontab.xml
正解:B,C
Kitami -
試験の内容がそのまま掲載されているので、見やすく、AD0-E709勉強しやすい本だと思いました。