Free AD0-E704 Exam Braindumps (page: 3)

Page 2 of 23

Suppose you are asked to disable/remove the customer review related functionalities. You can not disable the review module directly because the customer module depends on it.
What is the possible way to remove all HTML outputs of the review module, from the frontend and backend? :

  1. Turn-off Review module output globally by extending
    <Magento_install_dir>/vendor/magento/module-backend/etc/config.xml
  2. Turn-off Review module output globally by extending
    <Magento_install_dir>/vendor/magento/module-backend/etc/module.xml
  3. Create plugin or Override the class \Magento\Framework\View\Element\AbstractBlock and toHtml() method, and implement the logic to return empty data in case of review module's block instance is present.
  4. Create plugin or Override the class \Magento\Backend\Block\Template and isOutputEnabled() method, and implement the logic to return false value in case of review module's block instance is present.

Answer(s): A



In homepage, you need to add inline css in the body tag.
What should be the correct way of doing this using layout XML file cms_index_index.xml:

  1. <page>
    <body>
    <attribute name="style" value="css.opacity=0"/>
    </body>
    </page>
  2. <page>
    <body>
    <attribute name="css" value="style.opacity=0"/>
    </body>
    </page>
  3. <page>
    <body>
    <attribute name="css" value="opacity:0"/>
    </body>
    </page>
  4. <page>
    <body>
    <attribute name="style" value="opacity:0;"/>
    </body>
    </page>

Answer(s): D



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:

  1. create a new layout XML file for the category called catalog_category_view.xml and add the layout modification code
  2. create a new layout XML file for the category called catalog_category_view_selectable_<Category ID>_CustomLayout.xml and assign it to the needed categories from backend, and add the layout modification code in it.
  3. create a custom layout handle for the category using observer layout_load_before and add the layout modification code
  4. create a custom layout handle for the category using observer layout_load_after and add the layout modification code

Answer(s): C



Consider below code in a UiComponent xml file:
Magedeal\Employee\Ui\DataProvider\Employee\DataProvider employee_data_source entity_id id What is the application of

  1. The class attribute defines DataProvider class which is the primary source of any data or metadata that the component needs or will use.
  2. This references a PHP class that must implement
    \Magento\Framework\View\Element\UiComponent\DataProvider\DataProviderInterface. And it can also extend or implement the \Magento\Ui\DataProvider\ModifierPoolDataProvider
  3. The class attribute defines UiComponent class which is the primary source of any data or metadata that the component needs or will use.
  4. This references a PHP class that must implement
    \Magento\Framework\View\Element\UiComponent\DataProvider\UiComponentInterface. And it can also extend or implement the \Magento\Ui\DataProvider\ModifierPoolDataProvider

Answer(s): A,B






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

AD0-E704 Discussions & Posts