Magento 2 Certified Associate Developer Magento-2-Certified-Associate-Developer Exam Practice Test

Page: 1 / 14
Total 103 questions
Question 1

In layout files you can change al element's order on a page. This can be done using one of the following:

instruction

before and after element attributes?

How are two methods different?



Answer : D


Question 2

Your module adds a new controller class which will return a JSON response.

What will be the return type of the execute method?



Answer : C


Question 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/?



Answer : D


Question 4

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?



Answer : B


Question 5

How do you add a foreign key to an existing table created by another module?



Answer : B


Question 6

While developing a module you need to modify an existing Data Patch.

How can you force Magento to execute an existing Data Patch file again?



Answer : B


Question 7

How do you pass an array ['one', 'two] as a parameter to you block using the layout XML arguments directive?



Answer : A


Page:    1 / 14   
Total 103 questions