AD0-E704 Adobe Certified Master - Magento Commerce Architect

Loading demo links...

Showing 7–9 of 10 questions

Question 7

You need to build a custom module to add a notice to the Advanced Inventory section on the product form. The notice text can be specified in the system configuration. How do you implement this?

Select an option, then click Submit answer.

  • You add a plugin on the form \Magento\Cataiog\Ui\DataProvid«r\Product\Form\ProductDataProvider to add a field in the Advanced Inventory section

  • YOU add a plugin on Magento\CatalogInventory\Ui\DataProvider\Product\Form\Modifier\AdvancedInventory to modify the Section metadata

  • You inject a custom block into the reference container in the catalog_product_index layout

  • You add a field to product_form. xml as a child of the stock_data fieldset

Question 8

Suppose in a store there are 500 categories and it's increasing as per the need. Let's say your frontend developer asked you to modify the header and include CSS files on some specific category pages based on the custom category attribute selection from backend. What should be the acceptable and easiest way to do this, so that no new file creation and code update will be required after implementation:

Select an option, then click Submit answer.

  • create a new layout XML file for the category called catalog_category_view.xml and add the layout modification code

  • create a new layout XML file for the category called catalog_category_view_selectable__CustomLayout.xml
    and assign it to the needed categories from backend, and add the layout modification code in it.

  • create a custom layout handle for the category using observer layout_load_before and add the layout modification code

  • create a custom layout handle for the category using observer layout_load_after and add the layout modification code

Question 9

A furniture merchant have 100k products in the store. In a custom product list page, he advised you to enable the caching as per user paginate the products. So what should the approach to cache the block data as per pagination request:

Select an option, then click Submit answer.

  • In block class toHtml() method, define cache_lifetime, cache_tags and cache_key_

  • In block class _construct() method, define cache_lifetime, cache_tags and cache_key_

  • In block class toHtml() method, set _isScopePrivate property to false as per requested page number.

  • In block class _construct() method, set _isScopePrivate property to false as per requested page number.