exam questions

Exam AD0-E716 All Questions

View all questions & answers for the AD0-E716 exam

Exam AD0-E716 topic 1 question 9 discussion

Actual exam question from Adobe's AD0-E716
Question #: 9
Topic #: 1
[All AD0-E716 Questions]

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?

  • A.
  • B.
  • C.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
ssalil
3 weeks, 5 days ago
Selected Answer: B
B is correct answer
upvoted 1 times
...
arierave
5 months, 2 weeks ago
Selected Answer: C
Sorry, Copilot gave the wrong answer, and claude.ai Pro correctly confirmed C
upvoted 1 times
...
arierave
5 months, 2 weeks ago
Selected Answer: B
According to copilot option B: By setting singleton="false", you ensure that a new instance of Magento\Filesystem\Adapter\Local is injected into each instance of Custom\Module\Model\Example. This approach allows you to customize the behavior without affecting other modules that might use the default singleton instance of Magento\Filesystem\Adapter\Local. Therefore, option B aligns with the desired outcome. 🚀
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago