[Oct-2022] AD0-E702 Certification with Actual Questions from PracticeDump
Updated AD0-E702 Dumps PDF - AD0-E702 Real Valid Brain Dumps With 105 Questions!
NEW QUESTION 15
You are adding a new menu item to the admin backend which will link to a custom backend page.
The declaration of the route:
What do you specify as the menu item action attribute value so it links to /admin/mycompany/mymodule/?
- A. It is not possible without extending the adminhtml route in routes.xml
- B. action="admin/mycompany/mymodule/"
- C. action="mycompany/mymodule/"
- D. action="adminhtml/mycompany/mymodule/"
Answer: C
NEW QUESTION 16
A module declares the route:
What is the layout handle of the storefront path /custom/feature/?
- A. mymodule_feature_index
- B. custom_feature_index
- C. mymodule_feature
- D. custom_feature
Answer: A
NEW QUESTION 17
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 bundle products
- B. Using custom options, with rings as simple products
- C. Using categories, with each ring size as a separate product
- D. Using configurable products, with ring size as an attributive value
Answer: B
NEW QUESTION 18
What will be the result of calling the save() method on a collection instance?
- A. It will save the select query execution result into the cache
- B. It will loop over all items and call save () on each one
- C. It will save all items with one INSERT ... ON DUPLICATE KEY UPDATE query
- D. It will save the select query to the cache
Answer: B
NEW QUESTION 19
You have created a new block and will be adding this block on every page. The block contains user-specific information and cannot be cached. The block is added to the default.xml with:
What does this accomplish?
- A. FPC will be bypassed for this block and all other page content will be cached
- B. The block will be loaded on the store front using AJAX
- C. All store front pages are no longer cacheable
- D. FPC will cache the block content for all cacheable pages
Answer: C
Explanation:
Explanation
https://magento.stackexchange.com/questions/103256/how-to-disable-the-cache-for-the-block-in-magento-2
NEW QUESTION 20
Which two ways does Magento persist category relationships in the database? (Choose two.)
- A. Using comma-separated values in the parent-ids field
- B. in the parent_id field
- C. in the table catalog_category_index
- D. Using slash-separated values in the path field
Answer: B,C
NEW QUESTION 21
Where do you change the frontName for the admin router?
- A. app/etc/config.xml
- B. app/etc/local.xml
- C. composer.json
- D. app/etc/env.php
Answer: D
NEW QUESTION 22
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 mutation of a CustomerInterface object to intercept the username and password
- B. Create a before plugin for \Magento\Customer\Api\AccountManagementInterface's authenticate method
- C. Override \Magento\Customer\Controller\AccountController.php
- D. Create an event observer for the user_save_after observer
Answer: B
NEW QUESTION 23
What order operation is available in the My Account section in the storefront?
- A. Refund
- B. Edit order
- C. Invoice
- D. Reorder
Answer: D
NEW QUESTION 24
What happens when a category's is_anchor attribute is set to 1?
- A. The category will always be visible in the menu
- B. The customer will see all products from all children of the category
- C. This is the default category for a website
- D. Products without a specified category will be associated with this category
Answer: B
NEW QUESTION 25
The module MyCompany_MyModule will add a new page to the admin interface at the URL path admin/mycompany/entity_grid.
How do you name the file containing the action controller class so the admin router matches the path to the class?
- A. Controller/Adminhtml/Entity/Grid/Index.php
- B. Controller/Adminhtml/Mycompany/Entity/Grid.php
- C. Controller/Adminhtml/Mycompany/Entity_Grid.php
- D. Controller/Adminhtml/Entity/Grid.php
Answer: C
NEW QUESTION 26
How can you access the select query of a collection?
- A. It is stored in a protected variable $query and can only be accessed from the inside of a collection class
- B. You can only access the select query after the collection has been loaded by calling the public method query()
- C. You can get it by using public method getSelect() which returns an instance of Magento\Framework\DB\Select
- D. The select query is not available in the collection class, it will be generated by the MySQL adapter right before executing a query
Answer: C
NEW QUESTION 27
Which three scopes can be used to set different System Configuration values in Magento? (Choose three.)
- A. Language
- B. Store View
- C. Area
- D. Website
- E. Store
Answer: B,C,D
NEW QUESTION 28
How do you obtain customer information in a JavaScript module?
- A. By using customerData.get('customer') call, where customerData is an instance of Magento_Customer/js/customer-data
- B. By sending an AJAX request to the url: /customer/account/info/?json=1
- C. Customer information is available in localStorage and be retrieved by calling window.localStorage.getItem('customer')
- D. Magento does not expose customer information in JavaScript for security reasons
Answer: A
NEW QUESTION 29
A merchant asks you to extend customer functionality to allow customer accounts to be associated with two or more billing addresses.
How is this implemented?
- A. This is out-of-the box functionality
- B. By adding the attribute like customer_address_billing2 and customizing both My Account and Checkout functionality to use that new attribute
- C. By altering the customer_entity table, adding the field billing_address2, and customizing both My Account and Checkout functionality to use that new field
- D. By changing the System Configuration setting: Customer>Allow multiple billing addresses to Yes
Answer: A
NEW QUESTION 30
During a code review of a module MyCompany_PaymentCurrencies you see a configuration field declared in the file etc/adminhtml/system.xml:
What is the consequence of the attribute showInStore being set to 0?
- A. The input field will only be visible if a website's default store scope is selected in the system configuration
- B. The input field will be disabled if a store view scope is selected in the system configuration
- C. The field value will not be accessible on the store front by calling ScopeConfigInterface::getValue() with a $scopeType argument of 'store'.
- D. The input field will not be visible if a store view scope is selected in the system configuration
Answer: D
NEW QUESTION 31
You added a new constructor argument to an existing action controller class.
When you reload the page you get a PHP error that the wrong argument is passed to the class.
How do you fix this?
- A. Deploy static content
- B. Clean the <magento_root>/generated/ folder
- C. Clean the page cache
- D. Clean the config cache
Answer: B
Explanation:
Explanation
https://magento.stackexchange.com/questions/78826/creating-custom-module-in-magento2-show-fatal-error
NEW QUESTION 32
You are adding a new entry to the backend menu that appears after
Marketing > SEO & Search > Site Map
You see the existing site map menu item is declared by the node:
What two actions do you take to configure the new menu entry location? (Choose two.)
- A. Specify sortOrder="100"
- B. Specify parent="Magento_Backend::marketing_seo"
- C. Specify parent="Magento_Sitemap::catalog_sitemap"
- D. Specify item XML in the file etc/adminhtml/menu/marketing/seo/menu.xml
Answer: A,B
NEW QUESTION 33
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. 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 theme.xml
Answer: D
NEW QUESTION 34
How many shipping addresses may be selected for an order during the checkout process?
- A. Only one shipping address per order is possible
- B. One shipping address per product type is possible
- C. One shipping address per line item is possible
- D. One shipping addresses per unit of quantity is possible
Answer: A
NEW QUESTION 35
The module MyCompany_MyModule provides custom admin interface pages.
Access to these pages should only be granted to specific users.
You add the required configuration to the module's acl.xml file, but the setting does not seem to work as expected.
How do you visually check if Magento evaluates your ACL resource as expected?
- A. Inspect the output of the CLI command bin/magento admin:role:resources - all
- B. Inspect the response of a GET request to the webapi endpoint http://example.com/rest/V1/acl/resources
- C. In the browser, open the admin User Roles page. Choose a role and inspect the tree of available resources
- D. Write a plugin for the class \Magento\Framework\Acl\LoaderInterface::populateAcl() and echo out the loaded roles
Answer: C
NEW QUESTION 36
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/events.xml
- C. etc/adminhtml/events.xml
- D. etc/webapi/rest_events.xml
Answer: A
NEW QUESTION 37
......
Pass Your AD0-E702 Exam Easily With 100% Exam Passing Guarantee: https://pass4sure.practicedump.com/AD0-E702-exam-questions.html