Want to pass your Adobe Certified Expert - Magento Commerce Developer AD0-E703 exam in the very first attempt? Try Pass2lead! It is equally effective for both starters and IT professionals.
VCE
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.
You are implementing a before plugin in MyCompany_Magic. It will intercept the same method that MyCompany_Admission is already intercepting using a before plugin: Topmenu::getBlockHtml
Which two actions are required to ensure the new plugin will execute last? (Choose two.)
A. Include a sortOrder="20" on the new plugin in MyCompany_Magic's etc/di.xml file
B. Configure plugin sequencing for both plugins in MyCompany_Magic's etc/plugin_sequence.xml file
C. Set a sortOrder="10" for MyCompany_Admission's plugin in MyCompany_Magic's etc/di.xml
D. Add MyCompany_Admission as a dependency in MyCompany_Magic's etc/module.xml file
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. Set the configuration value of catalog/seo/product_use_categories to Yes
D. Create an after plugin on \Magento\UrlRewrite\Controller\Router::generateRewrite