Certbus > Adobe > Adobe Magento Commerce > AD0-E703 > AD0-E703 Online Practice Questions and Answers

AD0-E703 Online Practice Questions and Answers

Questions 4

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

Browse 135 Q&As
Questions 5

The constructor function for \Magento\Catalog\Model\Category contains this excerpt: With the automatic dependency injection that Magento provides, how is the StoreManagerInterface resolved?

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

Browse 135 Q&As
Questions 6

In layout files you can change al element's order on a page. This can be done using one of the following:

instruction

before and after element attributes?

How are two methods different?

A. They are the same, both provide access to the same functionality

B. Elements are renamed by default when using the move instruction

C. The move instruction allows altering an element's parent node

D. Before and after attributes can only be used with referenceContainer and referenceBlock

Browse 135 Q&As
Questions 7

You are working on a project that contains a million SKUs. The merchant has requested the product view page to have a custom color schema and page layout depending on the product price range.

How do you implement this, keeping simplicity in mind?

A. Create a custom block which will dynamically choose the appropriate template

B. Specify custom layout update XML in the admin panel for every product

C. Write a Data Patch which will set the appropriate layout update XML for every product record

D. Enable the dynamic product page UI component and configure it to use a different layout per price range

Browse 135 Q&As
Questions 8

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

A.

B.

C.

D.

Browse 135 Q&As
Questions 9

You are implementing a customization of the sales management within a module MyCompany_MySalesProcess. You have created several event observers to add the custom functionality. Each observer is a separate class, but they require some common functionality. How do you implement the common functionality in the event observers, keeping maintainability and testability in mind?

A. You create a trait with the common methods and use the trait in the observer classes.

B. You create an abstract class AbstractObserver with the common methods and extend the observer classes from it.

C. You create a regular class implementing the common functionality as public static methods and call those from the observers.

D. You create a regular class implementing the common functionality as public methods and use constructor injection to make them available to the observers.

Browse 135 Q&As
Questions 10

In a custom module you are adding a new field to the store configuration. The field will set the value for the configuration path mycompany/mymodule/myoption. How do you supply the default value for that configuration option?

A. In the config/default/mycompany/mymodule/myoption node in the etc/config.xml file

B. In the system/mycompany/group/mymodule/field/myoption node in the etc/system.xml file

C. In the menu/default/section/group/field node in the file etc/adminhtml/menu.xml

D. In the system/section/group/field/value node in the etc/adminhtml/system.xml file

Browse 135 Q&As
Questions 11

What is the connection between product attribute sets and categories?

A. Categories have no connection to product attribute sets, and any product can be assigned to any category

B. Each category is linked to a single product attribute set, and only products from that attribute set are allowed in the category

C. Each category is linked to a single product attribute set, and only products from that category's set or any of its parent categories'

D. Categories can be connected to multiple product attribute sets, and only products from one of those sets are allowed in the category

Browse 135 Q&As
Questions 12

You have created a module with a custom ACL resource and want to restrict access to resources of your module.

Which three items are restricted based on ACL role permissions? (Choose three.)

A. CLI Commands

B. Webapi resources

C. Storefront login

D. System configuration sections

E. Adminhtml controllers

Browse 135 Q&As
Questions 13

You are reviewing a theme in app/design/frontend/MyCompany/MyTheme and see the file etc/view.xml.

What is the function of this file?

A. It configures Grunt to compile assets for the theme

B. It stores theme and image configuration values

C. It specifies the applicable CSS files for the theme

D. It informs Magento that the theme is present and available for use

Browse 135 Q&As
Questions 14

Magento 2's architecture uses code to bootstrap a custom module that resides in app/code.

What two files are required to make a module usable? (Choose two.)

A. Helper/Data.php

B. etc/config.xml

C. etc/module.xml

D. registration.php

Browse 135 Q&As
Questions 15

\Magento\Sales\Model\Api\OrderRepositoryInterface::getList accepts a SearchCriteriaInterface to filter and sort information.

What class assists in creating an instance for SearchCriteriaInterface?

A. \Magento\Framework\Api\SearchCriteriaFactory

B. \Magento\Framework\Api\SearchCriteriaBuilder

C. \Magento\Sales\Model\Order\SearchCriteria

D. \Magento\Backend\Api\SearchCriteriaGenerator

Browse 135 Q&As
Questions 16

You are tasked with ensuring customers who log into the site are authorized. By default, this consists of ensuring the customers email and password match the values in the database. On this project, you need to verify additional data in this process.

Keeping in mind upgradeability, how is this done?

A. Create a before plugin for \Magento\Customer\Api\AccountManagementInterface's authenticate method

B. Create a mutation of a CustomerInterface object to intercept the username and password

C. Create an event observer for the user_save_after observer

D. Override \Magento\Customer\Controller\AccountController.php

Browse 135 Q&As
Questions 17

How do you instruct Magento to enable a new module?

A. bin/magento module:enable MyCompany_MyModule

B. Magento automatically enables all new modules.

C. Go to Admin > System > Module Management.

D. Add MyCompany_MyModule to the setup_module table.

Browse 135 Q&As
Questions 18

You are building a report using complex SQL aggregations to locate the required data.

In what type of class do you put these SQL statements?

A. Resource model

B. Repository

C. Model

D. Helper

Browse 135 Q&As
Exam Code: AD0-E703
Exam Name: Adobe Certified Expert - Magento Commerce Developer
Last Update: Apr 26, 2024
Questions: 135 Q&As

PDF

$45.99

VCE

$49.99

PDF + VCE

$59.99