Question 21

A custom module is performing an optimized custom query for quote items.
The class applies the query customizations on the select object of a quote item collection instance.

You are tasked to resolve an issue where the query sometimes does not deliver the expected results. You have debugged the problem and found another class is also using a quote item collection and is loading the collection before the custom module.
How do you resolve the issue, keeping maintainability in mind?
  • Question 22

    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?
  • Question 23

    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?
  • Question 24

    An Adobe Commerce Developer wishes to add an action to a pre-existing route, but does not wish to interfere with the functionality of the actions from the original route.
    What must the developer do to ensure that their action works without any side effects in the original module?
  • Question 25

    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.)