A developer is creating a class \Vendor\Module\Model\MyModeL How should that class be defined as transient in di.xml?
Answer(s): A
To define a class as transient in di.xml, the transient attribute should be set to true.Code snippet<type name="\Vendor\Module\Model\MyModel" transient="true">
Under which section should the soft dependency for a module be listed in app/code/<Vendor>/<Module>/composer.json file?
Answer(s): C
The soft dependency for a module should be listed in the soft section of the app/code/<Vendor>/<Module>/composer.json file.{"name": "Vendor/Module","description": "This is a sample module","type": "magento2-module","version": "1.0.0","require": {"php": "~7.3.0","magento/framework": "^2.4.0","soft": {"magento/module-catalog": "^2.4.0"}}}
How can a developer override a core class method in Adobe Commerce?
The preference element in di.xml allows specifying a custom class that will be used instead of the original class when creating an object. This can be used to override a core class method by extending the original class and overriding the method in the custom class. The rewrite and argument elements are not valid for overriding core class methods in di.xml.
Which command can be used to display a full list of enabled and disabled Magento modules?
Answer(s): B
The command bin/magento modulestatus displays the status of all modules, including enabled and disabled ones. The command bin/magento module:all is not valid, and the command bin/magento module:show displays information about a specific module.
Post your Comments and Discuss Adobe AD0-E717 exam with other Community members:
Christine commented on November 06, 2024 Good for practice Anonymous upvote
Xiching commented on August 20, 2024 Thank you for publishing these questions. I assisted me to pass my exam. China upvote
Our website is free, but we have to fight against bots and content theft. We're sorry for the inconvenience caused by these security measures. You can access the rest of the AD0-E717 content, but please register or login to continue.