Labour Day Special - Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: top65certs

Magento Magento-2-Certified-Associate-Developer Questions Answers

Magento 2 Certified Associate Developer Exam Questions and Answers

Question 9

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/?

Options:

A.

action=”adminhtml/mycompany/mymodule/”

B.

action=”admin/mycompany/mymodule/”

C.

It is not possible without extending the adminhtml route in routes.xml

D.

action=”mycompany/mymodule/”

Question 10

A client has asked you to include category url keys in product URLs.

How is this done?

Options:

A.

Create an observer for controller_action_postdispatch_catalog_product_view

B.

This is not possible because products can belong to multiple categories

C.

Set the configuration value of catalog/seo/product_use_categories to Yes

D.

Create an after plugin on \Magento\UrlRewrite\Controller\Router::generateRewrite

Question 11

You are working on a custom web API endpoint and have configured it in etc/webapi.xml. This config is cached as part of the config_webservice cache type.

Keeping performance in mind, how do you refresh the cached version of this config using Magento CLI?

Options:

A.

cache:clean config_webservice

B.

cache:refresh config_webservice

C.

cache:flush

D.

cache:purge

Question 12

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

Options:

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