AD0-E103 Exam QuestionsBrowse all questions from this exam

AD0-E103 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.

Show Answer
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

2 comments
Sign in to comment
grios
Jul 11, 2020

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

chunpin
Jan 9, 2021

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