Printable & Easy to Use AD0-E702 Dumps 100% Same Q&A In Your Real Exam
AD0-E702 Practice Test Give You First Time Success with 100% Money Back Guarantee!
NEW QUESTION # 25
While reviewing a layout file named sales_order_view.xml you notice the element
<update handle="customer_account"/>
What is the purpose of this element?
- A. Nothing, this element has been deprecated
- B. Updates the current page handle to customer_account
- C. Replaces the customer_account handle with sales_order_view
- D. Adds the customer_account handle to the page's handles list
Answer: D
Explanation:
Explanation
https://devdocs.magento.com/guides/v2.2/frontend-dev-guide/layouts/xml-instructions.html#fedg_layout_xml-in
NEW QUESTION # 26
What is a valid use case for an around plugin?
- A. The arguments of the before plugins must be modified
- B. The execution of the pluginized method must be suppressed
- C. The execution of the before and after plugins must be suppressed
- D. The arguments of the after plugins must be modified
Answer: C
NEW QUESTION # 27
You are debugging a problem resulting from a recently deployed around plugin. The plugin is intercepting the doSomething method. The aroundDoSomething plugin method is called successfully, but the original doSomething method is no longer being executed as expected.
What is causing this?
- A. The plugin implementation returned something other than its callable argument
- B. The sort order of the plugin is too high and supersedes the priority of the intercepted method
- C. The plugin implementation is skipping the execution of its callable argument
- D. The plugin implementation overlooked using the AbstractPlugin parent class
Answer: C
NEW QUESTION # 28
You have been given the task of importing products from an external source. You decide to create a custom module to do this. The class handling the import creates a product for each record, sets the data on it and saves it to the database.
What do you inject into a constructor to represent each product you create?
- A. \Magento\Catalog\Api\Data\ProductInterfaceFactory
- B. \Magento\Catalog\Model\ProductBuilder
- C. \Magento\Catalog\Api\Data\ProductInterface
- D. \Magento\Catalog\Model\Product
Answer: A
NEW QUESTION # 29
How can you access the select query of a collection?
- 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. The select query is not available in the collection class, it will be generated by the MySQL adapter right before executing a query
- D. You can get it by using public method getSelect() which returns an instance of Magento\Framework\DB\Select
Answer: D
NEW QUESTION # 30
You are implementing a custom module MyModule, which provides an implementation of
\Psr\Log\LoggerInterface called \MyCompany\MyModule\Logger.
The LoggerInterface has the default preference declared in app/etc/di.xml.
Keeping upgradability in mind, how do you make \MyCompany\MyModule\Logger the default implementation of the LoggerInterface globally?
- A. Declare a new preference for the LoggerInterface in MyCompany/MyModule/etc/di.xml
- B. Overwrite the existing preference for the LoggerInterface in app/etc/di.xml
- C. Declare a new preference for the LoggerInterface in app/code/MyCompany/MyModule/etc/global/di.xml
- D. Declare a new preference for the LoggerInterface in app/code/myCompany/MyModule/etc/frontend/di.xml
Answer: A
NEW QUESTION # 31
You are working on a jewelry store that sells rings. Each ring allows an adjustment in size. The customer specifies finger size in inches and the merchant physically adjusts the stocked ring to the required size.
How is this represented in Magento?
- A. Using custom options, with rings as simple products
- B. Using custom options, with rings as bundle products
- C. Using categories, with each ring size as a separate product
- D. Using configurable products, with ring size as an attributive value
Answer: A
NEW QUESTION # 32
A merchant tasks you to keep sales managers out of the system configuration backend pages.
How do you do that using the admin interface?
- A. This is not possible in a native Magento instance and requires customization
- B. You create a role with access to the system configuration pages and assign it to all users except the sales managers
- C. You create a role with limited permissions and assign all sales manager users to the new role
- D. You remove access to the restricted pages from each user's ACL settings
Answer: C
NEW QUESTION # 33
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?
- A. etc/module.xml
- B. etc/config.xml
- C. etc/di.xml
- D. composer.json
Answer: D
NEW QUESTION # 34
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. Enable the dynamic product page UI component and configure it to use a different layout per price range
- B. Create a custom block which will dynamically choose the appropriate template
- C. Write a Data Patch which will set the appropriate layout update XML for every product record
- D. Specify custom layout update XML in the admin panel for every product
Answer: B
Explanation:
Explanation
https://www.rohanhapani.com/magento-2-change-product-view-page-layout-based-on-price/
NEW QUESTION # 35
A Magento industry partner shipping provider has tasked you to build their integration module called MyCompany_ShippingProvider.
Where do you define the class that provides options for the select field that enables or disables the provider in the file etc/adminhtml/system.xml?
- A. <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
- B. <option_model>Magento\Config\Model\Config\Option\Yesno</option_model>
- C. <backend_model>Magento\Config\Model\Config\Backend\Yesno</backend_model>
- D. <frontend_model>Magento\Config\Model\Config\Frontend\Yesno</frontend_model>
Answer: A
NEW QUESTION # 36
What order operation is available in the My Account section in the storefront?
- A. Reorder
- B. Edit order
- C. Invoice
- D. Refund
Answer: A
NEW QUESTION # 37
\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\SearchCriteriaBuilder
- B. \Magento\Sales\Model\Order\SearchCriteria
- C. \Magento\Framework\Api\SearchCriteriaFactory
- D. \Magento\Backend\Api\SearchCriteriaGenerator
Answer: A
NEW QUESTION # 38
Products may be accessed using SEO friendly URLs like /my-product instead of /catalog/product/view/id/{ID} How is this one?
- A. Using a URL Rewrite stored in the database connecting the request path with the target path
- B. A plugin on \Magento\UrlRewrite\Controller\Router::match loads products by the url_key attribute
- C. An event observer adds RewriteRules to .htaccess on product save
- D. Magento\Catalog\Controller\Product\View::loadByUrlKey loads product pages using the url_key attribute value
Answer: A
NEW QUESTION # 39
You added a plugin declaration to MyCompany/MyModule/etc/di.xml:
What will be the effect of this declaration?
- A. An exception because of the syntax error in the declaration
- B. The plugin will be ignored because ActionInterface will never be instantiated directly
- C. An exception because plugins must not be applied to the interfaces
- D. The plugin will be applied to all implementors of the ActionInterface
Answer: D
Explanation:
Explanation
https://stackoverflow.com/questions/62734221/magento2-writing-plugins-for-interface
NEW QUESTION # 40
You are working on a new entity called vendor. You implemented the model, resource model and collection.
You want to ensure that standard model events will be fired for your model, so an observer can be created for the events vendor_save_after, vendor_save_commit_after and others.
How do you do that?
- A. Create an entry in etc/di.xml and add the argument eventPrefix with the value of vendor
- B. You must implement all appropriate methods and fire the events manually
- C. Ensure that the primary key in the corresponding table is named vendor_id
- D. Declare the $_eventPrefix property in your vendor model and set it to vendor
Answer: D
NEW QUESTION # 41
What is the relationship between products and categories in Magento?
- A. Product to category relation is dynamically defined by Catalog Product Rules
- B. Each product belongs to zero or one category
- C. Products may be assigned to zero or more categories
- D. Each product always belongs to one category
Answer: C
NEW QUESTION # 42
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.)
- A. Specify the my_module/custom_entity URL using a @route annotation in the action controller execute() method
- B. Create a new menu item in MyCompany/MyModule/etc/adminhtml/menu.xml
- C. Register my_module route for the AdminRouter in MyCompany/MyModule/etc/adminhtml/di.xml
- D. Register my_module route in MyCompany/MyModule/etc/adminhtml/routes.xml
Answer: B,D
NEW QUESTION # 43
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 resource is used to locate the correct translation for the attributes listed in title="..."
- 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 menu item will only be visible to users who are assigned to a role with access to the matching ACL resource
Answer: D
NEW QUESTION # 44
You are setting up a brand new Magento installation for a merchant who is migrating from Magento 1 to Magento 2.
Keeping in mind upgradability and the need to customize, which one do you choose?
- A. Create a new Magento instance by using the bin/magento install command
- B. Clone the magento/magento2 GitHub repository
- C. Run php bin/magento setup:migrate <path-to-m1-installation> <new-version> command
- D. Create a new Magento instance using composer create-project
Answer: D
NEW QUESTION # 45
You are developing a new theme which inherits from the Magento_Luma theme.
How is this accomplished?
- A. Add Magento/luma to etc/view.xml
- B. Specify the parent theme in Magento admin > Design > Configuration
- C. Run the CLI command bin/magento dev:theme:inherit Magento_Luma
- D. Add Magento/luma to theme.xml
Answer: D
NEW QUESTION # 46
You got a notification about error that occurred on a production environment. The merchant gave you the error identifier.
How do you find the error message based on the identifier?
- A. A file with a name matching the identifier is written to the var/report folder
- B. An error message is written to the database table error_log with an error_id field matching the identifier
- C. The error is sent to the pre-configured error email with the identifier in the subject
- D. An error is written to the var/log/exception.log file including the identifier
Answer: C
NEW QUESTION # 47
You have created a new section in system configuration under the Catalog tab:
How do you restrict an access to the section using Magento ACL?
- A. Option D
- B. Option C
- C. Option A
- D. Option B
Answer: D
NEW QUESTION # 48
You need to find all orders in the processing state. You have written the code:
How do you resolve the exception?
- A. Change the getList parameter to: $searchCriteraBuilder->addFilter('state','processing')->create()
- B. Clear generated code to get a new version of SearchCriteriaBuilder
- C. Specify a preference in di.xml to map SearchCriteriaBuilder to SearchCriteriaInterface
- D. Use dependency injection to load an instance of the SearchCriteria class
Answer: A
NEW QUESTION # 49
How do you add a new link into the My Account sidebar?
- A. By adding the new section into the customer_account table in the database
- B. By using a layout update
- C. By creating a child of the My Account UI component
- D. By creating a new UI component
Answer: B
NEW QUESTION # 50
......
The Adobe AD0-E702 certification exam is designed for those who want to demonstrate their expertise in Magento Commerce development. Magento is one of the most popular e-commerce platforms in the world, and it powers the online stores of many large businesses. This certification will validate your knowledge and skills in developing and managing Magento Commerce websites.
Fully Updated Free Actual Adobe AD0-E702 Exam Questions: https://www.vceprep.com/AD0-E702-latest-vce-prep.html