Winter Sale Special Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: v4s65

Magento-2-Certified-Associate-Developer Exam Dumps - Magento 2 Certified Associate Developer Exam

Go to page:
Question # 9

A module you are developing requires the addition of new routes that should be accessible in the store front.

Where do you define your module’s frontName?

A.

etc/frontend/routes.xml

B.

etc/frontend/config.xml

C.

etc/config.xml

D.

etc/routes.xml

Full Access
Question # 10

You need to find all orders in the processing state. You have written the code:

When you run the code, you get the following exception:

How do you resolve the exception?

A.

Specify a preference in di.xml to map SearchCriteriaBuilder to SearchCriteriaInterface

B.

Use dependency injection to load an instance of the SearchCriteria class

C.

Change the getList parameter to: $searchCriteriaBuilder->addFilter(‘state’, ‘processing’)->create()

D.

Clear generated code to get a new version of SearchCriteriaBuilder

Full Access
Question # 11

In the module located at app/code/MyCompany/MyModule there 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_US locate is used.

What is the public URL for this file?

A.

https://magento.host/pub/static/frontend//Magento/luma/en_US/MyCompany_MyModule/js/register.js

B.

https://magento.host/pub/static/frontend/Magento/luma/en_US/MyCompany_MyModule/register.js

C.

https://magento.host/pub/static/frontend/Magento/luma/en_US/MyCompany_MyModule/web/register.js

D.

https://magento.host/app/code/MyCompany_MyModule/view/frontend/web/register.js

Full Access
Question # 12

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

Full Access
Question # 13

You have been asked to display details from the customer’s latest order on the customer’s account dashboard (customer/account/). You create a new custom template to show the information.

How do you obtain an order repository so you can fetch an order?

A.

Create a view model and specify an OrderRepositoryInterface argument in the _construct method

B.

In your template, add the following:$orderRepository=ObjectManager::getInstance()->get(OrderRepositoryInterface::class);

C.

In your block, add a method with the following:return ObjectManager::getInstance()->get(OrderRepositoryInterface::class);

D.

In your template, add the following:$orderRepository = new OrderRepository();

Full Access
Question # 14

Which three scopes can be used to set different System Configuration values in Magento? (Choose three.)

A.

Language

B.

Area

C.

Store View

D.

Store

E.

Website

Full Access
Question # 15

How can you render a text on a page using only layout xml?

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Full Access
Go to page: