Free AD0-E704 Exam Braindumps (page: 8)

Page 7 of 23

You want to display customized product list along with it's tier prices. To render this price which class should be used and which data needs to be provided ?

  1. In layout xml, use class= Magento\Catalog\Pricing\Render and price_render argument= product.price.render.default
  2. In layout xml, use class= Magento\Catalog\Pricing\Render and price_render argument= product.price.render.tier
  3. In layout xml, use class= Magento\Catalog\Pricing\Render and price_render argument= product.price.render.simple
  4. None of these

Answer(s): A



For an existing core class, you created 3 plugins PluginA, PluginB and PluginC with sort orders 10, 20 and 30 respectively. but when implementing pluginB you used around method and did not used callable in it.What should be the plugins executaion order as per above scenerio:

  1. PluginA, PluginB, PluginC
  2. PluginB, PluginC, PluginA
  3. PluginA, PluginB
  4. PluginB, PluginC

Answer(s): C



You need to create a list of warehouses with a set of details in the configuration values: warehouse name, warehouse postcode. For this, suppose you created a custom configuration file under your module's etc/warehouses_list.xml. Now what should be the name of it's XSD schema for this xml file validation:

  1. etc/warehouses_list.xsd
  2. etc/xsd/warehouses_list.xsd
  3. etc/warehouses/list.xsd
  4. xsd/warehouses_list.xsd

Answer(s): A



Suppose you want to develope a custom extension that should provide product_redirect_links to amazon.com, ebay.com and other sites. Suppose this must be added using extension_attribute feature to make that availbe for product repository and services, then what are the customizations needed to develope it: Choose 2

  1. In your custom module, create etc/extension_attributes.xml, and define needed attribute_code under extension_attributes for="Magento\Catalog\Api\Data\ProductInterface"
  2. In your custom module create, etc/di.xml and add plugin code to join product_redirect_links attribute to ProductRepositoryList
    <type name="Magento\Catalog\Api\ProductRepositoryInterface"> <plugin name="joinExternalLinksToProductRepositoryList"
    type="Magento\ExternalLinks\Model\Plugin\Product\Repository"/> </type>
  3. In your custom module create Setup/InstallSchema.php and add requried product attribute create code and run setup:upgrade.
  4. None of these

Answer(s): A,B






Post your Comments and Discuss Adobe AD0-E704 exam with other Community members:

AD0-E704 Discussions & Posts