Weekend Special Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code = simple70

Pass the Magento Certified Developer Magento-2-Certified-Associate-Developer Questions and answers with ExamsMirror

Practice at least 50% of the questions to maximize your chances of passing.
Exam Magento-2-Certified-Associate-Developer Premium Access

View all detail and faqs for the Magento-2-Certified-Associate-Developer exam


469 Students Passed

94% Average Score

92% Same Questions
Viewing page 1 out of 3 pages
Viewing questions 1-10 out of questions
Questions # 1:

You added a new constructor argument to an existing action controller class.

When you reload the page you get a PHP error that the wrong argument is passed to the class.

How do you fix this?

Options:

A.

Clean the page cache

B.

Deploy static content

C.

Clean the /generated/ folder

D.

Clean the config cache

Questions # 2:

How do you add a new link into the My Account sidebar?

Options:

A.

By creating a new UI component

B.

By creating a child of the My Account UI component

C.

By adding the new section into the customer_account table in the database

D.

By using a layout update

Questions # 3:

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.)

Options:

A.

Register my_module route for the AdminRouter in MyCompany/MyModule/etc/adminhtml/di.xml

B.

Create a new menu item in MyCompany/MyModule/etc/adminhtml/menu.xml

C.

Specify the my_module/custom_entity URL using a @route annotation in the action controller execute() method

D.

Register my_module route in MyCompany/MyModule/etc/adminhtml/routes.xml

Questions # 4:

How do you obtain customer information in a JavaScript module?

Options:

A.

Magento does not expose customer information in JavaScript for security reasons

B.

By sending an AJAX request to the url: /customer/account/info/?json=1

C.

By using customerData.get(‘customer’) call, where customerData is an instance of Magento_Customer/js/customer-data

D.

Customer information is available in localStorage and be retrieved by calling window.localStorage.getItem(‘customer’)

Questions # 5:

You have configured an event observer to watch the checkout_submit_all_after event using this XML:

Question # 5

What is the required class definition for the event observer?

Question # 5

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Questions # 6:

While reviewing a layout file named sales_order_view.xml you notice the element

What is the purpose of this element?

Options:

A.

Replaces the customer_account handle with sales_order_view

B.

Nothing, this element has been deprecated

C.

Adds the customer_account handle to the page’s handles list

D.

Updates the current page handle to customer_account

Questions # 7:

How do you set the custom block MyCompany\MyModule\Block\A as a child for the block named product.info using layout XML?

Question # 7

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Questions # 8:

What is a valid use case for an around plugin?

Options:

A.

The execution of the pluginized method must be suppressed

B.

The arguments of the before plugins must be modified

C.

The arguments of the after plugins must be modified

D.

The execution of the before and after plugins must be suppressed

Questions # 9:

You have added a new attribute origin of the type varchar to the product entity.

Which two calls will filter a product collection with origin set to “California”? (Choose two.)

Options:

A.

$collection->addFieldToFilter(‘origin’, “California”);

B.

$collection->addAttributeToSelect(‘origin’, “California”);

C.

$collection->joinAttribute(‘origin’, ‘catalog_product/origin’, ‘origin’, ‘California”);

D.

$collection->addAttributeToFilter(‘origin’, “California”);

Questions # 10:

You are working on a new entity called vendor. You implemented the model, resource model and collection. You want to ensure that standard model events will be fired for your model, so an observer can be created for the events vendor_save_after, vendor_save_commit_after and others.

How do you do that?

Options:

A.

Create an entry in etc/di.xml and add the argument eventPrefix with the value of vendor

B.

Declare the $_eventPrefix property in your vendor model and set it to vendor

C.

You must implement all appropriate methods and fire the events manually

D.

Ensure that the primary key in the corresponding table is named vendor_id

Viewing page 1 out of 3 pages
Viewing questions 1-10 out of questions
TOP CODES

TOP CODES

Top selling exam codes in the certification world, popular, in demand and updated to help you pass on the first try.