You are setting up a brand new Magento installation for a merchant who is migrating from Magento 1 to Magento 2.
Keeping in mind upgradability and the need to customize, which one do you choose?
A. Create a new Magento instance using composer create-project
B. Clone the magento/magento2 GitHub repository
C. Run php bin/magento setup:migrate
D. Create a new Magento instance by using the bin/magento install command
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. Create a etc/db_schema.xml file in your module, add the column and run bin/magento setup:upgrade
B. Create a etc/db.xml file in your module, add the column and run bin/magento setup:dbschema:upgrade
C. Run a command: bin/magento setup:db-schema:upgrade [table]
D. Create a etc/db_schema_whitelist.json file in your module, add the column and run bin/magento setup:upgrade
What is a valid use case for an around plugin?
A. The execution of the pluginized method must be suppressed
B. The arguments of the before plugins must be modified
C. The arguments of the after plugins must be modified
D. The execution of the before and after plugins must be suppressed
Your module, MyCompany_MyModule, is using the frontName mymodule. You need to locate the class responsible for the frontend path /mymodule/custom.
What file contains the controller class for the frontend path /mymodule/custom?
A. Controller/Custom/Index.php
B. Controller/Custom.php
C. Controller/MyModule/Custom/Index.php
D. Controller/Frontend/MyModule/Custom.php
What order operation is available in the My Account section in the storefront?
A. Edit order
B. Refund
C. Reorder
D. Invoice
The module MyCompany_MyModule provides custom admin interface pages.
Access to these pages should only be granted to specific users.
You add the required configuration to the module's acl.xml file, but the setting does not seem to work as expected.
How do you visually check if Magento evaluates your ACL resource as expected?
A. Write a plugin for the class \Magento\Framework\Acl\LoaderInterface::populateAcl() and echo out the loaded roles
B. Inspect the output of the CLI command bin/magento admin:role:resources ?all
C. In the browser, open the admin User Roles page. Choose a role and inspect the tree of available resources
D. Inspect the response of a GET request to the webapi endpoint http://example.com/rest/V1/acl/ resources
You are working on a custom web API endpoint and have configured it in etc/webapi.xml. This config is cached as part of the config_webservice cache type.
Keeping performance in mind, how do you refresh the cached version of this config using Magento CLI?
A. cache:clean config_webservice
B. cache:refresh config_webservice
C. cache:flush
D. cache:purge
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. Register my_module route for the AdminRouter in MyCompany/MyModule/etc/adminhtml/di.xml
B. Create a new menu item in MyCompany/MyModule/etc/adminhtml/menu.xml
C. Specify the my_module/custom_entity URL using a @route annotation in the action controller execute() method
D. Register my_module route in MyCompany/MyModule/etc/adminhtml/routes.xml
A merchant gives you the module MyCompany_MyModule to install.
How do you identify which REST endpoints are supported by the module?
A. REST endpoints are declared in etc/webapi_rest/di.xml
B. Every public method of every interface in the Api folder automatically is exposed as a REST endpoint
C. REST endpoints are declared in etc/rest.xml
D. REST endpoints are declared in etc/webapi.xml
You are working on a Magento store which will be selling in two countries. Each country has its own set of payment methods.
How do you organize the project to support this requirement?
A. Create one website, two payment scopes
B. Create one website, one store view
C. Create one website, two store views
D. Create two websites, two store views