Magento-2-Certified-Associate-Developer Exam Dumps - PDF Questions and Testing Engine
Magento-2-Certified-Associate-Developer Dumps - The Sure Way To Pass Exam
Magento Magento-2-Certified-Associate-Developer Exam Syllabus Topics:
| Topic | Details |
|---|---|
| Topic 1 |
|
| Topic 2 |
|
| Topic 3 |
|
| Topic 4 |
|
| Topic 5 |
|
NEW QUESTION 53
Where do you change the frontName for the admin router?
- A. app/etc/config.xml
- B. app/etc/local.xml
- C. app/etc/env.php
- D. composer.json
Answer: C
Explanation:
Explanation/Reference: https://amasty.com/knowledge-base/magento-2-admin-url.html
NEW QUESTION 54
You are writing a customization for the customer module. You need to make sure the configuration files from your module are loaded after the customer module's configuration.
Where should the dependency be declared?
- A. etc/module.xml
- B. composer.json
- C. etc/config.xml
- D. etc/di.xml
Answer: B
NEW QUESTION 55
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. Add MyCompany_Admission as a dependency in MyCompany_Magic's etc/module.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. Include a sortOrder="20" on the new plugin in MyCompany_Magic's etc/di.xml file
Answer: A,C
NEW QUESTION 56
The module MyCompany_MyModule will add a new page in the admin interface to display a custom entity in a grid.
You created a controller for this grid \MyCompany\MyModule\Controller\Adminhtml\CustomEntity\Index Which two actions are required to make the new page accessible at the
https://your.store.base.url/admin/my_module/custom_entity URL? (Choose two.)
- A. Create a new menu item in MyCompany/MyModule/etc/adminhtml/menu.xml
- B. Specify the my_module/custom_entity URL using a @route annotation in the action controller execute() method
- C. Register my_module route in MyCompany/MyModule/etc/adminhtml/routes.xml
- D. Register my_module route for the AdminRouter in MyCompany/MyModule/etc/adminhtml/di.xml
Answer: B,C
NEW QUESTION 57
What is a valid use case for an around plugin?
- A. The arguments of the after plugins must be modified
- B. The execution of the pluginized method must be suppressed
- C. The execution of the before and after plugins must be suppressed
- D. The arguments of the before plugins must be modified
Answer: C
NEW QUESTION 58
You want to remove a column introduced by a third-party extension via declarative schema.
How do you do that?
- A. Create a SchemaPatch file and remove the column programmatically
- B. Copy the etc/db_schema.xml file into your module and remove the column from your copy
- C. Create the etc/db_schema.xml file and specify disable="true" on the column
- D. Modify the original etc/db_schema.xml file and remove the column from there
Answer: B
NEW QUESTION 59
Magento allows you to specify custom values per store for product attributes created in the admin panel.
Which architectural pattern makes it possible?
- A. Extension Attribute
- B. Store Manager
- C. Dependency Injection
- D. Entity Attribute Value
Answer: D
NEW QUESTION 60
How do you pass an array ['one', 'two] as a parameter to you block using the layout XML arguments directive?
- A. Option D
- B. Option B
- C. Option A
- D. Option C
Answer: C
NEW QUESTION 61
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 an item's shipping will be processed by the merchant, offline means that it will be
processed by the customer - D. Online means that a shipment will have a tracking number, and offline means no tracking numbers are
available
Answer: C
Explanation:
Explanation/Reference: https://amasty.com/blog/shipping-magento-2-guide/
NEW QUESTION 62
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.phtmlof your custom module. The merchant has a customized version of this template in their custom theme.
What is a consequence of this setup?
- A. This setup will throw an IllegalStateException
- B. If another module is installed which also customizes the same core template, the templates will be rendered sequentially
- C. If a preference for the core block is set, the template will no longer apply
- D. If the custom module is removed, the custom template will no longer apply
Answer: D
Explanation:
Explanation/Reference: https://magento.stackexchange.com/questions/259547/how-to-a-third-party-module-uses-a-layout- update-that-changes-the-template-path
NEW QUESTION 63
What order operation is available in the My Account section in the storefront?
- A. Reorder
- B. Invoice
- C. Edit order
- D. Refund
Answer: A
NEW QUESTION 64
Magento allows you to specify custom values per store for product attributes created in the admin panel.
Which architectural pattern makes it possible?
- A. Extension Attribute
- B. Store Manager
- C. Dependency Injection
- D. Entity Attribute Value
Answer: A
NEW QUESTION 65
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 save all items with one INSERT ... ON DUPLICATE KEY UPDATE query
- C. It will save the select query execution result into the cache
- D. It will loop over all items and call save () on each one
Answer: D
Explanation:
Explanation
Explanation/Reference: https://magento.stackexchange.com/questions/259336/how-to-call-save-method-in-collection- instance
NEW QUESTION 66
A merchant requires the ability to configure contact information for their brick and mortar stores as a CSV file upload. The module already exists and contains an etc/adminhtml/system.xml file where the new field can be added.
How do you specify the class that will process the uploaded file?
- A. <frontend_model>\Magento\Config\Model\Config\Frontend\File</frontend_model>
- B. <upload_model>\Magento\Config\Model\Config\Upload\File</upload_model>
- C. <source_model>\Magento\Config\Model\Config\Source\File</source_model>
- D. <backend_model>\Magento\Config\Model\Config\Backend\File</backend_model>
Answer: D
Explanation:
Explanation/Reference: https://www.magestore.com/magento-2-tutorial/file-upload-in-magento-2-store-configuration/
NEW QUESTION 67
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 save all items with one INSERT ... ON DUPLICATE KEY UPDATE query
- C. It will save the select query execution result into the cache
- D. It will loop over all items and call save () on each one
Answer: D
Explanation:
Explanation/Reference:
Reference: https://magento.stackexchange.com/questions/259336/how-to-call-save-method-in-collection- instance
NEW QUESTION 68
You are implementing a custom module MyModule, which provides an implementation of
\Psr\Log\LoggerInterface called \MyCompany\MyModule\Logger.
The LoggerInterface has the default preference declared in app/etc/di.xml.
Keeping upgradability in mind, how do you make \MyCompany\MyModule\Logger the default implementation of the LoggerInterface globally?
- A. Declare a new preference for the LoggerInterface in
app/code/MyCompany/MyModule/etc/global/di.xml - B. Declare a new preference for the LoggerInterface in MyCompany/MyModule/etc/di.xml
- C. Overwrite the existing preference for the LoggerInterface in app/etc/di.xml
- D. Declare a new preference for the LoggerInterface in
app/code/myCompany/MyModule/etc/frontend/di.xml
Answer: C
NEW QUESTION 69
How do you set the custom block MyCompany\MyModule\Block\A as a child for the block named product.info using layout XML?
- A. Option D
- B. Option A
- C. Option C
- D. Option B
Answer: D
NEW QUESTION 70
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\ProductInterfaceFactory
- B. \Magento\Catalog\Api\Data\ProductInterface
- C. \Magento\Catalog\Model\Product
- D. \Magento\Catalog\Model\ProductBuilder
Answer: A
Explanation:
Explanation/Reference: https://magento.stackexchange.com/questions/102922/programmatically-create-a-simple-product- in-magento-2
NEW QUESTION 71
How do you add a new link into the My Account sidebar?
- A. By creating a child of the My Account UI component
- B. By using a layout update
- C. By creating a new UI component
- D. By adding the new section into the customer_account table in the database
Answer: D
Explanation:
Explanation/Reference: https://webkul.com/blog/account-navigation-link-magento2/
NEW QUESTION 72
A module declares the route:
What is the layout handle of the storefront path /custom/feature/?
- A. custom_feature_index
- B. mymodule_feature
- C. custom_feature
- D. mymodule_feature_index
Answer: C
NEW QUESTION 73
What is the difference between online and offline shipping methods?
- A. Online means that a shipment will have a tracking number, and offline means no tracking numbers are available
- B. 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
- C. Online means Magento will use a shipping carrier's API to obtain rates, offline means Magento will calculate the rates internally
- 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: C
NEW QUESTION 74
You are implementing a custom module MyModule, which provides an implementation of
\Psr\Log\LoggerInterface called \MyCompany\MyModule\Logger.
The LoggerInterface has the default preference declared in app/etc/di.xml.
Keeping upgradability in mind, how do you make \MyCompany\MyModule\Logger the default implementation of the LoggerInterface globally?
- A. Declare a new preference for the LoggerInterface in
app/code/MyCompany/MyModule/etc/global/di.xml - B. Declare a new preference for the LoggerInterface in
app/code/myCompany/MyModule/etc/frontend/di.xml - C. Declare a new preference for the LoggerInterface in MyCompany/MyModule/etc/di.xml
- D. Overwrite the existing preference for the LoggerInterface in app/etc/di.xml
Answer: C
NEW QUESTION 75
A custom module must make changes to the schema following each setup:upgraderun. This must be done
after all other module's schema updates have been applied.
How is this accomplished?
- A. Update the module's setup_priorityin etc/modules.xml
- B. Write a plugin intercepting \Magento\Setup\Model\Installer::handleDBSchemaData
- C. Create an UpgradeSchemaAfterclass which implements InstallSchemaInterface
- D. Create a Recurringclass which implements InstallSchemaInterface
Answer: D
Explanation:
Explanation/Reference: https://www.pierrefay.com/magento2-training/install-upgrade-setup.html
NEW QUESTION 76
You are adding a child node to the product.info block using the XML:
How will this block be rendered?
- A. Automatically if the block class Custom implements the _toHtml method
- B. The layout is invalid since block elements cannot be nested
- C. Child block nodes are automatically rendered as HTML
- D. By calling $block->getChildHtml('mynewblock') in the parent block's template
Answer: D
NEW QUESTION 77
......
For more info read reference:
Magento 2 Associate Developer exam learning site Magento learning site
Pass Magento Magento-2-Certified-Associate-Developer Exam Quickly With PrepPDF: https://www.preppdf.com/Magento/Magento-2-Certified-Associate-Developer-prepaway-exam-dumps.html