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

Adobe Commerce AD0-E702 Syllabus Exam Questions Answers

Page: 3 / 4
Total 103 questions

Adobe Commerce Developer Professional Questions and Answers

Question 9

You are writing a customization for the customer module. You need to make sure the configuration files from your module are loaded after the customer module’s configuration.

Where should the dependency be declared?

Options:

A.

composer.json

B.

etc/module.xml

C.

etc/config.xml

D.

etc/di.xml

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?

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

Question 11

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

Question 12

A third-party module uses a layout update that changes the template path for a core block from product/view/addto/compare.phtml of the Magento_Catalog module to custom/view/addto/compare.phtml of your custom module. The merchant has a customized version of this template in their custom theme.

What is a consequence of this setup?

Options:

A.

If the custom module is removed, the custom template will no longer apply

B.

This setup will throw an IllegalStateException

C.

If a preference for the core block is set, the template will no longer apply

D.

If another module is installed which also customizes the same core template, the templates will be rendered sequentially

Page: 3 / 4
Total 103 questions