Exam Details

  • Exam Code
    :MAGENTO2-CERTIFIED-ASSOCIATE-DEVELOPER
  • Exam Name
    :Magento 2 Certified Associate Developer
  • Certification
    :Magento Certification
  • Vendor
    :Magento
  • Total Questions
    :103 Q&As
  • Last Updated
    :May 20, 2025

Magento Magento Certification MAGENTO2-CERTIFIED-ASSOCIATE-DEVELOPER Questions & Answers

  • Question 81:

    What will be the result of calling the save() method on a collection instance?

    A. It will save all items with one INSERT ... ON DUPLICATE KEY UPDATE query

    B. It will loop over all items and call save () on each one

    C. It will save the select query execution result into the cache

    D. It will save the select query to the cache

  • Question 82:

    A merchant tasked you to add an input field for notes to the Customer Account Information backend page.

    Which three actions do you specify in a module's Data Patch to add a customer notes attribute? (Choose three.)

    A. $cache->clean([`eav', `db_ddl']);

    B. $customerSetup->addAttribute(`customer', `notes', $options);

    C. $customerSetup->getConnection()->addColumn(`customer_entity', `notes', $columnSpecs);

    D. $notesAttribute->setData(`used_in_forms', [`adminhtml_customer']);

    E. $customerSetup->addAttributeToSet(`customer', $attributeSetIdCustomer, $groupId, `notes');

  • Question 83:

    You need to find all orders in the processing state. You have written the code:

    How do you resolve the exception?

    A. Use dependency injection to load an instance of the SearchCriteria class

    B. Change the getList parameter to: $searchCriteraBuilder->addFilter(`state','processing')->create()

    C. Clear generated code to get a new version of SearchCriteriaBuilder

    D. Specify a preference in di.xml to map SearchCriteriaBuilder to SearchCriteriaInterface

  • Question 84:

    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?

    A. The field value will not be accessible on the store front by calling ScopeConfigInterface::getValue() with a $scopeType argument of `store'.

    B. The input field will not be visible if a store view scope is selected in the system configuration

    C. The input field will only be visible if a website's default store scope is selected in the system configuration

    D. The input field will be disabled if a store view scope is selected in the system configuration

  • Question 85:

    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?

    A. https://magento.host/pub/static/frontend//Magento/luma/en_US/MyCompany_MyModule/js/register.js

    B. https://magento.host/pub/static/frontend/Magento/luma/en_US/MyCompany_MyModule/register.js

    C. https://magento.host/pub/static/frontend/Magento/luma/en_US/MyCompany_MyModule/web/register.js

    D. https://magento.host/app/code/MyCompany_MyModule/view/frontend/web/register.js

  • Question 86:

    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.)

    A. Include a sortOrder="20" on the new plugin in MyCompany_Magic's etc/di.xml file

    B. Configure plugin sequencing for both plugins in MyCompany_Magic's etc/plugin_sequence.xml file

    C. Set a sortOrder="10" for MyCompany_Admission's plugin in MyCompany_Magic's etc/di.xml

    D. Add MyCompany_Admission as a dependency in MyCompany_Magic's etc/module.xml file

  • Question 87:

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

    How will this block be rendered?

    A. Child block nodes are automatically rendered as HTML

    B. By calling $block->getChildHtml(`mynewblock') in the parent block's template

    C. The layout is invalid since block elements cannot be nested

    D. Automatically if the block class Custom implements the _toHtml method

  • Question 88:

    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?

    A. If the custom module is removed, the custom template will no longer apply

    B. This setup will throw an IllegalStateException

    C. If a preference for the core block is set, the template will no longer apply

    D. If another module is installed which also customizes the same core template, the templates will be rendered sequentially

  • Question 89:

    You need to add a new text attribute to all products in the Magento store. When this attribute is displayed on the product page, its values must be different depending on the selected language. Keeping simplicity in mind, how do you add this attribute?

    A. Use the Magento CLI to create a new custom attribute, then generate dictionaries for all supported languages

    B. Use a Data Patch to create a new EAV attribute

    C. Add a new column to the catalog_product_entity table using declarative schema

    D. Use the admin panel to create a new extension attribute

  • Question 90:

    You are developing a module and need to add another column to a table introduced by another module MyCompany_MyModule via db schema.

    How do you do that?

    A. Create a etc/db_schema.xml file in your module, add the column and run bin/magento setup:upgrade

    B. Create a etc/db.xml file in your module, add the column and run bin/magento setup:dbschema:upgrade

    C. Run a command: bin/magento setup:db-schema:upgrade [table]

    D. Create a etc/db_schema_whitelist.json file in your module, add the column and run bin/magento setup:upgrade

Related Exams:

Tips on How to Prepare for the Exams

Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only Magento exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your MAGENTO2-CERTIFIED-ASSOCIATE-DEVELOPER exam preparations and Magento certification application, do not hesitate to visit our Vcedump.com to find your solutions here.