Question 41

You have to install a new module on the production environment. All the module is adding a new product attribute. You enabled maintenance mode, copied the module code, run bin/magento setup:upgrade and disabled maintenance mode.
What two risks does this process pose? (Choose two.)
  • Question 42

    What will be the result of calling the save() method on a collection instance?
  • Question 43

    An Adobe Commerce Developer has created a new custom block extending
    \Magento\Framework\view\Element\AbstractBlock and has set the cache_lifetime data property for the block so that the output gets cached.
    The block is inserted into the sidebar, and displays differing content depending on which currency is being used. The developer finds that the block is displaying the same content for all currencies, depending on which currency is viewed first after the cache has been flushed.
    How would the developer resolve this?
  • Question 44

    When building a custom page we need to get a collection of data. To determine how many items are in this collection, the Adobe Commerce developer uses $collection->count() . This sometimes is slow and causes some delay.
    What is the reason?
  • Question 45

    An Adobe Commerce Developer is tasked with creating a custom form which submits its data to a (rontend controller. They have decided to create an action and have implemented the\magnto\Framework\App\Action|HttpPostInterface class, but are not seeing the data being persisted in the database, and an error message is being shown on the frontend after submission.
    After debugging and ensuring that The data persistence logic is correct, what may be cause and solution to this?