nerdexam
Magento

M70-201 · Question #54

Which three of the following will return an instance of a resource model? (Choose three)

The correct answer is A. Mage::getResourceModel( 'customer/customer1); B. Mage::getResourceSingleton('customer/customer'); E. Mage::getModel('customer/customer')->getResource(). See the full explanation below for the reasoning.

Question

Which three of the following will return an instance of a resource model? (Choose three)

Options

  • AMage::getResourceModel( 'customer/customer1);
  • BMage::getResourceSingleton('customer/customer');
  • CMage::getModel('customer/customer')->getResourceModel();
  • DMage::getResourceModel('customer/customer')->getInstance();
  • EMage::getModel('customer/customer')->getResource();
  • FMage:: getRe sour ceModel 'customer/customer' )->getRe source ();

How the community answered

(37 responses)
  • A
    78% (29)
  • C
    14% (5)
  • D
    3% (1)
  • F
    5% (2)

Community Discussion

No community discussion yet for this question.

Full M70-201 Practice