Pass Magento-2-Certified-Associate-Developer Exam in First Attempt Guaranteed 2021 Dumps!
Magento-2-Certified-Associate-Developer Dumps Full Questions - Exam Study Guide
NEW QUESTION 55
You have created a module with a custom ACL resource and want to restrict access to resources of your module.
Which three items are restricted based on ACL role permissions? (Choose three.)
- A. Adminhtml controllers
- B. CLI Commands
- C. Webapi resources
- D. System configuration sections
- E. Storefront login
Answer: A,D,E
Explanation:
Explanation/Reference: https://www.mageplaza.com/magento-2-module-development/magento-2-acl-access-control- lists.html
NEW QUESTION 56
You have been given the task of importing products from an external source. You decide to create a custom module to do this. The class handling the import creates a product for each record, sets the data on it and saves it to the database.
What do you inject into a constructor to represent each product you create?
- A. \Magento\Catalog\Api\Data\ProductInterface
- B. \Magento\Catalog\Model\Product
- C. \Magento\Catalog\Model\ProductBuilder
- D. \Magento\Catalog\Api\Data\ProductInterfaceFactory
Answer: D
Explanation:
Explanation/Reference: https://magento.stackexchange.com/questions/102922/programmatically-create-a-simple-product- in-magento-2
NEW QUESTION 57
What order operation is available in the My Account section in the storefront?
- A. Edit order
- B. Reorder
- C. Invoice
- D. Refund
Answer: C
Explanation:
Explanation/Reference: https://docs.magento.com/m2/ce/user_guide/sales/order-processing.html
NEW QUESTION 58
A module declares the route:
What is the layout handle of the storefront path /custom/feature/?
- A. custom_feature
- B. custom_feature_index
- C. mymodule_feature_index
- D. mymodule_feature
Answer: A
NEW QUESTION 59
What will be the result of calling the save() method on a collection instance?
- A. It will save the select query to the cache
- 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 all items with one INSERT ... ON DUPLICATE KEY UPDATE query
Answer: B
NEW QUESTION 60
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. Add a new column to the catalog_product_entity table using declarative schema
- B. Use the Magento CLI to create a new custom attribute, then generate dictionaries for all supported languages
- C. Use the admin panel to create a new extension attribute
- D. Use a Data Patch to create a new EAV attribute
Answer: C
NEW QUESTION 61
What is a valid use case for an aroundplugin?
- A. The execution of the pluginized method must be suppressed
- B. The arguments of the beforeplugins must be modified
- C. The arguments of the afterplugins must be modified
- D. The execution of the beforeand afterplugins must be suppressed
Answer: D
Explanation:
Explanation/Reference: https://devdocs.magento.com/guides/v2.3/extension-dev-guide/plugins.html
NEW QUESTION 62
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. Add a new column to the catalog_product_entitytable using declarative schema
- B. Use the admin panel to create a new extension attribute
- C. Use the Magento CLI to create a new custom attribute, then generate dictionaries for all supported
languages - D. Use a Data Patch to create a new EAV attribute
Answer: B
NEW QUESTION 63
In a custom module you are adding a new field to the store configuration. The field will set the value for the configuration path mycompany/mymodule/myoption.
How do you supply the default value for that configuration option?
- A. In the system/mycompany/group/mymodule/field/myoption node in the etc/system.xml file
- B. In the system/section/group/field/value node in the etc/adminhtml/system.xml file
- C. In the config/default/mycompany/mymodule/myoption node in the etc/config.xml file
- D. In the menu/default/section/group/field node in the file etc/adminhtml/menu.xml
Answer: C
NEW QUESTION 64
You are adding an entry to the backend menu. To do so you open a core etc/adminhtml/menu.xml file as a reference. In the file you see the node:
What is the result of specifying resource="Magento_Catalog::catalog"?
- A. The menu item will only be visible if the class method specified by the resource returns a true value
- B. The menu item will only be visible to users who are assigned to a role with access to the matching ACL resource
- C. The resource is used to locate the correct translation for the attributes listed in title="..."
- D. The last selected menu item for a user is stored in the DB so the previously visited page can be restored on the next login
Answer: B
NEW QUESTION 65
You have to install a new module on the production environment. All the module is adding a new product attribute. You enabled maintenance mode, copied the module code, run bin/magento setup:upgrade and disabled maintenance mode.
What two risks does this process pose? (Choose two.)
- A. It will clean static assets from the pub/static folder
- B. It will void all active sessions
- C. The new attribute will be invisible on the storefront until the cache is cleaned manually
- D. It will clean all caches which will cause a performance degradation
Answer: B,C
NEW QUESTION 66
What is the difference between online and offline shipping methods?
- A. Online means that it will be sent to the customer using a shipping carrier, offline means the customer will pick up the order in person
- B. Online means Magento will use a shipping carrier's API to obtain rates, offline means Magento will calculate the rates internally
- C. Online means that a shipment will have a tracking number, and offline means no tracking numbers are available
- D. Online means that an item's shipping will be processed by the merchant, offline means that it will be processed by the customer
Answer: D
NEW QUESTION 67
You are developing a module MyCompany_StoreInfo to display information about brick and mortar stores on a frontend page. The displayed information varies based on the country of a given store.
What two elements automatically render their children? (Choose two.)
- A. <block class="\Magento\Framework\View\Element\AbstractBlock" name="shop.info.details"/>
- B. <block class="\Magento\Framework\View\Element\Text\ListText" name="shop.info.details"/>
- C. <block class="\Magento\Framework\View\Element\Template" name="shop.info.details"/>
- D. <container name="shop.info.details"/>
Answer: B,D
NEW QUESTION 68
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 input field will be disabled if a store view scope is selected in the system configuration
- B. The field value will not be accessible on the store front by calling ScopeConfigInterface::getValue() with a $scopeType argument of 'store'.
- 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 not be visible if a store view scope is selected in the system configuration
Answer: D
NEW QUESTION 69
There are two different configurable products which both share one variation. The shared variation is represented by the same simple product.
A customer added both configurables to the cart with the same selected variation?
How will they be displayed?
- A. As one line item of the second product with quantity 2
- B. As two separate line items with quantity 1 each
- C. As one line item which lists both configurable products with quantity 1 each
- D. As one line item of the first product with quantity 2
Answer: B
NEW QUESTION 70
You are setting up a brand new Magento installation for a merchant who is migrating from Magento 1 to Magento 2.
Keeping in mind upgradability and the need to customize, which one do you choose?
- A. Create a new Magento instance using composer create-project
- B. Create a new Magento instance by using the bin/magento install command
- C. Run php bin/magento setup:migrate <path-to-m1-installation> <new-version> command
- D. Clone the magento/magento2 GitHub repository
Answer: A
NEW QUESTION 71
Your module, MyCompany_MyModule, is using the frontName mymodule. You need to locate the class
responsible for the frontend path /mymodule/custom.
What file contains the controller class for the frontend path /mymodule/custom?
- A. Controller/MyModule/Custom/Index.php
- B. Controller/Custom.php
- C. Controller/Custom/Index.php
- D. Controller/Frontend/MyModule/Custom.php
Answer: C
Explanation:
Explanation/Reference: https://www.simicart.com/blog/magento-create-controller/
NEW QUESTION 72
You have created a custom module which must perform an action immediately after an order is placed, but only on the store front of the merchant site. You have selected the checkout_submit_all_after as the target event which the module will observe.
In which file will the event observer be declared?
- A. etc/config.xml
- B. etc/frontend/events.xml
- C. etc/events.xml
- D. etc/frontend.xml
Answer: B
Explanation:
Explanation/Reference: https://magento.stackexchange.com/questions/128548/trigger-event-after-an-order-has-been- created-saved/128565
NEW QUESTION 73
What order operation is available in the My Account section in the storefront?
- A. Edit order
- B. Reorder
- C. Invoice
- D. Refund
Answer: B
NEW QUESTION 74
......
Magento Certified Developer Free Certification Exam Material from Actualtests4sure with 105 Questions: https://www.actualtests4sure.com/Magento-2-Certified-Associate-Developer-test-questions.html

