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

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?

Correct Answer: C
Question 2
You have created a new section in system configuration under the Catalog tab:

How do you restrict an access to the section using Magento ACL?

Correct Answer: B
Question 3
You are creating a new page layout for your custom module.
What is the primary difference between container and block elements?

Correct Answer: C
Question 4
A Magento industry partner shipping provider has tasked you to build their integration module called MyCompany_ShippingProvider.
Where do you define the class that provides options for the select field that enables or disables the provider in the file etc/adminhtml/system.xml?

Correct Answer: B
Question 5
You are working on a jewelry store that sells rings. Each ring allows an adjustment in size. The customer specifies finger size in inches and the merchant physically adjusts the stocked ring to the required size.
How is this represented in Magento?

Correct Answer: B
Question 6
A module MyModule needs to send notifications to customers only when the account was modified from a mobile app using the REST web APIs.
You decided to implement an observer for customer_save_after_data_object event.
In which file do you declare the observer?

Correct Answer: D