Magento 2 Certified Associate Developer Exam Magento-2-Certified-Associate-Developer Question # 9 Topic 1 Discussion

Magento 2 Certified Associate Developer Exam Magento-2-Certified-Associate-Developer Question # 9 Topic 1 Discussion

Magento-2-Certified-Associate-Developer Exam Topic 1 Question 9 Discussion:
Question #: 9
Topic #: 1

You are implementing a custom module MyModule, which provides an implementation of \Psr\Log\LoggerInterface called \MyCompany\MyModule\Logger.

The LoggerInterface has the default preference declared in app/etc/di.xml.

Keeping upgradability in mind, how do you make \MyCompany\MyModule\Logger the default implementation of the LoggerInterface globally?


A.

Declare a new preference for the LoggerInterface in app/code/myCompany/MyModule/etc/frontend/di.xml


B.

Declare a new preference for the LoggerInterface in MyCompany/MyModule/etc/di.xml


C.

Overwrite the existing preference for the LoggerInterface in app/etc/di.xml


D.

Declare a new preference for the LoggerInterface in app/code/MyCompany/MyModule/etc/global/di.xml


Get Premium Magento-2-Certified-Associate-Developer Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.