[Oct 29, 2022] Get New AD0-E702 Certification – Valid Exam Dumps Questions
100% Passing Guarantee - Brilliant AD0-E702 Exam Questions PDF
NEW QUESTION 53
A merchant gives you the module MyCompany_MyModule to install.
How do you identify which REST endpoints are supported by the module?
- A. Every public method of every interface in the Api folder automatically is exposed as a REST endpoint
- B. REST endpoints are declared in etc/webapi_rest/di.xml
- C. REST endpoints are declared in etc/rest.xml
- D. REST endpoints are declared in etc/webapi.xml
Answer: D
Explanation:
Explanation
https://devdocs.magento.com/guides/v2.4/get-started/gs-web-api-request.html
NEW QUESTION 54
A client has asked you to include category url keys in product URLs.
How is this done?
- A. Create an observer for controller_action_postdispatch_catalog_product_view
- B. This is not possible because products can belong to multiple categories
- C. Create an after plugin on \Magento\UrlRewrite\Controller\Router::generateRewrite
- D. Set the configuration value of catalog/seo/product_use_categories to Yes
Answer: D
NEW QUESTION 55
How does Magento store customer address attribute values?
- A. Customer address is not an entity, so its properties are customer attributes
- B. Customer address is a flat entity, so all values are stored in the customer_address_entity table
- C. Customer address is an attribute of the customer, so it doesn't have its own attributes
- D. Customer address is an EAV entity, so all values are stored in the customer_address_entity table and related values tables
Answer: D
NEW QUESTION 56
Products may be accessed using SEO friendly URLs like /my-product instead of /catalog/product/view/id/{ID} How is this one?
- A. A plugin on \Magento\UrlRewrite\Controller\Router::match loads products by the url_key attribute
- B. Magento\Catalog\Controller\Product\View::loadByUrlKey loads product pages using the url_key attribute value
- C. An event observer adds RewriteRules to .htaccess on product save
- D. Using a URL Rewrite stored in the database connecting the request path with the target path
Answer: D
NEW QUESTION 57
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. composer.json
- C. etc/di.xml
- D. etc/config.xml
Answer: B
NEW QUESTION 58
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. Use composer CLI to pull the code from MyCompany's repository
- C. Clone the code from GitHub and put it into the vendor directory
- D. Download the extension code from the developer's website, and put it into app/code
Answer: B,D
NEW QUESTION 59
A merchant sells shoes with multiple variations such as a color and size. A shoe is represented by a configurable product. There are seven different colors and four sizes.
What is the minimal amount of simple products that represent a combination of color and size needs to be created in order to make a shoe salable?
- A. One simple product that represents a combination of color and size is enough
- B. Each color and size must have at least one representation, so a minimum of seven products is needed
- C. A simple product for every combination must be created
- D. A product may be purchased even without any combination available. The color and size may be adjusted during order fulfillment
Answer: A
NEW QUESTION 60
What is a valid use case for an around plugin?
- A. The execution of the before and after plugins must be suppressed
- B. The execution of the pluginized method must be suppressed
- C. The arguments of the after plugins must be modified
- D. The arguments of the before plugins must be modified
Answer: A
NEW QUESTION 61
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?
- A. If the custom module is removed, the custom template will no longer apply
- B. If a preference for the core block is set, the template will no longer apply
- C. This setup will throw an IllegalStateException
- D. If another module is installed which also customizes the same core template, the templates will be rendered sequentially
Answer: A
NEW QUESTION 62
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. 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 - B. Magento finds all classes that implement \Magento\Store\Model\StoreManagerInterface (ordered alphabetically) and injects the first class.
- C. Magento throws an exception because you cannot instantiate an interface
- D. If no $storeManager is provided, Magento's code generator creates a shell concrete class based on
\Magento\Store\Model\StoreManagerInterface
Answer: A
Explanation:
Explanation
https://devdocs.magento.com/guides/v2.4/extension-dev-guide/depend-inj.html
NEW QUESTION 63
You are working on a Magento store which will be selling in two countries. Each country has its own set of payment methods.
How do you organize the project to support this requirement?
- A. Create one website, one store view
- B. Create one website, two payment scopes
- C. Create one website, two store views
- D. Create two websites, two store views
Answer: B
NEW QUESTION 64
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. <frontend_model>Magento\Config\Model\Config\Frontend\Yesno</frontend_model>
- B. <backend_model>Magento\Config\Model\Config\Backend\Yesno</backend_model>
- C. <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
- D. <option_model>Magento\Config\Model\Config\Option\Yesno</option_model>
Answer: C
NEW QUESTION 65
Which two tasks are supported by Magento CLI? (Choose two.)
- A. Codebase deployment from developer machine to staging server
- B. Administrator account creation
- C. Clearing cache
- D. Customer password reset
Answer: B,C
NEW QUESTION 66
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.php
- B. Controller/Adminhtml/Entity/Grid/Index.php
- C. Controller/Adminhtml/Mycompany/Entity_Grid.php
- D. Controller/Adminhtml/Mycompany/Entity/Grid.php
Answer: C
NEW QUESTION 67
Your module, MyCompany_MyModule, is using the frontName mymodule. You need to locate the class responsible for the frontend path /mymodule/custom.
What file contains the controller class for the frontend path /mymodule/custom?
- A. Controller/MyModule/Custom/Index.php
- B. Controller/Custom/Index.php
- C. Controller/Frontend/MyModule/Custom.php
- D. Controller/Custom.php
Answer: B
NEW QUESTION 68
......
Free AD0-E702 braindumps download: https://www.exams4collection.com/AD0-E702-latest-braindumps.html
