Under which section should the soft dependency for a module be listed in app/code/
A.
soft': {
}
''optional'':{
Answer : B
In a composer.json file, soft dependencies for a module should be listed under the 'suggest' section. The 'suggest' section is used to list packages that are recommended but not required for the module's functionality. Reference: https://getcomposer.org/doc/04-schema.md#suggest
Which attribute input type should a developer use for a boolean?
Answer : C
For a boolean attribute in Magento, a developer should use the 'Yes/No' input type. Reference: https://devdocs.magento.com/guides/v2.4/ui_comp_guide/components/ui-form.html
A merchant is running an Adobe Commerce store, and there are two active store views for the English and German languages. A developer is creating an attribute programmatically and needs to make sure the attribute can have value tor both store views.
Which value must the attribute property "global'' have to complete this task?
Answer : B
To make sure the attribute can have values for both store views, the attribute property 'global' must have the value 'Store'. This allows the attribute to have different values for each store view. Reference: https://devdocs.magento.com/guides/v2.4/extension-dev-guide/attributes.html#attribute-scope
A developer has been tasked to create a new controller for custom functionality. Only GET HTTP requests must be allowed. What must be done so the controller processes only GET requests?
Answer : B
To make sure the controller processes only GET requests in Magento, you must ensure that the controller class implements the Magento\Framework\App\Action\HttpGetActionInterface. This interface enforces that the controller only processes GET requests, rejecting any other HTTP request methods.
How can a developer turn off all store view options and scope indicators for a single-store installation?
Answer : C
To turn off all store view options and scope indicators for a single-store installation, one can enable the Single-Store Mode by navigating to Stores > Configuration > General > Single-Store Mode in the Magento Admin Panel and selecting 'Yes.' This will remove all website, store, and store view scopes from the Magento instance and make it work as if there is only one store. Reference: - https://docs.magento.com/user-guide/stores/single-store-mode.html
A developer delected lhat a piece of functionality implemented in a third-party module's plugin can be omitted. So, the developer decides to deactivate the plugin. How can a developer take this action?
Answer : B
To deactivate a plugin, the developer can add the 'disabled' attribute in the di.xml file of a custom module using the following code:
Which Adobe Commerce table stores all cron data?
Answer : B
In Adobe Commerce (Magento), the table that stores all cron data is named 'cron_schedule'. This table contains information about each cron job's status, schedule, and execution time. Reference: https://devdocs.magento.com/guides/v2.4/config-guide/cron/custom-cron-ref.html