Labour Day Sale - Limited Time 60% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: 575363r9

Welcome To DumpsPedia

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

Questions 4

A merchant asks you to extend customer functionality to allow customer accounts to be associated with two or more billing addresses.

How is this implemented?

Options:

A.

By adding the attribute like customer_address_billing2 and customizing both My Account and Checkout functionality to use that new attribute

B.

By changing the System Configuration setting: Customer>Allow multiple billing addresses to Yes

C.

By altering the customer_entity table, adding the field billing_address2, and customizing both My Account and Checkout functionality to use that new field

D.

This is out-of-the box functionality

Buy Now
Questions 5

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?

Options:

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

Buy Now
Questions 6

You are adding a new entry to the backend menu that appears after

Marketing > SEO & Search > Site Map

You see the existing site map menu item is declared by the node:

What two actions do you take to configure the new menu entry location? (Choose two.)

Options:

A.

Specify item XML in the file etc/adminhtml/menu/marketing/seo/menu.xml

B.

Specify parent=”Magento_Sitemap::catalog_sitemap”

C.

Specify parent=”Magento_Backend::marketing_seo”

D.

Specify sortOrder=”100”

Buy Now
Questions 7

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

Buy Now
Questions 8

You want to remove a column introduced by a third-party extension via declarative schema.

How do you do that?

Options:

A.

Create the etc/db_schema.xml file and specify disable=”true” on the column

B.

Modify the original etc/db_schema.xml file and remove the column from there

C.

Create a SchemaPatch file and remove the column programmatically

D.

Copy the etc/db_schema.xml file into your module and remove the column from your copy

Buy Now
Questions 9

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?

Options:

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();

Buy Now
Questions 10

A module MyModule needs to send notifications to customers only when the account was modified from a mobile app using the REST web APIs.

You decided to implement an observer for customer_save_after_data_object event.

In which file do you declare the observer?

Options:

A.

etc/webapi_rest/events.xml

B.

etc/adminhtml/events.xml

C.

etc/webapi/rest_events.xml

D.

etc/events.xml

Buy Now
Questions 11

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

Options:

A.

Customer password reset

B.

Clearing cache

C.

Codebase deployment from developer machine to staging server

D.

Administrator account creation

Buy Now
Questions 12

A module you are working on needs to send a newsletter to all subscribed customers at predefined intervals.

Which two actions do you take to make sure the newsletter is sent? (Choose two.)

Options:

A.

Implement \MyCompany\MyModule\Cron\NewsLetterSender::execute and register it in etc/crontab/di.xml

B.

Implement \MyCompany\MyModule\Cron\NewsLetterSender::execute and register it in etc/crontab/.xml

C.

Make sure bin/magento cron:run is added to the system crontab

D.

Register the plugin for \Magento\Customer\Model\Customer::authenticate in etc/crontab.xml

Buy Now
Questions 13

In a code review of a merchant’s site you have discovered that there are multiple observers for the checkout_submit_all_after event. After closer inspection, you notice one of these observers is relying on the others being executed before it is called.

What risk does this pose, and how can it be mitigated?

Options:

A.

There is no risk posed as long as each event observer specifies a correct sortOrder. Nothing needs to be changed.

B.

Event observers are fired in alphabetical order of the observer name. There is no risk here.

C.

Magento only supports one observer per event. These observers will need to be combined into a single point of customization.

D.

Order of listener execution cannot be guaranteed, resulting in a fragile implementation. This code should be re-worked using plugins

Buy Now
Questions 14

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

Buy Now
Questions 15

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

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Buy Now
Exam Code: Magento-2-Certified-Associate-Developer
Exam Name: Magento 2 Certified Associate Developer Exam
Last Update: May 2, 2024
Questions: 103
$64  $159.99
$48  $119.99
$40  $99.99
buy now Magento-2-Certified-Associate-Developer