AD0-E724 Module Practice Questions
The free AD0-E724: Adobe Commerce Developer Professional questions that deal with module, with answers and explanations. The full bank and the timed practice test cover every topic the exam asks about.
Question #2
An Adobe Commerce developer is developing a custom module. As part of their implementation they have decided that all instances of their Custom\Module\Model\Example class should receive a new instance of Magento\Filesystem\Adapter\Local. How would the developer achieve this using di.xml?



Correct answer: A
Explanation
Non-shared (new) instances are configured in di.xml with the shared="false" attribute on the argument (Option A). singleton and transient are not valid di.xml attributes.
Question #6
Under which section should the soft dependency for a module be listed in app/code/<Vendor>/<Module>/composer.json file?
Correct answer: A
Explanation
Soft dependencies of a module are listed under the "suggest" section of the module composer.json. Packages listed there enhance the module but are not required for it to function, so they are not installed automatically.
Continue with AD0-E724: Adobe Commerce Developer Professional
Unlock the full question bank
You have read the first 10 questions. A subscription opens every question in AD0-E724: Adobe Commerce Developer Professional, the full timed practice test, and your progress and weak-topic reporting.
Single exam
$19.99for 30 days
Full question bank and practice test for one exam, for 30 days.
Single exam
$49.99for 1 year
One exam for a full year. Nothing renews and nothing to cancel.
Full access
$39.99/mo
Every exam in the catalogue, month to month.
Full access
$199.99/yr
Every exam in the catalogue for a year.
Already subscribed? Sign in to pick up where you left off.
All AD0-E724: Adobe Commerce Developer Professional practice questions →
