Question 11

You are making some major adjustments to a core Magento class (ClassA). These adjustments are only necessary when utilized from a specific Magento class (ClassB). You have created MyClass that contains the needed customizations.
Keeping upgradeability in mind, how do you configure di.xml to make the substitution happen?
  • Question 12

    You are working on a project that contains a million SKUs. The merchant has requested the product view page to have a custom color schema and page layout depending on the product price range.
    How do you implement this, keeping simplicity in mind?
  • Question 13

    A module declares the route:

    What is the layout handle of the storefront path /custom/feature/?
  • Question 14

    You are building CLI that use the console to create a customer account with our custom command as like php bin/magento customer:user:create --customer-firstname="Mahin" --customer-lastname="Rahman" --customer-email="[email protected]" --customer-password="mahin@123" --website="1"
    using: protected function configure() { $this->setName('customer:user:create') - >setDescription('Create new customer') ->setDefinition($this->getOptionsList()); } protected function getOptionsList(){ return [
    ------------------]; } Which below Option are not required in blank? (Choose 2)
  • Question 15

    Assume that $collection is a new instance of a class that extends Magento\Framework\Model\ResourceModel\Db\Collection\AbstractCollection, and $ids is an array of ids.
    How do you select a list of records from the database where the record ids are in the $ids list?