Magento 2 Certified Associate Developer Magento 2 Certified Associate Developer Dumps in PDF

Free Magento Magento 2 Certified Associate Developer Real Questions (page: 10)

A third-party module uses a layout update that changes the template path for a core block from product/view/addto/compare.phtml of the Magento_Catalog module to custom/view/addto/compare.phtml of your custom module. The merchant has a customized version of this template in their custom theme.
What is a consequence of this setup?

  1. If the custom module is removed, the custom template will no longer apply
  2. This setup will throw an IllegalStateException
  3. If a preference for the core block is set, the template will no longer apply
  4. If another module is installed which also customizes the same core template, the templates will be rendered sequentially

Answer(s): A



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): C,D



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. Option https://magento.host/pub/static/frontend//Magento/luma/en_US/MyCompany_MyModule/js/regis ter.js
  2. Option https://magento.host/pub/static/frontend/Magento/luma/en_US/MyCompany_MyModule/register.
    js
  3. Option https://magento.host/pub/static/frontend/Magento/luma/en_US/MyCompany_MyModule/web/re gister.js
  4. Option 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



Share your comments for Magento Magento 2 Certified Associate Developer exam with other users:

M
Merry
7/30/2023 6:57:00 AM

good questions

V
VoiceofMidnight
12/17/2023 4:07:00 PM

Delayed the exam until December 29th.

U
Umar Ali
8/29/2023 2:59:00 PM

A and D are True

V
vel
8/28/2023 9:17:09 AM

good one with explanation

G
Gurdeep
1/18/2024 4:00:15 PM

This is one of the most useful study guides I have ever used.

AI Tutor 👋 I’m here to help!