Spring Sale Special Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: buysanta

Exact2Pass Menu

Magento 2 Certified Associate Developer Exam

Last Update 2 hours ago Total Questions : 103

The Magento 2 Certified Associate Developer Exam content is now fully updated, with all current exam questions added 2 hours ago. Deciding to include Magento-2-Certified-Associate-Developer practice exam questions in your study plan goes far beyond basic test preparation.

You'll find that our Magento-2-Certified-Associate-Developer exam questions frequently feature detailed scenarios and practical problem-solving exercises that directly mirror industry challenges. Engaging with these Magento-2-Certified-Associate-Developer sample sets allows you to effectively manage your time and pace yourself, giving you the ability to finish any Magento 2 Certified Associate Developer Exam practice test comfortably within the allotted time.

Question # 4

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.

CLI Commands

B.

Webapi resources

C.

Storefront login

D.

System configuration sections

E.

Adminhtml controllers

Question # 5

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 finds all classes that implement \Magento\Store\Model\StoreManagerInterface (ordered alphabetically) and injects the first class.

C.

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

D.

Magento throws an exception because you cannot instantiate an interface

Question # 6

You have created a module controller that responds to the following URL: /mycompany/product/load/id/123.

Which two methods will load the product model by ID as specified in the URL? (Choose two.)

A.

\Magento\Catalog\Model\ResourceModel\Product::load($productModel, $id)

B.

\Magento\Catalog\Model\ResourceModel\Product\Collection::load()- > fetchById($id)

C.

\Magento\Catalog\Model\ResourceModel\Product\Collection::fetchItemById($id)

D.

\Magento\Catalog\Api\ProductRepositoryInterface::getById($id)

Question # 7

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/Custom/Index.php

B.

Controller/Custom.php

C.

Controller/MyModule/Custom/Index.php

D.

Controller/Frontend/MyModule/Custom.php

Question # 8

You are reviewing a theme in app/design/frontend/MyCompany/MyTheme and see the file etc/view.xml.

What is the function of this file?

A.

It configures Grunt to compile assets for the theme

B.

It stores theme and image configuration values

C.

It specifies the applicable CSS files for the theme

D.

It informs Magento that the theme is present and available for use

Question # 9

Which two tasks are supported by Magento CLI? (Choose two.)

A.

Customer password reset

B.

Clearing cache

C.

Codebase deployment from developer machine to staging server

D.

Administrator account creation

Question # 10

A custom module needs to log all calls of \Magento\Customer\Api\AddressRepositoryInterface::save().

Which mechanism do you use?

A.

An observer on the customer_address_repository_save event, which is automatically fired for every repository save

B.

A proxy configured to intercept all calls to any public method and log them

C.

An extension attribute configured in the extension_attributes.xml

D.

A plugin declared for the save() method

Go to page: