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

Note! Adobe has retired the AD0-E702 Exam Contact us through Live Chat or email us for more information.

AD0-E702 Adobe Commerce Developer Professional Questions and Answers

Questions 4

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 5

How can you access the select query of a collection?

Options:

A.

You can only access the select query after the collection has been loaded by calling the public method query()

B.

It is stored in a protected variable $query and can only be accessed from the inside of a collection class

C.

You can get it by using public method getSelect() which returns an instance of Magento\Framework\DB\Select

D.

The select query is not available in the collection class, it will be generated by the MySQL adapter right before executing a query

Buy Now
Questions 6

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?

Options:

A.

Controller/Custom/Index.php

B.

Controller/Custom.php

C.

Controller/MyModule/Custom/Index.php

D.

Controller/Frontend/MyModule/Custom.php

Buy Now
Questions 7

There are two different configurable products which both share one variation. The shared variation is represented by the same simple product.

A customer added both configurables to the cart with the same selected variation?

How will they be displayed?

Options:

A.

As two separate line items with quantity 1 each

B.

As one line item which lists both configurable products with quantity 1 each

C.

As one line item of the first product with quantity 2

D.

As one line item of the second product with quantity 2

Buy Now
Questions 8

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?

Options:

A.

etc/frontend/routes.xml

B.

etc/frontend/config.xml

C.

etc/config.xml

D.

etc/routes.xml

Buy Now
Questions 9

The constructor function for \Magento\Catalog\Model\Category contains this excerpt:

With the automatic dependency injection that Magento provides, how is the StoreManagerInterface resolved?

Options:

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

Questions 10

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

What is the required class definition for the event observer?

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Buy Now
Questions 11

You are working on a Magento store which will be selling in two countries. Each country has its own set of payment methods.

How do you organize the project to support this requirement?

Options:

A.

Create one website, two payment scopes

B.

Create one website, one store view

C.

Create one website, two store views

D.

Create two websites, two store views

Buy Now
Questions 12

A merchant gives you the module MyCompany_MyModule to install.

How do you identify which REST endpoints are supported by the module?

Options:

A.

REST endpoints are declared in etc/webapi_rest/di.xml

B.

Every public method of every interface in the Api folder automatically is exposed as a REST endpoint

C.

REST endpoints are declared in etc/rest.xml

D.

REST endpoints are declared in etc/webapi.xml

Buy Now
Questions 13

Your module adds a new controller class which will return a JSON response.

What will be the return type of the execute method?

Options:

A.

You should implement a new API endpoint instead of returning JSON from a controller

B.

The string value of \Zend_Json::encode()

C.

An instance of \Magento\Framework\Controller\Result\Json

D.

No return needed, an object that can be converted to JSON must be set as the Response body

Buy Now
Questions 14

What is the difference between online and offline shipping methods?

Options:

A.

Online means that a shipment will have a tracking number, and offline means no tracking numbers are available

B.

Online means Magento will use a shipping carrier’s API to obtain rates, offline means Magento will calculate the rates internally

C.

Online means that an item’s shipping will be processed by the merchant, offline means that it will be processed by the customer

D.

Online means that it will be sent to the customer using a shipping carrier, offline means the customer will pick up the order in person

Buy Now
Questions 15

A custom module must make changes to the schema following each setup:upgrade run. This must be done after all other module’s schema updates have been applied.

How is this accomplished?

Options:

A.

Write a plugin intercepting \Magento\Setup\Model\Installer::handleDBSchemaData

B.

Create an UpgradeSchemaAfter class which implements InstallSchemaInterface

C.

Update the module’s setup_priority in etc/modules.xml

D.

Create a Recurring class which implements InstallSchemaInterface

Buy Now
Exam Code: AD0-E702
Exam Name: Adobe Commerce Developer Professional
Last Update: Apr 14, 2023
Questions: 103