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

Free and Premium Adobe AD0-E702 Dumps Questions Answers

Page: 1 / 4
Total 103 questions

Adobe Commerce Developer Professional Questions and Answers

Question 1

You want to declare a block of the type \Magento\Framework\View\Element\Template with a template named view.phtml in the layout XML.

What is the correct layout declaration for this?

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Buy Now
Question 2

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

Options:

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

Question 3

You are tasked to install an extension to the merchant’s Magento instance.

The extension is developed by the company called MyCompany and its codebase is available from all four locations listed below.

Which two installations options do you choose from to prevent version conflicts during upgrade? (Choose two.)

Options:

A.

Clone the code from GitHub and put it into the vendor directory

B.

Download the extension code from the developer’s website, and put it into app/code

C.

Use Magento web setup wizard to pull the code from Magento’s composer repository

D.

Use composer CLI to pull the code from MyCompany’s repository

Question 4

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

Question 5

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

Question 6

What scopes are available for customer attributes?

Options:

A.

Global only

B.

Website only

C.

Global and Website

D.

Global, Website and Store

Question 7

What are two functions of a resource model? (Choose two.)

Options:

A.

It executes create, retrieve, update and delete actions for an entity

B.

It loads lists of entity models

C.

It is made available in the Magento API for the purpose of data manipulation

D.

It maps an entity to one or more database rows

Question 8

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

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

Question 13

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

How do you resolve the exception?

Options:

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

Question 14

You are developing a new theme which inherits from the Magento_Luma theme.

How is this accomplished?

Options:

A.

Add Magento/luma to theme.xml

B.

Run the CLI command bin/magento dev:theme:inherit Magento_Luma

C.

Specify the parent theme in Magento admin > Design > Configuration

D.

Add Magento/luma to etc/view.xml

Question 15

You are developing a module MyCompany_StoreInfo to display information about brick and mortar stores on a frontend page. The displayed information varies based on the country of a given store.

What two elements automatically render their children? (Choose two.)

Options:

A.

B.

C.

D.

Page: 1 / 4
Total 103 questions