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

AD0-E702 Questions and Answers

Note! Following AD0-E702 Exam is Retired now. Please select the alternative replacement for your Exam Certification.

AD0-E702 Questions and Answers

Question # 6

Magento allows you to specify custom values per store for product attributes created in the admin panel.

Which architectural pattern makes it possible?

A.

Store Manager

B.

Extension Attribute

C.

Entity Attribute Value

D.

Dependency Injection

Full Access
Question # 7

What will be the result of calling the save() method on a collection instance?

A.

It will save all items with one INSERT … ON DUPLICATE KEY UPDATE query

B.

It will loop over all items and call save () on each one

C.

It will save the select query execution result into the cache

D.

It will save the select query to the cache

Full Access
Question # 8

What is the relationship between products and categories in Magento?

A.

Products may be assigned to zero or more categories

B.

Product to category relation is dynamically defined by Catalog Product Rules

C.

Each product belongs to zero or one category

D.

Each product always belongs to one category

Full Access
Question # 9

How do you add a foreign key to an existing table created by another module?

A.

Create etc/db_schema.xml file with the table node and constraint child node

B.

Run the command bin/magento setup:db-schema:upgrade <table>

C.

This can only be done with raw SQL in a Schema Patch file

D.

Create the etc/db_constraints.xml file and specify foreign key there in the constraint node

Full Access
Question # 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?

A.

etc/webapi_rest/events.xml

B.

etc/adminhtml/events.xml

C.

etc/webapi/rest_events.xml

D.

etc/events.xml

Full Access
Question # 11

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

How do you resolve the exception?

A.

Use dependency injection to load an instance of the SearchCriteria class

B.

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

C.

Clear generated code to get a new version of SearchCriteriaBuilder

D.

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

Full Access
Question # 12

You are adding an entry to the backend menu. To do so you open a core etc/adminhtml/menu.xml file as a reference. In the file you see the node:

What is the result of specifying resource=”Magento_Catalog::catalog”?

A.

The menu item will only be visible to users who are assigned to a role with access to the matching ACL resource

B.

The menu item will only be visible if the class method specified by the resource returns a true value

C.

The last selected menu item for a user is stored in the DB so the previously visited page can be restored on the next login

D.

The resource is used to locate the correct translation for the attributes listed in title=”…”

Full Access
Question # 13

You have created a custom module which must perform an action immediately after an order is placed, but only on the store front of the merchant site. You have selected the checkout_submit_all_after as the target event which the module will observe.

In which file will the event observer be declared?

A.

etc/frontend.xml

B.

etc/events.xml

C.

etc/config.xml

D.

etc/frontend/events.xml

Full Access
Question # 14

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?

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

Full Access
Question # 15

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

How do you do that?

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

Full Access