Free AD0-E703 Exam Braindumps (page: 6)

Page 5 of 34

You are adding a child node to the product.info block using the XML:



How will this block be rendered?

  1. Child block nodes are automatically rendered as HTML
  2. By calling $block->getChildHtml(`mynewblock') in the parent block's template
  3. The layout is invalid since block elements cannot be nested
  4. Automatically if the block class Custom implements the _toHtml method

Answer(s): B



You are implementing a before plugin in MyCompany_Magic. It will intercept the same method that MyCompany_Admission is already intercepting using a before plugin: Topmenu::getBlockHtml Which two actions are required to ensure the new plugin will execute last? (Choose two.)

  1. Include a sortOrder="20" on the new plugin in MyCompany_Magic's etc/di.xml file
  2. Configure plugin sequencing for both plugins in MyCompany_Magic's etc/plugin_sequence.xml file
  3. Set a sortOrder="10" for MyCompany_Admission's plugin in MyCompany_Magic's etc/di.xml
  4. Add MyCompany_Admission as a dependency in MyCompany_Magic's etc/module.xml file

Answer(s): A,C



In the module located at app/code/MyCompany/MyModule there is a JS module in the file view/frontend/web/register.js. The Magento base URL is https://magento.host/ and the luma theme with the en_US locate is used.
What is the public URL for this file?

  1. https://magento.host/pub/static/frontend//Magento/luma/en_US/MyCompany_MyModule/js/regis ter.js
  2. https://magento.host/pub/static/frontend/Magento/luma/en_US/MyCompany_MyModule/register.
    js
  3. https://magento.host/pub/static/frontend/Magento/luma/en_US/MyCompany_MyModule/web/re gister.js
  4. https://magento.host/app/code/MyCompany_MyModule/view/frontend/web/register.js

Answer(s): A



During a code review of a module MyCompany_PaymentCurrencies you see a configuration field declared in the file etc/adminhtml/system.xml:



What is the consequence of the attribute showInStore being set to 0?

  1. The field value will not be accessible on the store front by calling ScopeConfigInterface::getValue() with a $scopeType argument of `store'.
  2. The input field will not be visible if a store view scope is selected in the system configuration
  3. The input field will only be visible if a website's default store scope is selected in the system configuration
  4. The input field will be disabled if a store view scope is selected in the system configuration

Answer(s): B






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

AD0-E703 Discussions & Posts