Exam AD0-E103 All QuestionsBrowse all questions from this exam
Question 28

The custom AEM application needs to keep a flat list of all page paths underneath /content/thesite in memory for a real-time integration with high performance requirements.

The developer has the following intermediate state of the class:

What action should the developer take to meet these requirements?

A.

B.

C.

D.

    Correct Answer:

    The correct action the developer should take involves using the ResourceChangeListener as an interface since the ResourceObservationManager does not exist and the PRIMARY_TYPES property is invalid. The developer should update the class implementation to filter the received list of ResourceChange to handle page changes specifically and adjust the pagePaths accordingly. Therefore, the correct answer is B. This ensures the class listens to specific changes like resource addition, removal, and updates at the specified paths and handles them efficiently.

Discussion
grios

B is the correct one. The property PRIMARY_TYPES is invalid and ResourceObservationManager doesn't exist.

chunpin

Answer: B Answer is B: Explanation from Sanjay at https://vceguide.com/what-action-should-the-developer-take-to-meet-these-requirements-2/ Reason : 1. ResourceObservationManager such API not exist. Which exclude option C & D Reason : 2. PRIMARY_TYPE constant doesnt exist for API ResourceChangeListener which exlude the option A. https://helpx.adobe.com/experience-manager/6-2/sites/developing/using/reference-materials/javadoc/org/apache/sling/api/resource/observation/ResourceChangeListener.html#method_summary