What are two functions of a resource model?

What are two functions of a resource model? (Choose two.)
A. It executes create, retrieve, update and delete actions for an entity
B. It loads lists of entity models
C. It is made available in the Magento API for the purpose of data manipulation
D. It maps an entity to one or more database rows

Download Printable PDF. VALID exam to help you PASS.

13 thoughts on “What are two functions of a resource model?

  1. Answer:- A and D

    as per https://devdocs.magento.com/guides/v2.3/architecture/archi_perspectives/persist_layer.html

    Magento uses an active record pattern strategy for persistence. In this system, the model object contains a resource model that maps an object to one or more database rows. A resource model is responsible for performing functions such as:

    Executing all CRUD (create, read, update, delete) requests. The resource model contains the SQL code for completing these requests.

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.