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

Page: 1 / 14
Total 103 questions
Question 1

Assume that $collection is a new instance of a class that extends

Magento\Framework\Model\ResourceModel\Db\Collection\AbstractCollection, and $ids is an array of ids.

How do you select a list of records from the database where the record ids are in the $ids list?



Answer : A


Question 2

What is a valid use case for an around plugin?



Answer : D


Question 3

There are two different configurable products which both share one variation. The shared variation is represented by the same simple product.

A customer added both configurables to the cart with the same selected variation?

How will they be displayed?



Answer : B


Question 4

Which two ways does Magento persist category relationships in the database? (Choose two.)



Answer : B, C


Question 5

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?



Answer : C


Question 6

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 7

You need to find all orders in the processing state. You have written the code:

When you run the code, you get the following exception:

How do you resolve the exception?



Answer : C


Page:    1 / 14   
Total 103 questions