Free AD0-E704 Exam Braindumps

You are reviewing a custom observer for the event sales_order_save_after which is fired when an order is placed on the storefront. The observer is sending a remote request to an analytics system with the order data.
What issue may this observer cause?

  1. In case of an error in the observer the order will not be saved in the database
  2. The payment status is not available at the moment when the order is saved
  3. The final price for the order is not available on the sales_order_save_after event
  4. This event will not be fired if the order is placed through the WebAPI

Answer(s): A



A client uses an external PIM for managing product information. They want to run a cron job every minute to update and create products. The site is using the "Update by schedule" index mode and the full page cache is enabled.
What is required to make these updates visible on the frontend?

  1. The indexer_update_all_views cron will reindex the products and clean only the necessary entries from cache
  2. The indxer_update_all_views cron will reindex the products, however the full page cache will need to be manually flushed
  3. The indexer_update_all_views cron will reindex the products and clean the entire full page cache
  4. The cron job will also need to run a reindex and flush full page cache on each run for updates to be reflected on the front end of the website

Answer(s): D



You are working on a custom page where the content of a CMS block has to be rendered. You know the merchant is using Staging for CMS blocks. In your code you have access to the $repository object which is an instance of \Magento\Cms\Api\BlockRepositoryInterface. $blockld which is the original block ID, and $current Version which is the current Staging version. How do you load the CMS block with the right Staging version? A)



B)



C)



D)

  1. Option A
  2. Option B
  3. Option C
  4. Option D

Answer(s): D



You have created a module MyCompany_MyModule that adds a custom category attribute. The attribute is not showing up on the Category Edit Page in the Admin. How do you correct this?

  1. Define the field in MyCompany MyModule/view/admintml\ui_component\category_form xml
  2. Call 3attribute->setIsSystem(0); in data patch after creating the attribute
  3. Call Sattribute-setIsVisible(1): in data patch after creating the attribute
  4. Define the field in MyCompany MyModule\view\adminhtml\layout\catalog_category_edit.xml

Answer(s): D






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

AD0-E704 Discussions & Posts