Which file do you declare the observer?

A module MyModule needs to send notifications to customers only when the account was modified from a mobile app using the REST web APIs.
You decided to implement an observer for customer_save_after_data_object event.
In which file do you declare the observer?
A. etc/webapi_rest/events.xml
B. etc/adminhtml/events.xml
C. etc/webapi/rest_events.xml
D. etc/events.xml

Download Printable PDF. VALID exam to help you PASS.

11 thoughts on “Which file do you declare the observer?

  1. Answer: A

    check below path – – vendor/magento/module-catalog-rule/etc/webapi_rest/events.xml

  2. Correct answer is D no area such webapi_rest only /etc/fronted, /etc/adminhtml if it is global place the file in /etc

  3. Correct answer for this is Option A: etc/webapi_rest/events.xml – as the question specifically states “only when the account was modified from a mobile app using the REST web APIs”

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.