Dec-2021 Realistic Magento-2-Associate-Developer Exam Dumps with Accurate & Updated Questions
Magento-2-Associate-Developer Exam Dumps - PDF Questions and Testing Engine
How to book the Magento 2 Associate Developer Exam
There are following steps for registering the Magento 2 Associate Developer Exam.
- Step 1: Visit to Magento Exam Registration
- Step 2: Signup/Login to Magento account
- Step 3: Search for Magento 2 Associate Developer Certifications Exam
- Step 4: Select Date and Center of Exam and confirm with payment value of $195
NEW QUESTION 46
Which two tasks are supported by Magento CLI? (Choose two.)
- A. Administrator account creation
- B. Clearing cache
- C. Customer password reset
- D. Codebase deployment from developer machine to staging server
Answer: B,D
Explanation:
Explanation/Reference: https://www.magestore.com/magento-2-tutorial/3464-2/
NEW QUESTION 47
While reviewing a layout file named sales_order_view.xml you notice the element
<update handle="customer_account"/>
What is the purpose of this element?
- A. Replaces the customer_account handle with sales_order_view
- B. Updates the current page handle to customer_account
- C. Nothing, this element has been deprecated
- D. Adds the customer_account handle to the page's handles list
Answer: B
NEW QUESTION 48
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 last selected menu item for a user is stored in the DB so the previously visited page can be restored on the next login
- D. The resource is used to locate the correct translation for the attributes listed in title="..."
Answer: B
NEW QUESTION 49
A client has asked you to include category url keys in product URLs.
How is this done?
- A. Create an observer for controller_action_postdispatch_catalog_product_view
- B. Set the configuration value of catalog/seo/product_use_categories to Yes
- C. This is not possible because products can belong to multiple categories
- D. Create an after plugin on \Magento\UrlRewrite\Controller\Router::generateRewrite
Answer: B
NEW QUESTION 50
A merchant gives you the module MyCompany_MyModule to install.
How do you identify which REST endpoints are supported by the module?
- A. REST endpoints are declared in etc/webapi.xml
- B. Every public method of every interface in the Api folder automatically is exposed as a REST endpoint
- C. REST endpoints are declared in etc/webapi_rest/di.xml
- D. REST endpoints are declared in etc/rest.xml
Answer: A
NEW QUESTION 51
The constructor function for \Magento\Catalog\Model\Category contains this excerpt:
With the automatic dependency injection that Magento provides, how is the StoreManagerInterface resolved?
- A. If no $storeManager is provided, Magento's code generator creates a shell concrete class based on
\Magento\Store\Model\StoreManagerInterface - B. Magento throws an exception because you cannot instantiate an interface
- C. Magento finds all classes that implement \Magento\Store\Model\StoreManagerInterface (ordered
alphabetically) and injects the first class. - D. Magento looks to the di.xml files in the entire system for a preference node for \Magento\Store\Model
\StoreManagerInterface. This class is constructed and injected
Answer: A
NEW QUESTION 52
You got a notification about error that occurred on a production environment. The merchant gave you the error
identifier.
How do you find the error message based on the identifier?
- A. An error is written to the var/log/exception.logfile including the identifier
- B. An error message is written to the database table error_log with an error_idfield matching the
identifier - C. The error is sent to the pre-configured error email with the identifier in the subject
- D. A file with a name matching the identifier is written to the var/reportfolder
Answer: C
NEW QUESTION 53
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. Storefront login
- C. CLI Commands
- D. System configuration sections
- E. Webapi resources
Answer: A,B,D
NEW QUESTION 54
How do you add a foreign key to an existing table created by another module?
- A. This can only be done with raw SQL in a Schema Patch file
- B. Create etc/db_schema.xml file with the table node and constraint child node
- C. Create the etc/db_constraints.xml file and specify foreign key there in the constraint node
- D. Run the command bin/magento setup:db-schema:upgrade <table> <constraint declaration>
Answer: B
Explanation:
Explanation
https://magento.stackexchange.com/questions/192317/magento-2-how-to-add-foreign-key-in-update-schema
NEW QUESTION 55
You have created a new section in system configuration under the Catalog tab:
How do you restrict an access to the section using Magento ACL?
- A.

- B.

- C.

- D.

Answer: C
Explanation:
Explanation/Reference: https://www.mageplaza.com/magento-2-module-development/magento-2-acl-access-control-
lists.html
NEW QUESTION 56
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 57
In the module located at app/code/MyCompany/MyModulethere 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_USlocale is used.
What is the public URL for this file?
- A. https://magento.host/pub/static/frontend/Magento/luma/en_US/MyCompany_MyModule/register.js
- B. https://magento.host/pub/static/frontend/Magento/luma/en_US/MyCompany_MyModule/web/register.js
- C. https://magento.host/pub/static/frontend//Magento/luma/en_US/MyCompany_MyModule/js/register.js
- D. https://magento.host/app/code/MyCompany_MyModule/view/frontend/web/register.js
Answer: C
Explanation:
Explanation/Reference: https://devdocs.magento.com/guides/v2.3/javascript-dev-guide/javascript/js-resources.html
NEW QUESTION 58
You are debugging a problem resulting from a recently deployed around plugin. The plugin is intercepting the doSomething method. The aroundDoSomething plugin method is called successfully, but the original doSomething method is no longer being executed as expected.
What is causing this?
- A. The plugin implementation is skipping the execution of its callable argument
- B. The sort order of the plugin is too high and supersedes the priority of the intercepted method
- C. The plugin implementation overlooked using the AbstractPlugin parent class
- D. The plugin implementation returned something other than its callable argument
Answer: A
Explanation:
Explanation/Reference: https://github.com/magento/magento2/issues/11699
NEW QUESTION 59
You are adding a new menu item to the admin backend which will link to a custom backend page.
The declaration of the route:
What do you specify as the menu item action attribute value so it links to /admin/mycompany/mymodule/?
- A. action="mycompany/mymodule/"
- B. action="admin/mycompany/mymodule/"
- C. It is not possible without extending the adminhtml route in routes.xml
- D. action="adminhtml/mycompany/mymodule/"
Answer: A
Explanation:
Explanation/Reference: https://magento.stackexchange.com/questions/92236/magento-2-custom-admin-action-redirected- to-dashboard
NEW QUESTION 60
You have created a new section in system configuration under the Catalog tab:
How do you restrict an access to the section using Magento ACL?
- A. Option D
- B. Option A
- C. Option C
- D. Option B
Answer: D
NEW QUESTION 61
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 62
You want to declare a block of the type \Magento\Framework\View\Element\Template with a template named view.phtml in the layout XML.
What is the correct layout declaration for this?
- A. Option D
- B. Option B
- C. Option A
- D. Option C
Answer: D
NEW QUESTION 63
......
Pass Magento Magento-2-Associate-Developer Exam Quickly With VCEEngine: https://www.vceengine.com/Magento-2-Associate-Developer-vce-test-engine.html
