Positive Aspects of Valid Dumps AD0-E702 Exam Dumps! [Aug-2022]
First Attempt Guaranteed Success in AD0-E702 Exam 2022
NEW QUESTION 51
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. Helper
- B. Resource model
- C. Model
- D. Repository
Answer: B
NEW QUESTION 52
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 last selected menu item for a user is stored in the DB so the previously visited page can be restored on the next login
- C. The menu item will only be visible to users who are assigned to a role with access to the matching ACL resource
- D. The menu item will only be visible if the class method specified by the resource returns a true value
Answer: C
NEW QUESTION 53
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\Model\ProductBuilder
- B. \Magento\Catalog\Model\Product
- C. \Magento\Catalog\Api\Data\ProductInterface
- D. \Magento\Catalog\Api\Data\ProductInterfaceFactory
Answer: D
NEW QUESTION 54
You added a plugin declaration to MyCompany/MyModule/etc/di.xml:
What will be the effect of this declaration?
- A. The plugin will be applied to all implementors of the ActionInterface
- B. The plugin will be ignored because ActionInterface will never be instantiated directly
- C. An exception because of the syntax error in the declaration
- D. An exception because plugins must not be applied to the interfaces
Answer: A
Explanation:
Explanation
https://stackoverflow.com/questions/62734221/magento2-writing-plugins-for-interface
NEW QUESTION 55
You have been asked to display details from the customer's latest order on the customer's account dashboard (customer/account/). You create a new custom template to show the information.
How do you obtain an order repository so you can fetch an order?
- A. Create a view model and specify an OrderRepositoryInterface argument in the _construct method
- B. In your block, add a method with the following:return
ObjectManager::getInstance()->get(OrderRepositoryInterface::class); - C. In your template, add the following:$orderRepository = new OrderRepository();
- D. In your template, add the
following:$orderRepository=ObjectManager::getInstance()->get(OrderRepositoryInterface::class);
Answer: A
NEW QUESTION 56
A module you are working on needs to send a newsletter to all subscribed customers at predefined intervals.
Which two actions do you take to make sure the newsletter is sent? (Choose two.)
- A. Implement \MyCompany\MyModule\Cron\NewsLetterSender::execute and register it in etc/crontab/.xml
- B. Register the plugin for \Magento\Customer\Model\Customer::authenticate in etc/crontab.xml
- C. Make sure bin/magento cron:run is added to the system crontab
- D. Implement \MyCompany\MyModule\Cron\NewsLetterSender::execute and register it in etc/crontab/di.xml
Answer: A,C
NEW QUESTION 57
You need to find all orders in the processing state. You have written the code:
How do you resolve the exception?
- A. Clear generated code to get a new version of SearchCriteriaBuilder
- B. Use dependency injection to load an instance of the SearchCriteria class
- C. Change the getList parameter to: $searchCriteraBuilder->addFilter('state','processing')->create()
- D. Specify a preference in di.xml to map SearchCriteriaBuilder to SearchCriteriaInterface
Answer: C
NEW QUESTION 58
You are reviewing a Magento module and see a directory named Service.
What can you determine from this directory's name?
- A. It is where the API response cache is stored
- B. You need to review the files in this folder to understand its purpose
- C. It is where API-related configuration resides
- D. It is where the module's service contracts are stored
Answer: B
NEW QUESTION 59
You are adding a child node to the product.info block using the XML:
How will this block be rendered?
- A. By calling $block->getChildHtml('mynewblock') in the parent block's template
- B. Child block nodes are automatically rendered as HTML
- C. Automatically if the block class Custom implements the _toHtml method
- D. The layout is invalid since block elements cannot be nested
Answer: A
NEW QUESTION 60
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. Storefront login
- B. CLI Commands
- C. System configuration sections
- D. Webapi resources
- E. Adminhtml controllers
Answer: C,D,E
NEW QUESTION 61
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 categories, with each ring size as a separate product
- B. Using configurable products, with ring size as an attributive value
- C. Using custom options, with rings as simple products
- D. Using custom options, with rings as bundle products
Answer: C
NEW QUESTION 62
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.)
- A. Use Magento web setup wizard to pull the code from Magento's composer repository
- B. Clone the code from GitHub and put it into the vendor directory
- C. Download the extension code from the developer's website, and put it into app/code
- D. Use composer CLI to pull the code from MyCompany's repository
Answer: C,D
NEW QUESTION 63
A merchant tasked you to add an input field for notes to the Customer Account Information backend page.
Which three actions do you specify in a module's Data Patch to add a customer notes attribute? (Choose three.)
- A. $notesAttribute->setData('used_in_forms', ['adminhtml_customer']);
- B. $cache->clean(['eav', 'db_ddl']);
- C. $customerSetup->addAttributeToSet('customer', $attributeSetIdCustomer, $groupId, 'notes');
- D. $customerSetup->getConnection()->addColumn('customer_entity', 'notes', $columnSpecs);
- E. $customerSetup->addAttribute('customer', 'notes', $options);
Answer: A,B,E
NEW QUESTION 64
What is the connection between product attribute sets and categories?
- A. Categories can be connected to multiple product attribute sets, and only products from one of those sets are allowed in the 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. Categories have no connection to product attribute sets, and any product can be assigned to any category
- D. Each category is linked to a single product attribute set, and only products from that category's set or any of its parent categories'
Answer: C
NEW QUESTION 65
How do you obtain customer information in a JavaScript module?
- A. By sending an AJAX request to the url: /customer/account/info/?json=1
- B. Customer information is available in localStorage and be retrieved by calling window.localStorage.getItem('customer')
- C. Magento does not expose customer information in JavaScript for security reasons
- D. By using customerData.get('customer') call, where customerData is an instance of Magento_Customer/js/customer-data
Answer: D
NEW QUESTION 66
A custom module must make changes to the schema following each setup:upgrade run. This must be done after all other module's schema updates have been applied.
How is this accomplished?
- A. Create a Recurring class which implements InstallSchemaInterface
- B. Write a plugin intercepting \Magento\Setup\Model\Installer::handleDBSchemaData
- C. Create an UpgradeSchemaAfter class which implements InstallSchemaInterface
- D. Update the module's setup_priority in etc/modules.xml
Answer: A
NEW QUESTION 67
......
Practice LATEST AD0-E702 Exam Updated 105 Questions: https://www.actualpdf.com/AD0-E702_exam-dumps.html
