Adobe Certified Professional Magento Commerce Developer Sample Questions:
1. 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/module.xml
B) registration.php
C) Helper/Data.php
D) etc/config.xml
2. How can you render a text on a page using only layout xml?
A) Option D
B) Option B
C) Option C
D) Option A
3. How can you access the select query of a collection?
A) You can get it by using public method getSelect() which returns an instance of Magento\Framework\DB\Select
B) You can only access the select query after the collection has been loaded by calling the public method query()
C) The select query is not available in the collection class, it will be generated by the MySQL adapter right before executing a query
D) It is stored in a protected variable $query and can only be accessed from the inside of a collection class
4. A merchant requires the ability to configure contact information for their brick and mortar stores as a CSV file upload. The module already exists and contains an etc/adminhtml/system.xml file where the new field can be added.
How do you specify the class that will process the uploaded file?
A) <source_model>\Magento\Config\Model\Config\Source\File</source_model>
B) <upload_model>\Magento\Config\Model\Config\Upload\File</upload_model>
C) <frontend_model>\Magento\Config\Model\Config\Frontend\File</frontend_model>
D) <backend_model>\Magento\Config\Model\Config\Backend\File</backend_model>
5. 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="mycompany/mymodule/"
B) action="adminhtml/mycompany/mymodule/"
C) action="admin/mycompany/mymodule/"
D) It is not possible without extending the adminhtml route in routes.xml
Solutions:
| Question # 1 Answer: A,B | Question # 2 Answer: C | Question # 3 Answer: A | Question # 4 Answer: D | Question # 5 Answer: A |

We're so confident of our products that we provide no hassle product exchange.


By Kerwin


