Magento Magento 2 Certified Associate Developer - Magento 2 Certified Associate Developer Exam
Page: 2 / 21
Total 102 questions
Question #6 (Topic: Topic 1)
What is the connection between product attribute sets and categories?
A. Categories have no connection to product attribute sets, and any product can be assigned to any category
B. Each category is linked to a single product attribute set, and only products from that attribute set are allowed in the category
C. Each category is linked to a single product attribute set, and only products from that categoryג€™s set or any of its parent categoriesג€™ sets are allowed
D. Categories can be connected to multiple product attribute sets, and only products from one of those sets are allowed in the category
Answer: D
Question #7 (Topic: Topic 1)
How can you access the select query of a collection?
A. You can only access the select query after the collection has been loaded by calling the public method query()
B. It is stored in a protected variable $query and can only be accessed from the inside of a collection class
C. You can get it by using public method getSelect() which returns an instance of Magento\Framework\DB\Select
D. The select query is not available in the collection class, it will be generated by the MySQL adapter right before executing a query
Answer: C
Question #8 (Topic: Topic 1)
You are developing a module MyCompany_StoreInfo to display information about brick and mortar stores on a frontend page. The displayed information varies
based on the country of a given store.
What two elements automatically render their children? (Choose two.)
based on the country of a given store.
What two elements automatically render their children? (Choose two.)
A. <block class=ג€\Magento\Framework\View\Element\AbstractBlockג€ name=ג€shop.info.detailsג€/>
B. <block class=ג€\Magento\Framework\View\Element\Templateג€ name=ג€shop.info.detailsג€/>
C. <container name=ג€shop.info.detailsג€/>
D. <block class=ג€\Magento\Framework\View\Element\Text\ListTextג€ name=ג€shop.info.detailsג€/>
Answer: CD
Question #9 (Topic: Topic 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?
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?
A. $collection->addFieldToFilter(ג€˜record_idג€™,[ג€˜inג€™=>$ids]); B. [Magento-Magento 2 Certified Associate Developer-1.0/xmlfile-6_1.png]
C. $collection->in($ids);
D. $collection->filterIn($ids);
Answer: A
Question #10 (Topic: Topic 1)
While reviewing a layout file named sales_order_view.xml you notice the element
<update handle=ג€customer_accountג€/>
What is the purpose of this element?
<update handle=ג€customer_accountג€/>
What is the purpose of this element?
A. Replaces the customer_account handle with sales_order_view
B. Nothing, this element has been deprecated
C. Adds the customer_account handle to the pageג€™s handles list
D. Updates the current page handle to customer_account
Answer: C