Deck 1: Magento Certified Developer

Full screen (f)
exit full mode
Question
Which one of the following API protocols does native Magento support?

A) XmlRpc
B) REST
C) POST
D) Open Social
E) XQuery
Use Space or
up arrow
down arrow
to flip the card.
Question
Which method is called on a shipping carrier model to fetch a list of all available shipping methods, along with the rates associated with them, for a quote address?

A) collectShippingRates ( )
B) getAllowedMethods ( )
C) getShippingRates ( )
D) getAvailableRates ( )
E) collectRates ( )
Question
Which one of the following statements is true regarding Mage_Core_Block_Text_List?

A) Mage_Core_Block_Text_List declares its own template for rendering, but the rendered template can be overridden via layout XML.
B) Child blocks of Mage_Core_Block_Text_List are always rendered alphabetically by name.
C) Mage_Core_Block_Text_List will always render all children automatically when it is rendered.
D) Mage_Core_Block_Text_List directly extends Mage_Core_Block_Template
E) In order to render, the parent block of Mage_Core_Block_Text_List must always be an output block.
Question
Which two of the following methods can be used to bad an entity's data from its configured data table? (Choose two)

A) $entityModel->loadEntity ($id)
B) $entityModel->load ($attributeValue, $attributeCode)
C) $entityModel->loadById ($id)
D) $entityModel->loadEntity ($attributeCode, $attributeValue)
E) $entityModel->load ($id)
Question
Which object never encapsulates any shopping cart items?

A) Mage_Checkout_Model_Cart
B) Mage_Sales_Model_Quote
C) Mage_Sales_Model_Quote_Address
D) Mage_Sales_Model_Quote_Address
Question
Which one of the following class types directly charges a credit card when you capture an invoice in Magento admin?

A) Order
B) Payment
C) Invoice
D) payment_method
Question
Which statement correctly describes order state and order status?

A) State and status are independent properties of the order.
B) The status is a child of the state.
C) State represents the general state of the order, while status works on item level.
D) An order doesn't have a status, only a state. Status is a property of an invoice, shipment, and credit memo.
Question
Which of the following items is NOT utilized in Magento's implementation of EAV-based data models?

A) An entity table for storing the entities' basic information
B) One or more tables to store the entities' associated pieces of information
C) A two-column cross-link table to associate attribute values with a corresponding entity
D) Foreign keys on each relevant table to connect relevant pieces of information at the database level
E) An attribute table that defines what data (and of what type) may be stored on a particular entity
Question
Which three of the following conditions should exclude a quote item from the shipping rate calculation by a carrier model? (Choose three)

A) $quoteItem->getFreeShipping ( ) = = true
B) $quoteItem->getProduct ( )->isVirtual ( ) = = true
C) $quoteItem->getweight ( ) > 0
D) $quoteItem->isShipSeparately ( ) && SquoteItem->getHasChildren( )
E) $quoteItem( )->getQty ( ) < Mage::getStoreConfig('carriers/tablerate/min_shipping_qty')
Question
Inside the XML node config/global/blocks, what is the correct xpath for rewriting the catalog/product_view block?

A) catalog/rewrite/product/view
B) catalog_product/rewrite/view
C) catalog/product/rewrite/view
D) catalog/product_view/rewrite
E) catalog/rewrite/product_view
F) catalog_product_view/rewrite
Question
What is the difference between the base_grand_total and grand_total attributes of the order?

A) base_grand_total is a grand total before tax is applied; grand_total is the grand total after tax is applied.
B) base_grand_total is the grand total at the moment of order submission; grand_total is the grand total at the moment of order closing.
C) base_grand_total is the grand total in the currency of the store where the order was submitted; grand_total is in US dollars always.
D) base_grand_total is in a base currency and grand_total is in the currency of the website where the order was submitted.
Question
Applying the shopping cart rule's action affects the quote item by setting the quote item's _____________.

A) base_price and price properties with the discounted price
B) base_discount_amount and discount_amount with the discount applied to the original price
C) base_row_total and row_total properties with the discounted price
D) base_price_incl_tax and price_incl_tax properties with the discounted price
Question
Which of the following is a true statement about how Magento loads data for an EAV-based data model?

A) A data helper is used in order to properly load an object's attributes from the database.
B) EAV-based data models use a different abstract resource class than other data models.
C) The attribute values are loaded into an attribute collection object.
D) You must always specify each of the attributes to be loaded on the model.
Question
Which four of these xml elements are used in system.xml to configure a system configuration property? (Choose four)

A) backend_model
B) admin_model
C) frontend_model
D) source_model
E) source_type
F) show_in_store
Question
Which of the following options would cause a poll/poll collection to load all entities that have been posted during April, 2011? <strong>Which of the following options would cause a poll/poll collection to load all entities that have been posted during April, 2011?  </strong> A) Option A B) Option B C) Option C D) Option D <div style=padding-top: 35px>

A) Option A
B) Option B
C) Option C
D) Option D
Question
Which two of the following will return an instance of a block object? (Choose two) <strong>Which two of the following will return an instance of a block object? (Choose two)  </strong> A) Option A B) Option B C) Option C D) Option D E) Option E F) Option F <div style=padding-top: 35px>

A) Option A
B) Option B
C) Option C
D) Option D
E) Option E
F) Option F
Question
The final price for the product on the product view page is__________.

A) taken from the catalog_product_index_price table
B) taken from the catalog_product_index_price_idx table
C) taken from the catalog_product_index_price_f inal_idx table
D) calculated on-the-fly on php-level
E) pre-calculated in the products price attribute
Question
Which two of the following are supported in the native Magento API? (Choose two)

A) partial void
B) partial invoice
C) partial capture
D) partial refund
E) partial shipment
Question
What happens when you edit an existing order using the order management page?

A) A form appears that allows you to edit all information on the current order.
B) A form appears that allows you to edit shipping information of the current order only.
C) Depending on the order status, different editing forms appear for the current order.
D) The current order is canceled and a new order is created from scratch based on the current order's data.
Question
Which of the following API calls allows you to fetch the list of related products using the native Magento API?

A) catalog_product_link.list, with arguments $type='related', $product_id
B) catalog_product.list, with arguments $type='related', $product_id
C) catalog_product_related.list, with argument $product_id
D) catalog_product_option.list, with arguments $type=' related', $product_id
Question
How many items will be added to the quote after adding a configurable product to the shopping cart?

A) the number of options
B) the number of options+1
C) always 1
D) always 2
Question
Which of the following will NOT generate a
Question
Which one of the following is responsible for sending a remote request to the payment service when capturing an order?

A) Payment Info
B) Order Payment
C) Payment Method
D) Invoice
Question
You want to define a list of quote object attributes that are copied to the order object when an order is placed. Which one of the following statements is true?

A) You can define this list by modifying the list of elements found in the configuration with the xpath global/fieldsets/sales_convert_quote.
B) You can define this list by modifying the list of elements found in the configuration with the xpath global/sales/quote/item/product_attributes.
C) You can define this list by checking the checkbox on the attribute edit page in the admin.
D) You cannot modify the list of fields copied from quote to order because the process is hardcoded.
Question
A valid way to extend Mage_Adminhtml_Cms_PageController with the Acme_Cms_Adminhtml PageController class would be to set the following configuration; <strong>A valid way to extend Mage_Adminhtml_Cms_PageController with the Acme_Cms_Adminhtml PageController class would be to set the following configuration;   Which of the following code pairs should be inserted in the blank spots in the code shown above?</strong> A) Mage_Adminhtml, Acme_Cms_Adminhtml B) Mage_Adminhtml, Acme_Cms_Adminhtml_PageController C) Mage_Adminhtml_Cms_PageController, Acme_Cms_Adminhtml D) Mage_Adminhtml_Cms_PageConttroller, Acme_Cms_Adminhtml_PageController <div style=padding-top: 35px> Which of the following code pairs should be inserted in the blank spots in the code shown above?

A) Mage_Adminhtml, Acme_Cms_Adminhtml
B) Mage_Adminhtml, Acme_Cms_Adminhtml_PageController
C) Mage_Adminhtml_Cms_PageController, Acme_Cms_Adminhtml
D) Mage_Adminhtml_Cms_PageConttroller, Acme_Cms_Adminhtml_PageController
Question
<strong>  The checkbox Use default value is checked and the corresponding input field is disabled, as shown in the graphic above. How does Magento represent this state in the corresponding EAV value tables?</strong> A) no row with a value for this store view and a row with value NULL for default B) no row with a value for this store view and a row with any value for default C) a row with value NULL for this store view and a row with value NULL for default D) a row with value NULL for this store view and a row with any value for default E) no row with a value for this store view and no row with a value for default <div style=padding-top: 35px> The checkbox "Use default value" is checked and the corresponding input field is disabled, as shown in the graphic above. How does Magento represent this state in the corresponding EAV value tables?

A) no row with a value for this store view and a row with value NULL for default
B) no row with a value for this store view and a row with any value for default
C) a row with value NULL for this store view and a row with value NULL for default
D) a row with value NULL for this store view and a row with any value for default
E) no row with a value for this store view and no row with a value for default
Question
When you register an event observer, which two of the following pieces of information are required for it to function? (Choose two)

A) method (or function) name
B) method (or function) arguments
C) class name
D) object type (singleton, model, none, etc)
E) call order
F) active/inactive status
Question
Which of the following block methods is the best to override when there is a need to customize how the block's html is rendered?

A) _toHtml ( )
B) toHtml ( )
C) setLayout ( )
D) renderLayout ( )
Question
Which of the following lines includes a payment method object?

A) $quote->getShippingAddress ( )->setPaymentMethod(isset ($data['method']) ? $data['method'] : null); inside Mage_Checkout_Model_Type_Onepage
B) public function setPayment(Mage_Sales_Model_Quote_Payment $payment) inside Mage_Sales_Model_Quote
C) $method = $this->getMethodInstance ( ); inside Mage_Sales_Model_Quote_Payment
D) $instance->setInfoInstance($this); inside Mage_Payment_Model_Info
Question
Which class is extended to render a dropdown in admin forms?

A) Mage_Adminhtml_Block_Widget
B) Mage_Core_Block_Abstract
C) Mage_Adminhtml_Block_Abstract
D) Mage_Adminhtml_Block_Template
E) Varien_Data_Form_Abstract
Question
When setData ('some', 'value') is called on an EAV entity and the entity is saved to the database, __________________.

A) the 'value' of the attribute named 'some' is saved in the eav_values table
B) the 'value' of the attribute named ' some' is saved in one of the entity's tables depending on its datatype (for example, entityname_varchar)
C) the data will be stored in the EAV registry making ' some' 'value' available to the entity
D) the 'value' of the attribute named 'some' is saved in the eav_attribute_values table
Question
Which statement describes a model class that extends Mage_Core_Model_Abstract?

A) The model class consists of properties and methods for storing and manipulating data retrieved via separate resource classes responsible for database operations.
B) The model class is responsible for loading the frontend layout templates and responding to page requests via its Action methods (for example, indexAction).
C) The model class does not encapsulate any logic except for logic providing access to the data loaded from the database.
D) The model class is primarily responsible for direct query operations such as retrieving and storing data and then rendering that data to the frontend view.
Question
To update your order information from a third-party system using an XmlRpc call, you should _______________.

A) use the native sales_order.update API call with the url/api/xmlrpc/
B) create a custom API resource which allows you to receive XmlRpc requests
C) create a custom API adapter to receive XmlRpc requests
D) create a custom API handler to process XmlRpc requests
Question
Which method is responsible for a full re-index in the abstract Magento indexer?

A) fullReindex ( )
B) reindexAH ( )
C) processEvent ( )
D) reindex ( )
Question
Which table stores information about the relationship between configurable products and their child products?

A) catalog_product_link
B) catalog_product_super_link
C) catalog_product_option
D) catalog_product_relation
Question
In what order are the routers from the Magento core checked for a matching route? Default: Mage_Core_Controller_Varien_Router_Default CMS: Mage_Cms_Controller_Router Standard: Mage_Core_Controller_varien_Router_Standard Admin: Mage_Core_Controller_Varien_Router_Admin

A) Admin, Standard, CMS, Default
B) Default, CMS, Standard, Admin
C) Admin, CMS, Standard, Default
D) Standard, Admin, Default, CMS
Question
Which of the following is the default setup script class name?

A) Mage_Core_Model_Mysql4_Setup
B) Mage_Core_Model_Resource_Setup_Default
C) Mage_Setup_Model_Resource_Default
D) Mage_Core_Model_Resource_Setup
Question
Which of the following actions will enable logging via calls to debugData( ) on a native Magento payment method model?

A) Set the protected property $_debug of the payment model to true
B) Set the config node default/payment/debug/[method  code] to 1
C) Call Mage:: register ('payment_method_debug_' . [method code], true);
D) Set the config node default/payment/ [method code]/debug to 1
E) Call setDebug(true) on the payment method model
Question
Which one of the following controller classes could respond to this URL?: http://example.com/modulename/controller/index

A) Namespace_ModuleName_IndexControllet
B) Namespace_ModuleName_Controller_ControllecInclex
C) Namespace_ModuleName_Controller_IndexController
D) Namespace_Modulename_ControllerController
Question
In which table could you find the current order state?

A) sales_flat_order
B) sales_flat_order_state
C) sales_flat_order_status
D) sales_flat_order_status_history
Question
Which three of the following object types will have a parent class found in the Mage_Eav module for the purposes of EAV data storage in Magento? (Choose three)

A) data model
B) data helper
C) resource model
D) resource collection
E) setup class
Question
You want to display a grid for a custom collection. After extending Mage_Adminhtml_Block_widget_Grid, which two of these methods should you implement? (Choose two)

A) _getCollection ( )
B) _prepareCollection ( )
C) _prepareColumns ( )
D) toHtml ( )
E) render ( )
Question
Which two public methods must be implemented in a functional custom shipping method directly extending Mage_Shipping_Model_Carrier_Abstract and also implementing Mage_Shipping_Model_Carrier_Interface? (Choose two)

A) collectRates ( )
B) getAllowedMethods ( )
C) isTrackingAvailable ( )
D) isFixed ( )
E) getConfigData ( )
F) checkAvailablesnipCountries ( )
Question
Which one of the following declares a Layout XML file? <strong>Which one of the following declares a Layout XML file?  </strong> A) Option A B) Option B C) Option C D) Option D <div style=padding-top: 35px>

A) Option A
B) Option B
C) Option C
D) Option D
Question
Which of the following xpaths defines the correct XML structure for informing Magento that your module has install scripts?

A) global/resources/etc/setup//module
B) system/database/resources//setup/module
C) global/resources//setup/module
D) database/action/scripts/
Question
When changes are made to more than one of a collection's items using setData ('some', 'value'), which of the following methods will save the changes in the collection?

A) $collection->saveAll ( );
B) $collection->saveItems ( );
C) $collection->saveAllItems ( );
D) $collection->save ( );
Question
You have used the "refresh"' action on the cache management page for the block html cache type. Which of the following types of cache record would be cleared?

A) all cache records containing HTML code
B) items for block classes extending Mage_Core_Block_Template only
C) items having at least one of the tags found in the configuration under the xpath global/cache/types/block_html/tags
D) block class items with expired lifetime
Question
The initial call to ______________ will create and return an instance of the specified class. Subsequent calls to this method during the same execution cycle will return the same class instance as opposed to creating a new one.

A) Mage::getResourceModel ('namespace/modulename');
B) Mage::getInstance ('namespace/modulename');
C) Mage::getModel ('modulename/modelname');
D) Mage::getSingleton ('modulename/modelname');
Question
To implement a standard Adminhtml form for a custom data model, which two of the following must you do? (Choose two)

A) Declare your module's block class prefix in the config.xml file.
B) Implement a sub-class of Mage_Adminhtml_Block_widget_Form.
C) Implement a sub-class of Mage_Adminhtml_Block_Form_Abstcact.
D) Create sub-classes of Mage_Adminhtml_Block_Form_Element_Abstract for each form field to be presented.
E) Add a set of configuration values in the module's config.xml defining the form fields to be displayed,
Question
How can you update a third-party system with every new order created in Magento?

A) Use the native sales_order.update API call.
B) Use a sales_order_place_after API call.
C) Create an observer in Magento on the sales_order_place_after event.
D) Customize the third-party system to listen to Magento's sales__order_place_after event.
Question
Which two EAV attribute frontend_input types make use of source models? (Choose two)

A) text
B) textarea
C) select
D) multiselect
E) date
F) gallery
Question
Given a grid interface that extends from Mage_Adminhtml_Block_widget_Grid, which of the following methods could you override to allow data to be loaded from a custom data collection?

A) _prepareDataModel
B) _prepareCollection
C) _initDataModel
D) _initGrid
Question
What does Magento use to determine whether the automatically run upgrade scripts have been run yet?

A) The modification date on the modules' etc/config.xml file
B) The version number (or lack thereof) stored in the core_module_version table
C) The version number (or lack thereof) stored in the core_resource table
D) A comparison of the resources that are capable of successfully loading
Question
Which of the following layout XML directives will set a value on a block? <strong>Which of the following layout XML directives will set a value on a block?  </strong> A) Option A B) Option B C) Option C D) Option D E) Option E <div style=padding-top: 35px>

A) Option A
B) Option B
C) Option C
D) Option D
E) Option E
Question
Which of the following methods will force an EAV resource collection model to include an attribute in its result set?

A) addAttributeToSelect ($attribute);
B) getResource ( ) ->addAttribute($attribute);
C) addFieldToSelect ($attribute);
D) getSelect ( )->from ( ' ', $attribute);
E) addAttributeToCollection ($attribute);
Question
You want to filter a product collection so that it will return only SKUs 12 and 123. You will use a call to $collection->addFieldToFilter ('sku', ____________ ); Two of the following arrays could be used to complete that call correctly. Which two? (Choose two)

A) array ('sku' => 12, 'sku' => 123)
B) array (array ('eq' => 12), array ('eq' => 123) )
C) array (12 => true, 123 => true)'
D) array (12, 123)
E) array (array ('int' => 12), array ('int' => 123) )
Question
How can you make a payment method store entire credit card numbers?

A) For security reasons, there are no native ways for doing that.
B) Pass the credit card number to the payment method: it will be stored automatically.
C) Change the protected property of payment method $_canSaveCc to true.
D) Configure your method to save the card number by setting 1 to the following xpath:  default/payment/_NAME_/save_cc
Question
What is the basic class/interface for every model observer class?

A) Mage_Model_Config_Observer
B) Mage_Core_Model_Event_Observer_Abstract
C) Mage_Core_Model_Event_Observer_Interface
D) There is no required inheritance.
E) Varien_Object
Question
When the Magento configuration is being loaded, all the XML files in app/etc and the module registration files under app/etc/modules/ are loaded first. After that step, in which order are the following items loaded? 1. Configuration from the core_config_data DB table 2. app/etc/local.xml 3. The etc/config.xml of all active modules

A) 1, 3, 2
B) 3, 1, 2
C) 3, 2, 1
D) 1, 2, 3
Question
You want to implement a custom attribute source model. Which method do you have to implement after extending Mage_Eav_Model_Entity_Attribute_Source_Abstract?

A) getOptionText ( )
B) getAllOptions ( )
C) getOptionHash ( )
D) getOptionId ( )
Question
To register a new API resource, what should you do?

A) Register your new resource in config.xml in the node global/api/ [module name]/resources.
B) Create etc/api.xml and register your resource in the api/resources node.
C) Go to the System/Web services/API Resources management page, and add a new resource from there.
D) Create an etc/resources.xml config file and register your resource in the api/resources node.
Question
What must be done to allow a third-party system to access the Magento API?

A) Run a login call with username/password, and use the returned session_id for every request.
B) Get a token previously generated in Magento admin.
C) Run an authenticate call with username/password; the call will set up a session automatically.
D) Register the remote IP address in the api/allowed_ips/ [system name] node.
E) Use a secure certificate, with public/private keys, and get a private key installed inside Magento.
Question
By enabling Flat catalog, you will ____________.

A) speed up performance on the frontend
B) speed up saving product on the backend
C) simplify the product import process
D) speed up loading product on the backend
Question
Which three of the following will return an instance of a resource model? (Choose three)

A) Mage::getResourceModel ('customer/customer');
B) Mage::getResourceSingleton ('customer/customer');
C) Mage::getModel ('customer/customer') ->getResourceModel ( );
D) Mage::getResourceModel ('customer/customer')->getInstance ( );
E) Mage::getModel ('customer/customer') ->getResource ( );
F) Mage::getResourceModel ('customer/customer') ->getResource( );
Question
A native Magento EAV entity will use_____________.

A) A single table with separate columns for each data type (for instance, decimal, text, varchar, etc.)
B) A single table with separate columns for all data types used by the entity
C) A separate table for each data type (for instance, decimal, text, varchar, etc.)
D) A separate table for each data type in addition to a flat data table with separate columns to store values for each data type used by the entity
Question
Two modules, Foo and Moo, both rewrite the catalog/product model, but only the Moo module's rewrite is being used. Both modules Foo and Moo reside in the community code pool. Which two approaches allow the functionality from both classes to be used? (Choose two)

A) Copy Foo_Model_Product to the local code pool.
B) Copy Moo_Model_Product to the local code pool and merge the logic from Foo_Model_Product into it.
C) Copy Moo_Model_Product to the local code pool and make it extend Foo_Model_Product, making sure the logic of both classes does not conflict.
D) Copy Moo_Model_Product to the local code pool.
E) Change the rewrite directive of the Moo module to rewrite foo/product instead of catalog/product.
Question
Which of the following payment methods' payment actions creates an invoice during the "place order" step?

A) Mage_Payment_Model_Method_Abstract::ACTION_AUTHORIZE
B) Mage_Payment_Model_Method_Abstract::ACTION_CAPTURE
C) Mage_Payment_Model_Method_Abstract::ACTION_AUTHORIZE_CAPTURE
D) Mage_Payment_Model_Method_Abstract::ACTION_INVOICE
Question
In which config areas are layout files declared? (Choose two)

A)
B)
C)
D)
E)
Question
How can you restrict access to a custom API resource?

A) Only by creating a new role under System/Web Services/Roles
B) By setting up an ACL in etc/api.xml and creating a new role for it in System/Web Services/Roles
C) Only by extending Mage_Api_Controller_Action and overriding the _isAllowed method
D) By setting up an ACL in etc/adminhtml.xml and creating a new role in System/Permissions/Roles
Question
Assume you have product with qty in stock=1, and two people are trying to buy it at the same time. Which of the following statements is true?

A) Only one is able to add the product to the shopping cart. That person will be able to buy the product.
B) Only the person who starts checkout first will be able to buy the product.
C) Only the person who passes the payment step first will be able to buy the product.
D) Both persons can go to the Place Order step, but the one who places the order first will get the product.
E) Both persons will be able to complete the checkout, because both have local copies of the available inventory.
Question
Which model is responsible for calculating the taxes for the selected shipping rate?

A) shipping/rate_result
B) shipping/total_tax
C) tax/sales_total_quote_tax
D) the concrete shipping carrier model implementation
E) shipping/rate_request
Question
Which one of the following statements is true regarding layout update handles?

A) Layout update handles must always match a module_controller_action pattern such as catalog_product_view.
B) There may never be more than one layout update handle per request.
C) Layout update handles are declared at any level of the layout XML hierarchy.
D) A layout update handle may be specified as a string argument when calling loadLayout ( ).
Question
In admin, a shipment can be created ____________.

A) only after the whole order is invoiced
B) only after at least one item is invoiced
C) even before an invoice is created
D) only after tracking number(s) are specified
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/73
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 1: Magento Certified Developer
1
Which one of the following API protocols does native Magento support?

A) XmlRpc
B) REST
C) POST
D) Open Social
E) XQuery
XmlRpc
2
Which method is called on a shipping carrier model to fetch a list of all available shipping methods, along with the rates associated with them, for a quote address?

A) collectShippingRates ( )
B) getAllowedMethods ( )
C) getShippingRates ( )
D) getAvailableRates ( )
E) collectRates ( )
collectRates ( )
3
Which one of the following statements is true regarding Mage_Core_Block_Text_List?

A) Mage_Core_Block_Text_List declares its own template for rendering, but the rendered template can be overridden via layout XML.
B) Child blocks of Mage_Core_Block_Text_List are always rendered alphabetically by name.
C) Mage_Core_Block_Text_List will always render all children automatically when it is rendered.
D) Mage_Core_Block_Text_List directly extends Mage_Core_Block_Template
E) In order to render, the parent block of Mage_Core_Block_Text_List must always be an output block.
Mage_Core_Block_Text_List will always render all children automatically when it is rendered.
4
Which two of the following methods can be used to bad an entity's data from its configured data table? (Choose two)

A) $entityModel->loadEntity ($id)
B) $entityModel->load ($attributeValue, $attributeCode)
C) $entityModel->loadById ($id)
D) $entityModel->loadEntity ($attributeCode, $attributeValue)
E) $entityModel->load ($id)
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
5
Which object never encapsulates any shopping cart items?

A) Mage_Checkout_Model_Cart
B) Mage_Sales_Model_Quote
C) Mage_Sales_Model_Quote_Address
D) Mage_Sales_Model_Quote_Address
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
6
Which one of the following class types directly charges a credit card when you capture an invoice in Magento admin?

A) Order
B) Payment
C) Invoice
D) payment_method
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
7
Which statement correctly describes order state and order status?

A) State and status are independent properties of the order.
B) The status is a child of the state.
C) State represents the general state of the order, while status works on item level.
D) An order doesn't have a status, only a state. Status is a property of an invoice, shipment, and credit memo.
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
8
Which of the following items is NOT utilized in Magento's implementation of EAV-based data models?

A) An entity table for storing the entities' basic information
B) One or more tables to store the entities' associated pieces of information
C) A two-column cross-link table to associate attribute values with a corresponding entity
D) Foreign keys on each relevant table to connect relevant pieces of information at the database level
E) An attribute table that defines what data (and of what type) may be stored on a particular entity
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
9
Which three of the following conditions should exclude a quote item from the shipping rate calculation by a carrier model? (Choose three)

A) $quoteItem->getFreeShipping ( ) = = true
B) $quoteItem->getProduct ( )->isVirtual ( ) = = true
C) $quoteItem->getweight ( ) > 0
D) $quoteItem->isShipSeparately ( ) && SquoteItem->getHasChildren( )
E) $quoteItem( )->getQty ( ) < Mage::getStoreConfig('carriers/tablerate/min_shipping_qty')
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
10
Inside the XML node config/global/blocks, what is the correct xpath for rewriting the catalog/product_view block?

A) catalog/rewrite/product/view
B) catalog_product/rewrite/view
C) catalog/product/rewrite/view
D) catalog/product_view/rewrite
E) catalog/rewrite/product_view
F) catalog_product_view/rewrite
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
11
What is the difference between the base_grand_total and grand_total attributes of the order?

A) base_grand_total is a grand total before tax is applied; grand_total is the grand total after tax is applied.
B) base_grand_total is the grand total at the moment of order submission; grand_total is the grand total at the moment of order closing.
C) base_grand_total is the grand total in the currency of the store where the order was submitted; grand_total is in US dollars always.
D) base_grand_total is in a base currency and grand_total is in the currency of the website where the order was submitted.
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
12
Applying the shopping cart rule's action affects the quote item by setting the quote item's _____________.

A) base_price and price properties with the discounted price
B) base_discount_amount and discount_amount with the discount applied to the original price
C) base_row_total and row_total properties with the discounted price
D) base_price_incl_tax and price_incl_tax properties with the discounted price
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
13
Which of the following is a true statement about how Magento loads data for an EAV-based data model?

A) A data helper is used in order to properly load an object's attributes from the database.
B) EAV-based data models use a different abstract resource class than other data models.
C) The attribute values are loaded into an attribute collection object.
D) You must always specify each of the attributes to be loaded on the model.
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
14
Which four of these xml elements are used in system.xml to configure a system configuration property? (Choose four)

A) backend_model
B) admin_model
C) frontend_model
D) source_model
E) source_type
F) show_in_store
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
15
Which of the following options would cause a poll/poll collection to load all entities that have been posted during April, 2011? <strong>Which of the following options would cause a poll/poll collection to load all entities that have been posted during April, 2011?  </strong> A) Option A B) Option B C) Option C D) Option D

A) Option A
B) Option B
C) Option C
D) Option D
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
16
Which two of the following will return an instance of a block object? (Choose two) <strong>Which two of the following will return an instance of a block object? (Choose two)  </strong> A) Option A B) Option B C) Option C D) Option D E) Option E F) Option F

A) Option A
B) Option B
C) Option C
D) Option D
E) Option E
F) Option F
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
17
The final price for the product on the product view page is__________.

A) taken from the catalog_product_index_price table
B) taken from the catalog_product_index_price_idx table
C) taken from the catalog_product_index_price_f inal_idx table
D) calculated on-the-fly on php-level
E) pre-calculated in the products price attribute
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
18
Which two of the following are supported in the native Magento API? (Choose two)

A) partial void
B) partial invoice
C) partial capture
D) partial refund
E) partial shipment
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
19
What happens when you edit an existing order using the order management page?

A) A form appears that allows you to edit all information on the current order.
B) A form appears that allows you to edit shipping information of the current order only.
C) Depending on the order status, different editing forms appear for the current order.
D) The current order is canceled and a new order is created from scratch based on the current order's data.
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
20
Which of the following API calls allows you to fetch the list of related products using the native Magento API?

A) catalog_product_link.list, with arguments $type='related', $product_id
B) catalog_product.list, with arguments $type='related', $product_id
C) catalog_product_related.list, with argument $product_id
D) catalog_product_option.list, with arguments $type=' related', $product_id
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
21
How many items will be added to the quote after adding a configurable product to the shopping cart?

A) the number of options
B) the number of options+1
C) always 1
D) always 2
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
22
Which of the following will NOT generate a
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
23
Which one of the following is responsible for sending a remote request to the payment service when capturing an order?

A) Payment Info
B) Order Payment
C) Payment Method
D) Invoice
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
24
You want to define a list of quote object attributes that are copied to the order object when an order is placed. Which one of the following statements is true?

A) You can define this list by modifying the list of elements found in the configuration with the xpath global/fieldsets/sales_convert_quote.
B) You can define this list by modifying the list of elements found in the configuration with the xpath global/sales/quote/item/product_attributes.
C) You can define this list by checking the checkbox on the attribute edit page in the admin.
D) You cannot modify the list of fields copied from quote to order because the process is hardcoded.
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
25
A valid way to extend Mage_Adminhtml_Cms_PageController with the Acme_Cms_Adminhtml PageController class would be to set the following configuration; <strong>A valid way to extend Mage_Adminhtml_Cms_PageController with the Acme_Cms_Adminhtml PageController class would be to set the following configuration;   Which of the following code pairs should be inserted in the blank spots in the code shown above?</strong> A) Mage_Adminhtml, Acme_Cms_Adminhtml B) Mage_Adminhtml, Acme_Cms_Adminhtml_PageController C) Mage_Adminhtml_Cms_PageController, Acme_Cms_Adminhtml D) Mage_Adminhtml_Cms_PageConttroller, Acme_Cms_Adminhtml_PageController Which of the following code pairs should be inserted in the blank spots in the code shown above?

A) Mage_Adminhtml, Acme_Cms_Adminhtml
B) Mage_Adminhtml, Acme_Cms_Adminhtml_PageController
C) Mage_Adminhtml_Cms_PageController, Acme_Cms_Adminhtml
D) Mage_Adminhtml_Cms_PageConttroller, Acme_Cms_Adminhtml_PageController
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
26
<strong>  The checkbox Use default value is checked and the corresponding input field is disabled, as shown in the graphic above. How does Magento represent this state in the corresponding EAV value tables?</strong> A) no row with a value for this store view and a row with value NULL for default B) no row with a value for this store view and a row with any value for default C) a row with value NULL for this store view and a row with value NULL for default D) a row with value NULL for this store view and a row with any value for default E) no row with a value for this store view and no row with a value for default The checkbox "Use default value" is checked and the corresponding input field is disabled, as shown in the graphic above. How does Magento represent this state in the corresponding EAV value tables?

A) no row with a value for this store view and a row with value NULL for default
B) no row with a value for this store view and a row with any value for default
C) a row with value NULL for this store view and a row with value NULL for default
D) a row with value NULL for this store view and a row with any value for default
E) no row with a value for this store view and no row with a value for default
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
27
When you register an event observer, which two of the following pieces of information are required for it to function? (Choose two)

A) method (or function) name
B) method (or function) arguments
C) class name
D) object type (singleton, model, none, etc)
E) call order
F) active/inactive status
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
28
Which of the following block methods is the best to override when there is a need to customize how the block's html is rendered?

A) _toHtml ( )
B) toHtml ( )
C) setLayout ( )
D) renderLayout ( )
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
29
Which of the following lines includes a payment method object?

A) $quote->getShippingAddress ( )->setPaymentMethod(isset ($data['method']) ? $data['method'] : null); inside Mage_Checkout_Model_Type_Onepage
B) public function setPayment(Mage_Sales_Model_Quote_Payment $payment) inside Mage_Sales_Model_Quote
C) $method = $this->getMethodInstance ( ); inside Mage_Sales_Model_Quote_Payment
D) $instance->setInfoInstance($this); inside Mage_Payment_Model_Info
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
30
Which class is extended to render a dropdown in admin forms?

A) Mage_Adminhtml_Block_Widget
B) Mage_Core_Block_Abstract
C) Mage_Adminhtml_Block_Abstract
D) Mage_Adminhtml_Block_Template
E) Varien_Data_Form_Abstract
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
31
When setData ('some', 'value') is called on an EAV entity and the entity is saved to the database, __________________.

A) the 'value' of the attribute named 'some' is saved in the eav_values table
B) the 'value' of the attribute named ' some' is saved in one of the entity's tables depending on its datatype (for example, entityname_varchar)
C) the data will be stored in the EAV registry making ' some' 'value' available to the entity
D) the 'value' of the attribute named 'some' is saved in the eav_attribute_values table
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
32
Which statement describes a model class that extends Mage_Core_Model_Abstract?

A) The model class consists of properties and methods for storing and manipulating data retrieved via separate resource classes responsible for database operations.
B) The model class is responsible for loading the frontend layout templates and responding to page requests via its Action methods (for example, indexAction).
C) The model class does not encapsulate any logic except for logic providing access to the data loaded from the database.
D) The model class is primarily responsible for direct query operations such as retrieving and storing data and then rendering that data to the frontend view.
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
33
To update your order information from a third-party system using an XmlRpc call, you should _______________.

A) use the native sales_order.update API call with the url/api/xmlrpc/
B) create a custom API resource which allows you to receive XmlRpc requests
C) create a custom API adapter to receive XmlRpc requests
D) create a custom API handler to process XmlRpc requests
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
34
Which method is responsible for a full re-index in the abstract Magento indexer?

A) fullReindex ( )
B) reindexAH ( )
C) processEvent ( )
D) reindex ( )
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
35
Which table stores information about the relationship between configurable products and their child products?

A) catalog_product_link
B) catalog_product_super_link
C) catalog_product_option
D) catalog_product_relation
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
36
In what order are the routers from the Magento core checked for a matching route? Default: Mage_Core_Controller_Varien_Router_Default CMS: Mage_Cms_Controller_Router Standard: Mage_Core_Controller_varien_Router_Standard Admin: Mage_Core_Controller_Varien_Router_Admin

A) Admin, Standard, CMS, Default
B) Default, CMS, Standard, Admin
C) Admin, CMS, Standard, Default
D) Standard, Admin, Default, CMS
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
37
Which of the following is the default setup script class name?

A) Mage_Core_Model_Mysql4_Setup
B) Mage_Core_Model_Resource_Setup_Default
C) Mage_Setup_Model_Resource_Default
D) Mage_Core_Model_Resource_Setup
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
38
Which of the following actions will enable logging via calls to debugData( ) on a native Magento payment method model?

A) Set the protected property $_debug of the payment model to true
B) Set the config node default/payment/debug/[method  code] to 1
C) Call Mage:: register ('payment_method_debug_' . [method code], true);
D) Set the config node default/payment/ [method code]/debug to 1
E) Call setDebug(true) on the payment method model
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
39
Which one of the following controller classes could respond to this URL?: http://example.com/modulename/controller/index

A) Namespace_ModuleName_IndexControllet
B) Namespace_ModuleName_Controller_ControllecInclex
C) Namespace_ModuleName_Controller_IndexController
D) Namespace_Modulename_ControllerController
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
40
In which table could you find the current order state?

A) sales_flat_order
B) sales_flat_order_state
C) sales_flat_order_status
D) sales_flat_order_status_history
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
41
Which three of the following object types will have a parent class found in the Mage_Eav module for the purposes of EAV data storage in Magento? (Choose three)

A) data model
B) data helper
C) resource model
D) resource collection
E) setup class
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
42
You want to display a grid for a custom collection. After extending Mage_Adminhtml_Block_widget_Grid, which two of these methods should you implement? (Choose two)

A) _getCollection ( )
B) _prepareCollection ( )
C) _prepareColumns ( )
D) toHtml ( )
E) render ( )
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
43
Which two public methods must be implemented in a functional custom shipping method directly extending Mage_Shipping_Model_Carrier_Abstract and also implementing Mage_Shipping_Model_Carrier_Interface? (Choose two)

A) collectRates ( )
B) getAllowedMethods ( )
C) isTrackingAvailable ( )
D) isFixed ( )
E) getConfigData ( )
F) checkAvailablesnipCountries ( )
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
44
Which one of the following declares a Layout XML file? <strong>Which one of the following declares a Layout XML file?  </strong> A) Option A B) Option B C) Option C D) Option D

A) Option A
B) Option B
C) Option C
D) Option D
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
45
Which of the following xpaths defines the correct XML structure for informing Magento that your module has install scripts?

A) global/resources/etc/setup//module
B) system/database/resources//setup/module
C) global/resources//setup/module
D) database/action/scripts/
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
46
When changes are made to more than one of a collection's items using setData ('some', 'value'), which of the following methods will save the changes in the collection?

A) $collection->saveAll ( );
B) $collection->saveItems ( );
C) $collection->saveAllItems ( );
D) $collection->save ( );
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
47
You have used the "refresh"' action on the cache management page for the block html cache type. Which of the following types of cache record would be cleared?

A) all cache records containing HTML code
B) items for block classes extending Mage_Core_Block_Template only
C) items having at least one of the tags found in the configuration under the xpath global/cache/types/block_html/tags
D) block class items with expired lifetime
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
48
The initial call to ______________ will create and return an instance of the specified class. Subsequent calls to this method during the same execution cycle will return the same class instance as opposed to creating a new one.

A) Mage::getResourceModel ('namespace/modulename');
B) Mage::getInstance ('namespace/modulename');
C) Mage::getModel ('modulename/modelname');
D) Mage::getSingleton ('modulename/modelname');
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
49
To implement a standard Adminhtml form for a custom data model, which two of the following must you do? (Choose two)

A) Declare your module's block class prefix in the config.xml file.
B) Implement a sub-class of Mage_Adminhtml_Block_widget_Form.
C) Implement a sub-class of Mage_Adminhtml_Block_Form_Abstcact.
D) Create sub-classes of Mage_Adminhtml_Block_Form_Element_Abstract for each form field to be presented.
E) Add a set of configuration values in the module's config.xml defining the form fields to be displayed,
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
50
How can you update a third-party system with every new order created in Magento?

A) Use the native sales_order.update API call.
B) Use a sales_order_place_after API call.
C) Create an observer in Magento on the sales_order_place_after event.
D) Customize the third-party system to listen to Magento's sales__order_place_after event.
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
51
Which two EAV attribute frontend_input types make use of source models? (Choose two)

A) text
B) textarea
C) select
D) multiselect
E) date
F) gallery
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
52
Given a grid interface that extends from Mage_Adminhtml_Block_widget_Grid, which of the following methods could you override to allow data to be loaded from a custom data collection?

A) _prepareDataModel
B) _prepareCollection
C) _initDataModel
D) _initGrid
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
53
What does Magento use to determine whether the automatically run upgrade scripts have been run yet?

A) The modification date on the modules' etc/config.xml file
B) The version number (or lack thereof) stored in the core_module_version table
C) The version number (or lack thereof) stored in the core_resource table
D) A comparison of the resources that are capable of successfully loading
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
54
Which of the following layout XML directives will set a value on a block? <strong>Which of the following layout XML directives will set a value on a block?  </strong> A) Option A B) Option B C) Option C D) Option D E) Option E

A) Option A
B) Option B
C) Option C
D) Option D
E) Option E
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
55
Which of the following methods will force an EAV resource collection model to include an attribute in its result set?

A) addAttributeToSelect ($attribute);
B) getResource ( ) ->addAttribute($attribute);
C) addFieldToSelect ($attribute);
D) getSelect ( )->from ( ' ', $attribute);
E) addAttributeToCollection ($attribute);
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
56
You want to filter a product collection so that it will return only SKUs 12 and 123. You will use a call to $collection->addFieldToFilter ('sku', ____________ ); Two of the following arrays could be used to complete that call correctly. Which two? (Choose two)

A) array ('sku' => 12, 'sku' => 123)
B) array (array ('eq' => 12), array ('eq' => 123) )
C) array (12 => true, 123 => true)'
D) array (12, 123)
E) array (array ('int' => 12), array ('int' => 123) )
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
57
How can you make a payment method store entire credit card numbers?

A) For security reasons, there are no native ways for doing that.
B) Pass the credit card number to the payment method: it will be stored automatically.
C) Change the protected property of payment method $_canSaveCc to true.
D) Configure your method to save the card number by setting 1 to the following xpath:  default/payment/_NAME_/save_cc
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
58
What is the basic class/interface for every model observer class?

A) Mage_Model_Config_Observer
B) Mage_Core_Model_Event_Observer_Abstract
C) Mage_Core_Model_Event_Observer_Interface
D) There is no required inheritance.
E) Varien_Object
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
59
When the Magento configuration is being loaded, all the XML files in app/etc and the module registration files under app/etc/modules/ are loaded first. After that step, in which order are the following items loaded? 1. Configuration from the core_config_data DB table 2. app/etc/local.xml 3. The etc/config.xml of all active modules

A) 1, 3, 2
B) 3, 1, 2
C) 3, 2, 1
D) 1, 2, 3
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
60
You want to implement a custom attribute source model. Which method do you have to implement after extending Mage_Eav_Model_Entity_Attribute_Source_Abstract?

A) getOptionText ( )
B) getAllOptions ( )
C) getOptionHash ( )
D) getOptionId ( )
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
61
To register a new API resource, what should you do?

A) Register your new resource in config.xml in the node global/api/ [module name]/resources.
B) Create etc/api.xml and register your resource in the api/resources node.
C) Go to the System/Web services/API Resources management page, and add a new resource from there.
D) Create an etc/resources.xml config file and register your resource in the api/resources node.
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
62
What must be done to allow a third-party system to access the Magento API?

A) Run a login call with username/password, and use the returned session_id for every request.
B) Get a token previously generated in Magento admin.
C) Run an authenticate call with username/password; the call will set up a session automatically.
D) Register the remote IP address in the api/allowed_ips/ [system name] node.
E) Use a secure certificate, with public/private keys, and get a private key installed inside Magento.
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
63
By enabling Flat catalog, you will ____________.

A) speed up performance on the frontend
B) speed up saving product on the backend
C) simplify the product import process
D) speed up loading product on the backend
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
64
Which three of the following will return an instance of a resource model? (Choose three)

A) Mage::getResourceModel ('customer/customer');
B) Mage::getResourceSingleton ('customer/customer');
C) Mage::getModel ('customer/customer') ->getResourceModel ( );
D) Mage::getResourceModel ('customer/customer')->getInstance ( );
E) Mage::getModel ('customer/customer') ->getResource ( );
F) Mage::getResourceModel ('customer/customer') ->getResource( );
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
65
A native Magento EAV entity will use_____________.

A) A single table with separate columns for each data type (for instance, decimal, text, varchar, etc.)
B) A single table with separate columns for all data types used by the entity
C) A separate table for each data type (for instance, decimal, text, varchar, etc.)
D) A separate table for each data type in addition to a flat data table with separate columns to store values for each data type used by the entity
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
66
Two modules, Foo and Moo, both rewrite the catalog/product model, but only the Moo module's rewrite is being used. Both modules Foo and Moo reside in the community code pool. Which two approaches allow the functionality from both classes to be used? (Choose two)

A) Copy Foo_Model_Product to the local code pool.
B) Copy Moo_Model_Product to the local code pool and merge the logic from Foo_Model_Product into it.
C) Copy Moo_Model_Product to the local code pool and make it extend Foo_Model_Product, making sure the logic of both classes does not conflict.
D) Copy Moo_Model_Product to the local code pool.
E) Change the rewrite directive of the Moo module to rewrite foo/product instead of catalog/product.
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
67
Which of the following payment methods' payment actions creates an invoice during the "place order" step?

A) Mage_Payment_Model_Method_Abstract::ACTION_AUTHORIZE
B) Mage_Payment_Model_Method_Abstract::ACTION_CAPTURE
C) Mage_Payment_Model_Method_Abstract::ACTION_AUTHORIZE_CAPTURE
D) Mage_Payment_Model_Method_Abstract::ACTION_INVOICE
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
68
In which config areas are layout files declared? (Choose two)

A)
B)
C)
D)
E)
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
69
How can you restrict access to a custom API resource?

A) Only by creating a new role under System/Web Services/Roles
B) By setting up an ACL in etc/api.xml and creating a new role for it in System/Web Services/Roles
C) Only by extending Mage_Api_Controller_Action and overriding the _isAllowed method
D) By setting up an ACL in etc/adminhtml.xml and creating a new role in System/Permissions/Roles
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
70
Assume you have product with qty in stock=1, and two people are trying to buy it at the same time. Which of the following statements is true?

A) Only one is able to add the product to the shopping cart. That person will be able to buy the product.
B) Only the person who starts checkout first will be able to buy the product.
C) Only the person who passes the payment step first will be able to buy the product.
D) Both persons can go to the Place Order step, but the one who places the order first will get the product.
E) Both persons will be able to complete the checkout, because both have local copies of the available inventory.
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
71
Which model is responsible for calculating the taxes for the selected shipping rate?

A) shipping/rate_result
B) shipping/total_tax
C) tax/sales_total_quote_tax
D) the concrete shipping carrier model implementation
E) shipping/rate_request
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
72
Which one of the following statements is true regarding layout update handles?

A) Layout update handles must always match a module_controller_action pattern such as catalog_product_view.
B) There may never be more than one layout update handle per request.
C) Layout update handles are declared at any level of the layout XML hierarchy.
D) A layout update handle may be specified as a string argument when calling loadLayout ( ).
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
73
In admin, a shipment can be created ____________.

A) only after the whole order is invoiced
B) only after at least one item is invoiced
C) even before an invoice is created
D) only after tracking number(s) are specified
Unlock Deck
Unlock for access to all 73 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 73 flashcards in this deck.